Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10367

Impala-shell internal error - UnboundLocalError, local variable 'retry_msg' referenced before assign

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 4.0.0
    • Impala 4.0.0
    • Clients

    Description

      I saw this error when cancelling a query from impala-shell.

      [localhost.EXAMPLE.COM:21050] tpch_parquet> explain select STRAIGHT_JOIN count(distinct l_partkey)
      from lineitem join [BROADCAST] supplier on l_suppkey = s_suppkey;
      Query: explain select STRAIGHT_JOIN count(distinct l_partkey)
      from lineitem join [BROADCAST] supplier on l_suppkey = s_suppkey
      Caught exception [Errno 4] Interrupted system call, type=<class 'socket.error'> in ExecuteStatement.
       Cancelling Query
      Caught exception [Errno 4] Interrupted system call, type=<class 'socket.error'> in CloseSession.
      Warning: close session RPC failed: [Errno 4] Interrupted system call, <class 'socket.error'>
      Opened TCP connection to localhost.EXAMPLE.COM:21050
      Caught exception [Errno 4] Interrupted system call, type=<class 'socket.error'> in ExecuteStatement.
      Caught exception [Errno 4] Interrupted system call, type=<class 'socket.error'> in CloseSession.
      Warning: close session RPC failed: [Errno 4] Interrupted system call, <class 'socket.error'>
      Error connecting: UnboundLocalError, local variable 'retry_msg' referenced before assign
      

      This code was introduced by IMPALA-9466. I looked at the code briefly and AFAICT it happens when the retry logic is disabled but we hit a TTransportException or similar error.

      Attachments

        Issue Links

          Activity

            People

              arawat Abhishek Rawat
              tarmstrong Tim Armstrong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: