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

Non-SQLOperations lead to Web UI NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • None
    • None
    • Reviewed

    Description

      To support display of live operations in the WebUI, we record SQLOperations (in liveSqlOperations).

      However, to support historic operations, we save all operations in historicSqlOperations, including non-SQLOperations which do not have display entries in liveSqlOperations.

      This leads to a race condition depending on whether sessions use non-sql operations. Reproduce-able by issuing a 'set' operation.

      java.lang.NullPointerException
              at org.apache.hive.generated.hiveserver2.hiveserver2_jsp._jspService(hiveserver2_jsp.java:131)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
      

      We should save only SQLOperations in historicSqlOperations.

      Attachments

        1. HIVE-13099.patch
          3 kB
          Mohit Sabharwal

        Issue Links

          Activity

            People

              mohitsabharwal Mohit Sabharwal
              mohitsabharwal Mohit Sabharwal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: