Riza Suminto has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/21383


Change subject: IMPALA-13040: Add waiting mechanism in UpdateFilterFromRemote
......................................................................

IMPALA-13040: Add waiting mechanism in UpdateFilterFromRemote

It is possible to have UpdateFilterFromRemote RPC arrive to an impalad
executor before QueryState of the destination query is created or
complete initialization. This patch add wait mechanism in
UpdateFilterFromRemote RPC endpoint to wait for few miliseconds until
QueryState exist and complete initialization.

The maximum wait time is max between 200ms and the remaining runtime
filter wait time from caller's perspective. If maximum wait time passed
and QueryState still not found or initialized, UpdateFilterFromRemote
RPC is deemed fail and query execution move on without complete filter.

Testing:
- Add test_runtime_filters.py::TestLateQueryStateInit
- Pass exhastive runs of test_runtime_filters.py and
  test_runtime_filter_aggregation.py

Change-Id: I156d1f0c694b91ba34be70bc53ae9bacf924b3b9
---
M be/src/runtime/query-exec-mgr.cc
M be/src/runtime/query-state.cc
M be/src/runtime/query-state.h
M be/src/runtime/runtime-filter-bank.cc
M be/src/runtime/runtime-filter-bank.h
M be/src/service/data-stream-service.cc
M common/protobuf/data_stream_service.proto
M tests/query_test/test_runtime_filters.py
8 files changed, 120 insertions(+), 24 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/83/21383/1
--
To view, visit http://gerrit.cloudera.org:8080/21383
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I156d1f0c694b91ba34be70bc53ae9bacf924b3b9
Gerrit-Change-Number: 21383
Gerrit-PatchSet: 1
Gerrit-Owner: Riza Suminto <[email protected]>

Reply via email to