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

Fix potential thread safety issues with static variables

    XMLWordPrintableJSON

    Details

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

      Description

      Many concurrency issues (HIVE-12768, HIVE-16175, HIVE-16060) have been found with respect to class static variable usages. With fact that HS2 supports concurrent compilation and task execution as well as some backend engines (such as Spark) running multiple tasks in a single JVM, traditional assumption (or mindset) of single threaded execution needs to be abandoned.

      This purpose of this JIRA is to do a global scan of static variables in Hive code base, and correct potential thread-safety issues. However, it's not meant to be exhaustive.

        Attachments

        1. HIVE-16183.1.patch
          80 kB
          Xuefu Zhang
        2. HIVE-16183.2.patch
          76 kB
          Xuefu Zhang
        3. HIVE-16183.3.patch
          78 kB
          Xuefu Zhang
        4. HIVE-16183.4.patch
          79 kB
          Xuefu Zhang
        5. HIVE-16183.4.patch
          78 kB
          Xuefu Zhang
        6. HIVE-16183.4.patch
          78 kB
          Xuefu Zhang
        7. HIVE-16183.patch
          77 kB
          Xuefu Zhang

          Issue Links

            Activity

              People

              • Assignee:
                xuefuz Xuefu Zhang
                Reporter:
                xuefuz Xuefu Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: