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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Impala 4.0
    • Fix Version/s: Impala 4.0
    • Component/s: Clients
    • Labels:
    • Target Version:
    • Epic Color:
      ghx-label-1

      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

            • Assignee:
              arawat Abhishek Rawat
              Reporter:
              tarmstrong Tim Armstrong

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment