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

Make JSONMessageFactory.getTObj method thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Metastore
    • None
    • Reviewed

    Description

      This static method is using a singleton instance of TDeserializer, which is not thread safe. Instead we want to create a new instance per method call. This class is lightweight, so it should be fine from perf perspective.

      Attachments

        1. HIVE-17301.1.patch
          1 kB
          Tao Li

        Issue Links

          Activity

            People

              taoli-hwx Tao Li
              taoli-hwx Tao Li
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: