[ https://issues.apache.org/jira/browse/YARN-7336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16226031#comment-16226031 ]
Hudson commented on YARN-7336: ------------------------------ SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #13161 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/13161/]) YARN-7336. Unsafe cast from long to int Resource.hashCode() method (templedf: rev d64736d58965722b71d6eade578b6c4c266e6448) * (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/impl/LightWeightResource.java * (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/Resource.java > Unsafe cast from long to int Resource.hashCode() method > ------------------------------------------------------- > > Key: YARN-7336 > URL: https://issues.apache.org/jira/browse/YARN-7336 > Project: Hadoop YARN > Issue Type: Bug > Components: resourcemanager > Affects Versions: 3.0.0-beta1, 3.1.0 > Reporter: Daniel Templeton > Assignee: Miklos Szegedi > Priority: Critical > Labels: ready-to-commit > Fix For: 3.1.0 > > Attachments: YARN-7336.000.patch, YARN-7336.001.patch > > > For example: > {code} > final int prime = 47; > long result = 0; > for (ResourceInformation entry : resources) { > result = prime * result + entry.hashCode(); > } > return (int) result; > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org