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

When the query does not complie the LogRunnable never stops

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0, 3.0.0
    • Component/s: Beeline
    • Labels:
      None

      Description

      When issuing a sql command which does not compile then the LogRunnable thread is never closed.

      The issue can be easily detected when running beeline with showWarnings=true.

      $ ./beeline -u "jdbc:hive2://localhost:10000 pvary pvary" --showWarnings=true
      [..]
      Connecting to jdbc:hive2://localhost:10000
      Connected to: Apache Hive (version 2.2.0-SNAPSHOT)
      Driver: Hive JDBC (version 2.2.0-SNAPSHOT)
      Transaction isolation: TRANSACTION_REPEATABLE_READ
      Beeline version 2.2.0-SNAPSHOT by Apache Hive
      0: jdbc:hive2://localhost:10000> selekt;
      Warning: java.sql.SQLException: Method getQueryLog() failed. Because the stmtHandle in HiveStatement is null and the statement execution might fail. (state=,code=0)
      [..]
      Warning: java.sql.SQLException: Can't getQueryLog after statement has been closed (state=,code=0)
      [..]
      

       

        Attachments

        1. HIVE-16007.patch
          2 kB
          Peter Vary
        2. HIVE-16007.6.patch
          1 kB
          Peter Vary
        3. HIVE-16007.5.patch
          1 kB
          Peter Vary
        4. HIVE-16007.4.patch
          2 kB
          Peter Vary
        5. HIVE-16007.3.patch
          2 kB
          Peter Vary
        6. HIVE-16007.2.patch
          3 kB
          Peter Vary
        7. HIVE-16007.02.patch
          2 kB
          Peter Vary

          Activity

            People

            • Assignee:
              pvary Peter Vary
              Reporter:
              pvary Peter Vary
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: