impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabor Kaszab (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-1144: Fix exception when cancelling query in Impala-shell with CTRL-C
Date Wed, 15 Nov 2017 04:24:03 GMT
Gabor Kaszab has posted comments on this change. ( )

Change subject: IMPALA-1144: Fix exception when cancelling query in Impala-shell with CTRL-C

Patch Set 3:

Commit Message:
PS2, Line 7: IMPALA-1144: Fix exception when cancelling query in Impala-shell with CTRL-C
> Perhaps: Fix exception when cancelling query in impala-shell with Ctrl-C
PS2, Line 11: 'Invalid query handle'. This was because one ImpalaClient was fetching
> nit: reformat this as one paragraph?
PS2, Line 22: was issued automatically. This happened to historical reasons but is not
> nit: "but is not needed" (insert "is")
PS2, Line 25: Tested manually starting with a select from a random table that has few
> Can we write a normal test for this? I don't know if it's true, but "select
I haven't figured out a way to test this automatically.
The one you mention wouldn't cover this case as this issue only appears if the Impala-shell
had started fetching the results when the cancellation comes. With sleep(..) no fetching is
done, hence the issue is not triggered.

I'm open to further suggestions though :)
File shell/
PS2, Line 336:         break
> Python abhors a semi-colon.
File shell/
PS2, Line 485:         new_imp_client = self._new_impala_client()
> does new_imp_client need to be closed? or old_imp_client?
The only purpose of new_imp_client is to cancel the query while the old_imp_shell is busy
fetching the results. Once, that happened we keep the old_imp_client and let the new_imp_client

Btw, I checked the open connections of an impalad before and after doing my tests, and the
number doesn't increase so old_imp_client's connections gets closed by destructing it's members.

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6cefaf1dae78baae238289816a7cb9d210fb38e2
Gerrit-Change-Number: 8549
Gerrit-PatchSet: 3
Gerrit-Owner: Gabor Kaszab <>
Gerrit-Reviewer: Attila Jeges <>
Gerrit-Reviewer: Csaba Ringhofer <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: David Knupp <>
Gerrit-Reviewer: Gabor Kaszab <>
Gerrit-Reviewer: Lars Volker <>
Gerrit-Reviewer: Laszlo Gaal <>
Gerrit-Reviewer: Michael Brown <>
Gerrit-Reviewer: Philip Zeyliger <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-Reviewer: Zoltan Borok-Nagy <>
Gerrit-Comment-Date: Wed, 15 Nov 2017 04:24:03 +0000
Gerrit-HasComments: Yes

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message