Andrew Wong has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/16794 )
Change subject: client: allow tablet ID lookups from the MetaCache ...................................................................... client: allow tablet ID lookups from the MetaCache Having a client interface for getting a RemoteTablet asynchronously will be useful when it comes time to send participant ops to specific tablet IDs from the TxnSystemClient. In addition to the existing key-indexed cache entries, this patch extends the MetaCache to track a separate set of cache entries by tablet ID. There is no relationship between the two sets of cache entries -- a tablet may exist in one but not the other. The new id-based cache entries are only used if performing an id-based lookup in the MetaCache via its new internal LookupTabletById() call that will be used in a later patch. Change-Id: Ib2333add5c3ab8403c48e69d29c90f3aec0914b6 Reviewed-on: http://gerrit.cloudera.org:8080/16794 Tested-by: Andrew Wong <[email protected]> Reviewed-by: Alexey Serbin <[email protected]> --- M src/kudu/client/client-test.cc M src/kudu/client/client.h M src/kudu/client/master_proxy_rpc.h M src/kudu/client/meta_cache.cc M src/kudu/client/meta_cache.h 5 files changed, 509 insertions(+), 52 deletions(-) Approvals: Andrew Wong: Verified Alexey Serbin: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/16794 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: Ib2333add5c3ab8403c48e69d29c90f3aec0914b6 Gerrit-Change-Number: 16794 Gerrit-PatchSet: 5 Gerrit-Owner: Andrew Wong <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Hao Hao <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Tidy Bot (241)
