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 @@ public class TimelineServiceV2Publisher extends AbstractSystemMetricsPublisher {
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOG.error("Error when publishing entity " + entity);
|
LOG.error("Error when publishing entity " + entity);
|
||||||
LOG.debug("Error when publishing entity {}", entity, e);
|
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 class TimelineCollectorWebService {
|
||||||
LOG.error("Error putting entities", e);
|
LOG.error("Error putting entities", e);
|
||||||
throw new WebApplicationException(e,
|
throw new WebApplicationException(e,
|
||||||
Response.Status.INTERNAL_SERVER_ERROR);
|
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 {
|
} finally {
|
||||||
long latency = Time.monotonicNow() - startTime;
|
long latency = Time.monotonicNow() - startTime;
|
||||||
if (isAsync) {
|
if (isAsync) {
|
||||||
|
|
Loading…
Reference in New Issue