Todd Lipcon has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/11253


Change subject: IMPALA-7457. statestore: allow filtering by key prefix
......................................................................

IMPALA-7457. statestore: allow filtering by key prefix

This adds the ability for a statestore subscriber to specify a key
prefix which acts as a filter. Only topic entries which match the
specified prefix are transmitted to the subscriber.

This patch makes use of the new feature for a small optimization: the
catalogd subscribes to the catalog topic with a key prefix "!" which we
know doesn't match any actual topic items. This avoids the statestore
having to reflect back the catalog contents to the catalogd, since the
catalogd ignored this info anyway.

A later patch will make use of this to publish lightweight catalog
object version numbers in the same topic as the catalog objects
themselves.

The modification to catalogd's topic subscription is covered by existing
tests. A new specific test is added to verify the filtering mechanism.

Change-Id: I6ddcf3bfaf16bc3cd1ba01100e948ff142a67620
---
M be/src/catalog/catalog-server.cc
M be/src/scheduling/admission-controller.cc
M be/src/scheduling/scheduler.cc
M be/src/service/impala-server.cc
M be/src/statestore/statestore-subscriber.cc
M be/src/statestore/statestore-subscriber.h
M be/src/statestore/statestore.cc
M be/src/statestore/statestore.h
M common/thrift/StatestoreService.thrift
M tests/statestore/test_statestore.py
10 files changed, 112 insertions(+), 16 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6ddcf3bfaf16bc3cd1ba01100e948ff142a67620
Gerrit-Change-Number: 11253
Gerrit-PatchSet: 1
Gerrit-Owner: Todd Lipcon <[email protected]>

Reply via email to