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

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

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment