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

HCatRecordObjectInspectorFactory is not thread safe

    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.2.patch
          1 kB
          David Phillips
        2. HIVE-15773.3.patch
          3 kB
          David Phillips
        3. HIVE-15773.patch
          1 kB
          David Phillips

        Issue Links

          Activity

            People

              Unassigned Unassigned
              electrum David Phillips
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: