Michael Smith has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/21074 )

Change subject: IMPALA-12602: Unregister queries on idle timeout
......................................................................


Patch Set 3:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/21074/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/21074/1//COMMIT_MSG@10
PS1, Line 10: as you cannot fetch results
            : from a cancelled query.
> One side affect is that we also cannot get the errors/warnings for the quer
I want to look into getLog more. It may continue to return the error, and 
profile was still accessible from impala-shell. I'll try to clarify what the 
behavior will be after this change.


http://gerrit.cloudera.org:8080/#/c/21074/3//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/21074/3//COMMIT_MSG@13
PS3, Line 13: Adds a new structure - idle_query_statuses_ - to retain Status 
messages
            : for queries closed this way so that we can continue to return a 
clear
            : error message if the client returns and requests query status or
            : attempts to fetch results. SessionState tracks queries added to
            : idle_query_statuses_ so they can be cleared when the session is 
closed.
> It is not clear to me why do we need two states - would it work if idle_que
I first tried storing them per-session, but when we want to lookup the error 
message because we could not find a handle, we don't have access to the session 
ID (specifically in HS2). We normally get the session ID from the query handle, 
and the query handle is gone by then.

I'll update the commit message to explain that.



--
To view, visit http://gerrit.cloudera.org:8080/21074
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iacfc285ed3587892c7ec6f7df3b5f71c9e41baf0
Gerrit-Change-Number: 21074
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Smith <michael.sm...@cloudera.com>
Gerrit-Reviewer: Csaba Ringhofer <csringho...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <joemcdonn...@cloudera.com>
Gerrit-Reviewer: Michael Smith <michael.sm...@cloudera.com>
Gerrit-Comment-Date: Thu, 07 Mar 2024 17:56:41 +0000
Gerrit-HasComments: Yes

Reply via email to