[pipelineX](local shuffle) Support parallel execution despite of tablet number (#28266)

This commit is contained in:
Gabriel
2023-12-14 12:53:54 +08:00
committed by GitHub
parent b443db6e3e
commit c00dca70e6
35 changed files with 480 additions and 205 deletions

View File

@ -105,7 +105,8 @@ Status SharedHashTableController::wait_for_signal(RuntimeState* state,
// maybe builder signaled before other instances waiting,
// so here need to check value of `signaled`
while (!context->signaled) {
_cv.wait_for(lock, std::chrono::milliseconds(400), [&]() { return context->signaled; });
_cv.wait_for(lock, std::chrono::milliseconds(400),
[&]() { return context->signaled.load(); });
// return if the instances is cancelled(eg. query timeout)
RETURN_IF_CANCELLED(state);
}