Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7336

Unsafe cast from long to int Resource.hashCode() method

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      For example:

          final int prime = 47;
          long result = 0;
          for (ResourceInformation entry : resources) {
            result = prime * result + entry.hashCode();
          }
          return (int) result;
      

      Attachments

        1. YARN-7336.000.patch
          2 kB
          Miklos Szegedi
        2. YARN-7336.001.patch
          2 kB
          Miklos Szegedi
        3. YARN-7336.branch-3.0.001.patch
          2 kB
          Daniel Templeton

        Activity

          People

            miklos.szegedi@cloudera.com Miklos Szegedi
            templedf Daniel Templeton
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: