YARN-9794. RM crashes due to runtime errors in TimelineServiceV2Publisher. Contributed by Tarun Parimi.

This commit is contained in:
Abhishek Modi 2019-09-15 14:16:18 +05:30
parent e04b8a46c3
commit da2b4fe204
2 changed files with 6 additions and 0 deletions

View File

@ -485,6 +485,8 @@ private void putEntity(TimelineEntity entity, ApplicationId appId) {
} catch (IOException e) {
LOG.error("Error when publishing entity " + entity);
LOG.debug("Error when publishing entity {}", entity, e);
} catch (Exception e) {
LOG.error("Unexpected error when publishing entity {}", entity, e);
}
}

View File

@ -196,6 +196,10 @@ public Response putEntities(
LOG.error("Error putting entities", e);
throw new WebApplicationException(e,
Response.Status.INTERNAL_SERVER_ERROR);
} catch (Exception e) {
LOG.error("Unexpected error while putting entities", e);
throw new WebApplicationException(e,
Response.Status.INTERNAL_SERVER_ERROR);
} finally {
long latency = Time.monotonicNow() - startTime;
if (isAsync) {