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

HCatRecordObjectInspectorFactory is not thread safe

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      HashMap used without synchronization for the caches, which makes the code unsafe for use in a multi-threaded environment such as Presto (or Spark?). The simple fix is to switch them to ConcurrentHashMap.

      Attachments

        1. HIVE-15773.patch
          1 kB
          David Phillips
        2. HIVE-15773.2.patch
          1 kB
          David Phillips
        3. HIVE-15773.3.patch
          3 kB
          David Phillips

        Issue Links

        Activity

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

          People

            Unassigned Unassigned Assign to me
            electrum David Phillips

            Dates

              Created:
              Updated:

              Slack

                Issue deployment