Hello Lars Volker, Laszlo Gaal, Michael Brown, Zoltan Borok-Nagy, Philip
Zeyliger, David Knupp, Attila Jeges, Tim Armstrong, Csaba Ringhofer, Dan Hecht,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/8549
to look at the new patch set (#3).
Change subject: IMPALA-1144: Fix exception when cancelling query in
Impala-shell with CTRL-C
......................................................................
IMPALA-1144: Fix exception when cancelling query in Impala-shell with CTRL-C
When query was cancelled via CTRL-C while Impala-shell was fetching the
query results then an exception was thrown from Impala backend saying
'Invalid query handle'. This was because one ImpalaClient was fetching
the results in a loop while another ImpalaClient cancelled the query on
the backend without letting the fetching client know that the query was
cancelled. As a result when the resources needed for fetching the results
were cleared from the backend the related ClientRequestState was not
found anymore.
As a solution query cancellation is indicated to ImpalaClient via a bool
member, and fetching stops if it indicates cancellation.
Another issue was that every time a query was cancelled a 'use db' command
was issued automatically. This happened to historical reasons but is not
needed anymore (see Jira for more details).
Tested manually starting with a select from a random table that has few
million rows. When the result rows started to show I hit CTRL+C to cancel
the query. Verified that the query stops, no error message, and no use
statement is executed.
After this I executed another random select query to see that fetching
still works and the cancellation indicator was reset successfully.
Change-Id: I6cefaf1dae78baae238289816a7cb9d210fb38e2
---
M shell/impala_client.py
M shell/impala_shell.py
2 files changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/49/8549/3
--
To view, visit http://gerrit.cloudera.org:8080/8549
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6cefaf1dae78baae238289816a7cb9d210fb38e2
Gerrit-Change-Number: 8549
Gerrit-PatchSet: 3
Gerrit-Owner: Gabor Kaszab <[email protected]>
Gerrit-Reviewer: Attila Jeges <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Dan Hecht <[email protected]>
Gerrit-Reviewer: David Knupp <[email protected]>
Gerrit-Reviewer: Lars Volker <[email protected]>
Gerrit-Reviewer: Laszlo Gaal <[email protected]>
Gerrit-Reviewer: Michael Brown <[email protected]>
Gerrit-Reviewer: Philip Zeyliger <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>