Thomas Marshall has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/11615 )

Change subject: IMPALA-4063: Merge report of query fragment instances per 
executor
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/11615/2/be/src/runtime/query-state.cc
File be/src/runtime/query-state.cc:

http://gerrit.cloudera.org:8080/#/c/11615/2/be/src/runtime/query-state.cc@243
PS2, Line 243: backend_exec_state_ = cur_state == BackendExecState::PREPARING ?
             :           BackendExecState::EXECUTING : 
BackendExecState::FINISHED;
> The state transition logic is determined by 'overall_status_'.  So, making
Sorry, to be clearer - I was suggesting leaving the logic around 
'overall_state_' here and just changing the contents of this 'else' branch.

My thinking was that for a particular call site of UpdateBackendExecState() we 
would know what state we expect to transition to if overall_state_ is OK, eg. 
the call on line 518 would just take EXECUTING as a param, which would help 
ensure we don't accidentally call UpdateBackendExecState() twice for the 
PREPARE->EXECUTING transition. Looking more closely, though, I see that this 
doesn't make sense for the call at line 510.

I think its fine as is, no need to significantly rewrite this. Maybe just add a 
DCHECK at line 520 that the state is EXECUTING.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I5f95e026ba05631f33f48ce32da6db39c6f421fa
Gerrit-Change-Number: 11615
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Ho <[email protected]>
Gerrit-Reviewer: Bikramjeet Vig <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Michael Ho <[email protected]>
Gerrit-Reviewer: Thomas Marshall <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-Comment-Date: Wed, 10 Oct 2018 22:51:15 +0000
Gerrit-HasComments: Yes

Reply via email to