[ https://issues.apache.org/jira/browse/YARN-9601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16902926#comment-16902926 ]
Hudson commented on YARN-9601: ------------------------------ FAILURE: Integrated in Jenkins build Hadoop-trunk-Commit #17062 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/17062/]) YARN-9601.Potential NPE in (weichiu: rev 22d7d1f8bfe64ee04a7611b004ece8a4d4e81ea4) * (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/store/impl/ZookeeperFederationStateStore.java > Potential NPE in ZookeeperFederationStateStore#getPoliciesConfigurations > ------------------------------------------------------------------------ > > Key: YARN-9601 > URL: https://issues.apache.org/jira/browse/YARN-9601 > Project: Hadoop YARN > Issue Type: Bug > Components: federation, yarn > Affects Versions: 3.2.0 > Reporter: hunshenshi > Assignee: hunshenshi > Priority: Major > Fix For: 3.3.0 > > > Potential NPE in ZookeeperFederationStateStore#getPoliciesConfigurations > The code of ZookeeperFederationStateStore#getPoliciesConfigurations > {code:java} > for (String child : zkManager.getChildren(policiesZNode)) { > SubClusterPolicyConfiguration policy = getPolicy(child); > result.add(policy); > } > {code} > The result of `getPolicy` may be null, so policy should be checked > The new code > {code:java} > for (String child : zkManager.getChildren(policiesZNode)) { > SubClusterPolicyConfiguration policy = getPolicy(child); > // policy maybe null, should check > if (policy == null) { > LOG.warn("Policy for queue: {} does not exist.", child); > continue; > } > result.add(policy); > } > {code} > -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org