You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Juanjuan Tian (Jira)" <ji...@apache.org> on 2023/08/16 02:37:00 UTC

[jira] [Created] (YARN-11550) PreemptedResourceSeconds is wrongly recovered when RM has a restart

Juanjuan Tian  created YARN-11550:
-------------------------------------

             Summary: PreemptedResourceSeconds is wrongly recovered when RM has a restart
                 Key: YARN-11550
                 URL: https://issues.apache.org/jira/browse/YARN-11550
             Project: Hadoop YARN
          Issue Type: Bug
          Components: metrics
    Affects Versions: 3.3.4
            Reporter: Juanjuan Tian 


 

PreemptedResourceSeconds is wrongly recovered when RM has a restart,  it wrongly load from  *ApplicationResourceUsageMap*

public Map<String, Long> getPreemptedResourceSecondsMap() {
if (this.preemptedResourceSecondsMap != null) {
return this.preemptedResourceSecondsMap;
}
ApplicationAttemptStateDataProtoOrBuilder p = viaProto ? proto : builder;
this.preemptedResourceSecondsMap = ProtoUtils
.convertStringLongMapProtoListToMap(
*p.getApplicationResourceUsageMapList());*
return this.preemptedResourceSecondsMap;
}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org