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

GenericUDTFJSONTuple's json cache could overgrow beyond its limit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • UDF
    • 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. image.png
          66 kB
          Chao Sun
        2. HIVE-16060.1.patch
          0.9 kB
          Chao Sun

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: