hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Templeton (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-7336) Unsafe cast from long to int hashCode() methods for Resource, LightweightResource, and ResourcePBImpl
Date Mon, 16 Oct 2017 18:42:00 GMT
Daniel Templeton created YARN-7336:
--------------------------------------

             Summary: Unsafe cast from long to int hashCode() methods for Resource, LightweightResource,
and ResourcePBImpl
                 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
            Reporter: Daniel Templeton
            Assignee: Daniel Templeton
            Priority: Critical


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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message