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

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • YARN-2928
    • 2.9.0, 3.0.0-alpha1
    • timelineserver
    • None
    • 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.004.patch
          10 kB
          Li Lu
        2. YARN-3836-YARN-2928.003.patch
          10 kB
          Li Lu
        3. YARN-3836-YARN-2928.002.patch
          10 kB
          Li Lu
        4. YARN-3836-YARN-2928.001.patch
          10 kB
          Li Lu

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: