You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Andrew Wong (Code Review)" <ge...@cloudera.org> on 2020/12/02 02:39:07 UTC

[kudu-CR] client: allow tablet ID lookups from the MetaCache

Hello Tidy Bot, Alexey Serbin, Kudu Jenkins, Hao Hao, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/16794

to look at the new patch set (#2).

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
---
M src/kudu/client/client-test.cc
M src/kudu/client/client.h
M src/kudu/client/meta_cache.cc
M src/kudu/client/meta_cache.h
4 files changed, 432 insertions(+), 24 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/94/16794/2
-- 
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: newpatchset
Gerrit-Change-Id: Ib2333add5c3ab8403c48e69d29c90f3aec0914b6
Gerrit-Change-Number: 16794
Gerrit-PatchSet: 2
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)