hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei Zheng (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-13834) Use LinkedHashMap instead of HashMap for LockRequestBuilder to maintain predictable iteration order
Date Tue, 24 May 2016 18:10:12 GMT
Wei Zheng created HIVE-13834:
--------------------------------

             Summary: Use LinkedHashMap instead of HashMap for LockRequestBuilder to maintain
predictable iteration order
                 Key: HIVE-13834
                 URL: https://issues.apache.org/jira/browse/HIVE-13834
             Project: Hive
          Issue Type: Bug
          Components: Transactions
    Affects Versions: 1.3.0, 2.1.0
            Reporter: Wei Zheng
            Assignee: Wei Zheng


In Java 7 it is assumed the iteration order is always the same as the insert order, but that's
not guaranteed. In Java 8 some unit test breaks because of this ordering change. Solution
is to use LinkedHashMap.



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

Mime
View raw message