Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Duplicate
-
2.7.1
-
None
-
None
-
None
Description
It's is better to catch the ApplicationNotFoundException rather than the parent YarnException and rethrow it when it's not ApplicationNotFoundExcepton
catch (YarnException e) { if (!historyServiceEnabled) { // Just throw it as usual if historyService is not enabled. throw e; } // Even if history-service is enabled, treat all exceptions still the same // except the following if (!(e.getClass() == ApplicationNotFoundException.class)) { throw e; }
Attachments
Issue Links
- duplicates
-
YARN-3975 WebAppProxyServlet should not redirect to RM page if AHS is enabled
- Closed