Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-32034

Port HIVE-14817: Shutdown the SessionManager timeoutChecker thread properly upon shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0, 3.1.0
    • 2.4.7, 3.0.1, 3.1.0
    • SQL
    • None

    Description

      When stopping the HiveServer2, the non-daemon thread stops the server from terminating

      "HiveServer2-Background-Pool: Thread-79" #79 prio=5 os_prio=31 tid=0x00007fde26138800 nid=0x13713 waiting on condition [0x0000700010c32000]
         java.lang.Thread.State: TIMED_WAITING (sleeping)
      	at java.lang.Thread.sleep(Native Method)
      	at org.apache.hive.service.cli.session.SessionManager$1.sleepInterval(SessionManager.java:178)
      	at org.apache.hive.service.cli.session.SessionManager$1.run(SessionManager.java:156)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      
      

      Also, causes issues as HIVE-14817 described

      Attachments

        Activity

          People

            Qin Yao Kent Yao 2
            Qin Yao Kent Yao 2
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: