Sahil Takiar has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/14332 )

Change subject: IMPALA-8962: FETCH_ROWS_TIMEOUT_MS should apply before rows are 
available
......................................................................


Patch Set 1:

(6 comments)

http://gerrit.cloudera.org:8080/#/c/14332/1/be/src/common/status.cc
File be/src/common/status.cc:

http://gerrit.cloudera.org:8080/#/c/14332/1/be/src/common/status.cc@160
PS1, Line 160: apache::hive::service::cli::thrift::TStatusCode
> Maybe add a 'using TStatusCode' to this file so the formatting here isn't s
Done


http://gerrit.cloudera.org:8080/#/c/14332/1/be/src/service/client-request-state.h
File be/src/service/client-request-state.h:

http://gerrit.cloudera.org:8080/#/c/14332/1/be/src/service/client-request-state.h@108
PS1, Line 108: (
> typo?
Done


http://gerrit.cloudera.org:8080/#/c/14332/1/be/src/service/client-request-state.h@114
PS1, Line 114: wait for
> typo?
Done


http://gerrit.cloudera.org:8080/#/c/14332/1/be/src/service/client-request-state.cc
File be/src/service/client-request-state.cc:

http://gerrit.cloudera.org:8080/#/c/14332/1/be/src/service/client-request-state.cc@786
PS1, Line 786: void ClientRequestState::BlockOnWait() {
> Could we reduce some duplication by just calling BlockOnWait(0) here?
Done


http://gerrit.cloudera.org:8080/#/c/14332/1/be/src/service/client-request-state.cc@809
PS1, Line 809:       block_on_wait_cv_.Wait(l);
> So if I understand correctly, here if 'timeout' is 0 we wait indefinitely b
Thanks for catching that. Have clarified the behavior in the docs. A value of 0 
should cause the fetch request to wait indefinitely. Added a test as well.


http://gerrit.cloudera.org:8080/#/c/14332/1/be/src/service/impala-hs2-server.cc
File be/src/service/impala-hs2-server.cc:

http://gerrit.cloudera.org:8080/#/c/14332/1/be/src/service/impala-hs2-server.cc@860
PS1, Line 860:     
return_val.status.__set_statusCode(thrift::TStatusCode::SUCCESS_STATUS);
> did you mean to make this change?
Yes, FetchInternal always sets the statusCode, unless it returns an error 
impala::Status, in which case the if loop above is triggered. If it reaches the 
end of the if without returning, than the statusCode is set to SUCCESS_STATUS.

The change is necessary otherwise SUCCESS_STATUS is always returned, even if 
the statusCode was already set to STILL_EXECUTING_STATUS



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2cba6bf062dcc1af19471d21857caa797c1ea4a4
Gerrit-Change-Number: 14332
Gerrit-PatchSet: 1
Gerrit-Owner: Sahil Takiar <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Sahil Takiar <[email protected]>
Gerrit-Reviewer: Thomas Tauber-Marshall <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-Comment-Date: Tue, 01 Oct 2019 21:36:29 +0000
Gerrit-HasComments: Yes

Reply via email to