YARN-3538. TimelineWebService doesn't catch runtime exception. Contributed by Steve Loughran and Tsuyoshi Ozawa.
(cherry picked from commit f05a9ceb4a9623517aa1c8d995805e26ae1bde5a)
This commit is contained in:
parent
92767f956f
commit
a8ad6b6171
@ -261,6 +261,10 @@ public TimelinePutResponse putDomain(
|
||||
// The user doesn't have the access to override the existing domain.
|
||||
LOG.error(e.getMessage(), e);
|
||||
throw new ForbiddenException(e);
|
||||
} catch (RuntimeException e) {
|
||||
LOG.error("Error putting domain", e);
|
||||
throw new WebApplicationException(e,
|
||||
Response.Status.INTERNAL_SERVER_ERROR);
|
||||
} catch (IOException e) {
|
||||
LOG.error("Error putting domain", e);
|
||||
throw new WebApplicationException(e,
|
||||
|
Loading…
x
Reference in New Issue
Block a user