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

GenericUDTFJSONTuple's json cache could overgrow beyond its limit

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: UDF
    • Labels:
      None

      Description

      At the moment the cache object used in GenericUDTFJSONTuple is a static linked hashmap that is not thread-safe. In the case of HoS it may be accessed concurrently and has race conditions. In particular, its size may overgrow even though the limit is 32. This can be observed from the attached image.

      An easy way to fix it is to make it non-static.

        Attachments

        1. HIVE-16060.1.patch
          0.9 kB
          Chao Sun
        2. image.png
          66 kB
          Chao Sun

          Activity

            People

            • Assignee:
              csun Chao Sun
              Reporter:
              csun Chao Sun
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: