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

    XMLWordPrintableJSON

Details

    • 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

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

              Dates

                Created:
                Updated:
                Resolved: