[GitHub] AlphaGarden closed pull request #7312: [FLINK-11169][runtime] fix the problem of not being reloaded for jobmanager's…

2019-01-16 Thread GitBox
AlphaGarden closed pull request #7312:  [FLINK-11169][runtime] fix the problem 
of not being reloaded for jobmanager's…
URL: https://github.com/apache/flink/pull/7312
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] AlphaGarden closed pull request #7312: [FLINK-11169][runtime] fix the problem of not being reloaded for jobmanager's…

2018-12-17 Thread GitBox
AlphaGarden closed pull request #7312:  [FLINK-11169][runtime] fix the problem 
of not being reloaded for jobmanager's…
URL: https://github.com/apache/flink/pull/7312
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/legacy/files/StaticFileServerHandler.java
 
b/flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/legacy/files/StaticFileServerHandler.java
index 969945f749d..9ad158b7a99 100644
--- 
a/flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/legacy/files/StaticFileServerHandler.java
+++ 
b/flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/legacy/files/StaticFileServerHandler.java
@@ -256,13 +256,14 @@ private void respondToRequest(ChannelHandlerContext ctx, 
HttpRequest request, St
}
 
try {
+   String filePath = file.getPath();
long fileLength = raf.length();
 
HttpResponse response = new 
DefaultHttpResponse(HTTP_1_1, OK);
setContentTypeHeader(response, file);
 
// since the log and out files are rapidly changing, we 
don't want to browser to cache them
-   if (!(requestPath.contains("log") || 
requestPath.contains("out"))) {
+   if (!(filePath.contains("log") || 
filePath.contains("out"))) {
setDateAndCacheHeaders(response, file);
}
if (HttpHeaders.isKeepAlive(request)) {


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services