Bikramjeet Vig has posted comments on this change. ( http://gerrit.cloudera.org:8080/10060 )
Change subject: IMPALA-5216: Make admission control queuing async ...................................................................... Patch Set 8: (1 comment) http://gerrit.cloudera.org:8080/#/c/10060/7/be/src/service/client-request-state.cc File be/src/service/client-request-state.cc: http://gerrit.cloudera.org:8080/#/c/10060/7/be/src/service/client-request-state.cc@1147 PS7, Line 1147: void ClientRequestState::FinishExecQueryOrDmlRequest() { : #ifndef NDEBUG : SleepIfSetInDebugOptions(schedule_->query_options(), SLEEP_BEFORE_ADMISSION_MS); : #endif : // Remove if-check after IMPALA-5814. : if (ExecEnv::GetInstance()->admission_controller() != nullptr) { : Status admit_status = ExecEnv::GetInstance()->admission_controller()->AdmitQuery( : schedule_.get(), &admit_outcome_); : : #ifndef NDEBUG : SleepIfSetInDebugOptions(schedule_->query_options(), SLEEP_AFTER_ADMISSION_MS); : #endif > Given how small the window is, I think it's better to go with the simpler a Yes, it is equivalent to cancellation happening right after this check, which would be caught by the cancellation check at Line 1173 -- To view, visit http://gerrit.cloudera.org:8080/10060 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I989cf5b259afb8f5bc5c35590c94961c81ce88bf Gerrit-Change-Number: 10060 Gerrit-PatchSet: 8 Gerrit-Owner: Bikramjeet Vig <[email protected]> Gerrit-Reviewer: Bikramjeet Vig <[email protected]> Gerrit-Reviewer: Dan Hecht <[email protected]> Gerrit-Reviewer: Tim Armstrong <[email protected]> Gerrit-Comment-Date: Fri, 11 May 2018 23:59:59 +0000 Gerrit-HasComments: Yes
