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

Cancelling a query during planning, from the shell, will close the session

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Impala 2.6.0
    • None
    • Clients

    Description

      In _execute_stmt, this code gets hit when I do a Ctrl-C during planning (i.e. when the query is blocked), and causes the current session to be closed and reopened (you can tell because a) the session IDs change and b) the query will get cancelled with "SESSION CLOSED" as the reason). The session should stay open so we don't cause audit / auth etc. events as the result of a ctrl-C.

      It might be that this is easy to hit during planning as the query blocks with its lock and that the race could happen in any case.

          except socket.error, (code, e):
            # if the socket was interrupted, reconnect the connection with the client
            if code == errno.EINTR:
              print ImpalaShell.CANCELLATION_MESSAGE
              self._reconnect_cancellation() # <<<<<<<<< Closes session, opens a new one.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            henryr Henry Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: