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

Impala shell does not cancel query immediately

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 1.1.1
    • Impala 1.2.1
    • Clients

    Description

      For a big join query, such as:
      select * from tpch.lineitem x, tpch.lineitem y where x.l_orderkey=y.l_orderkey;

      Hitting Ctrl-C in the shell doesn't cancel the query immediately (i.e. more than a few sec).

      The problem is that the Shell is in the middle of the Fetch RPC and can't process the Cancel.

      When Impala return a "FINISHED" state, it's simply means it's finished planning. No result is available yet. So, the FETCH is blocked. While the shell is blocked on Fetch, it's not processing the Ctrl-C.

      To work around, use the Impala debug webpage to cancel the query.

      It is a serious issue. That means all BIG JOIN queries can't be cancelled until the first row has been returned.

      Attachments

        Activity

          People

            ishaan Ishaan Joshi
            alan@cloudera.com Alan Choi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: