Github user zentol commented on a diff in the pull request:
https://github.com/apache/flink/pull/4603#discussion_r139411152
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/RedirectHandler.java
---
@@ -143,19 +154,20 @@ protected void channelRead0(
routed.request(),
new
ErrorResponseBody("Service temporarily unavailable due to an ongoing leader
election. Please refresh."),
HttpResponseStatus.SERVICE_UNAVAILABLE));
- } else {
- HandlerUtils.sendErrorResponse(
- channelHandlerContext,
- routed.request(),
- new ErrorResponseBody("Local address
has not been resolved. This indicates an internal error."),
-
HttpResponseStatus.INTERNAL_SERVER_ERROR);
+
+ } catch (Throwable throwable) {
+ logger.warn("Error occurred while processing
web request.", throwable);
+ HandlerUtils.sendErrorResponse(
--- End diff --
indentation is off
---