Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-321 [Umbrella] Generic application history service
  3. YARN-2766

ApplicationHistoryManager is expected to return a sorted list of apps/attempts/containers

    Details

    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      TestApplicationHistoryClientService.testContainers and TestApplicationHistoryClientService.testApplicationAttempts both fail because the test assertions are assuming a returned Collection is in a certain order. The collection comes from a HashMap, so the order is not guaranteed, plus, according to this page, there are situations where the iteration order of a HashMap will be different between Java 7 and 8.

      We should fix the test code to not assume a specific ordering.

        Attachments

        1. YARN-2766.patch
          4 kB
          Robert Kanter
        2. YARN-2766.patch
          7 kB
          Robert Kanter
        3. YARN-2766.patch
          7 kB
          Robert Kanter
        4. YARN-2766.patch
          3 kB
          Robert Kanter

          Issue Links

            Activity

              People

              • Assignee:
                rkanter Robert Kanter
                Reporter:
                rkanter Robert Kanter
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: