Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2928 YARN Timeline Service v.2: alpha 1
  3. YARN-3836

add equals and hashCode to TimelineEntity and other classes in the data model

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: YARN-2928
    • Fix Version/s: 2.9.0, 3.0.0-alpha1
    • Component/s: timelineserver
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Classes in the data model API (e.g. TimelineEntity, TimelineEntity.Identifer, etc.) do not override equals() or hashCode(). This can cause problems when these objects are used in a collection such as a HashSet. We should implement these methods wherever appropriate.

        Attachments

        1. YARN-3836-YARN-2928.001.patch
          10 kB
          Li Lu
        2. YARN-3836-YARN-2928.002.patch
          10 kB
          Li Lu
        3. YARN-3836-YARN-2928.003.patch
          10 kB
          Li Lu
        4. YARN-3836-YARN-2928.004.patch
          10 kB
          Li Lu

          Activity

            People

            • Assignee:
              gtcarrera9 Li Lu
              Reporter:
              sjlee0 Sangjin Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: