Addendum for YARN-5865. Retrospect updateApplicationPriority api to handle state store exception in align with YARN-5611
This commit is contained in:
parent
ebcb575a12
commit
c1f9f0529b
|
@ -88,7 +88,7 @@ public class TimelineServiceV1Publisher extends AbstractSystemMetricsPublisher {
|
|||
ApplicationMetricsConstants.UNMANAGED_APPLICATION_ENTITY_INFO,
|
||||
app.getApplicationSubmissionContext().getUnmanagedAM());
|
||||
entityInfo.put(ApplicationMetricsConstants.APPLICATION_PRIORITY_INFO,
|
||||
app.getApplicationSubmissionContext().getPriority().getPriority());
|
||||
app.getApplicationPriority().getPriority());
|
||||
entityInfo.put(ApplicationMetricsConstants.AM_NODE_LABEL_EXPRESSION,
|
||||
app.getAmNodeLabelExpression());
|
||||
entityInfo.put(ApplicationMetricsConstants.APP_NODE_LABEL_EXPRESSION,
|
||||
|
|
|
@ -118,7 +118,7 @@ public class TimelineServiceV2Publisher extends AbstractSystemMetricsPublisher {
|
|||
ApplicationMetricsConstants.UNMANAGED_APPLICATION_ENTITY_INFO,
|
||||
app.getApplicationSubmissionContext().getUnmanagedAM());
|
||||
entityInfo.put(ApplicationMetricsConstants.APPLICATION_PRIORITY_INFO,
|
||||
app.getApplicationSubmissionContext().getPriority().getPriority());
|
||||
app.getApplicationPriority().getPriority());
|
||||
entity.getConfigs().put(
|
||||
ApplicationMetricsConstants.AM_NODE_LABEL_EXPRESSION,
|
||||
app.getAmNodeLabelExpression());
|
||||
|
|
|
@ -372,6 +372,7 @@ public class TestSystemMetricsPublisherForV2 {
|
|||
.thenReturn(Collections.singletonList("java -Xmx1024m"));
|
||||
when(appSubmissionContext.getAMContainerSpec())
|
||||
.thenReturn(containerLaunchContext);
|
||||
when(app.getApplicationPriority()).thenReturn(Priority.newInstance(10));
|
||||
|
||||
when(app.getApplicationSubmissionContext())
|
||||
.thenReturn(appSubmissionContext);
|
||||
|
|
Loading…
Reference in New Issue