YARN-9794. RM crashes due to runtime errors in TimelineServiceV2Publisher. Contributed by Tarun Parimi.
This commit is contained in:
parent
e04b8a46c3
commit
da2b4fe204
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user