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

Non-SQLOperations lead to Web UI NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: