hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Kanter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-2766) [JDK 8] TestApplicationHistoryClientService fails
Date Wed, 29 Oct 2014 04:56:33 GMT
Robert Kanter created YARN-2766:
-----------------------------------

             Summary: [JDK 8] TestApplicationHistoryClientService fails
                 Key: YARN-2766
                 URL: https://issues.apache.org/jira/browse/YARN-2766
             Project: Hadoop YARN
          Issue Type: Sub-task
          Components: timelineserver
    Affects Versions: 2.6.0
            Reporter: Robert Kanter
            Assignee: Robert Kanter


{{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|http://docs.oracle.com/javase/8/docs/technotes/guides/collections/changes8.html], 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message