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

GenericUDTFJSONTuple's json cache could overgrow beyond its limit

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

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment