Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13834

Use LinkedHashMap instead of HashMap for LockRequestBuilder to maintain predictable iteration order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0, 2.1.0
    • 2.3.0
    • Transactions
    • None

    Description

      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.

      Attachments

        1. HIVE-13834.1.patch
          2 kB
          Wei Zheng

        Issue Links

          Activity

            People

              wzheng Wei Zheng
              wzheng Wei Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: