KeDeng has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/19650


Change subject: [rowset_metadata] add min/max encoded keys update during restart
......................................................................

[rowset_metadata] add min/max encoded keys update during restart

We can cache the encoded min/max keys in rowset metadata to help
bootstrap tablets without having to fully initializing the CFileReaders
for the key columns of each rowset. However, we can only update the
min/max encoded keys during insert or update operations right now.
This means that if we didn't save the min/max encoded key before,
we won't have the opportunity to use this feature to accelerate bootstrap
in the future.

Considering that we will read the min/max key values during the bootstrap
process, we can set the min/max encoded keys in the metadata at the same
time.

I added a small case to ensures we can get the same keys from the bootstrap
process at startup.

Change-Id: I1b7ed75bdf7a2ff0e16c2670f1a6f9819ee8e8d3
---
M src/kudu/tablet/cfile_set.cc
M src/kudu/tablet/cfile_set.h
M src/kudu/tablet/diskrowset.h
M src/kudu/tablet/tablet.h
M src/kudu/tserver/tablet_server-test.cc
5 files changed, 118 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/50/19650/1
-- 
To view, visit http://gerrit.cloudera.org:8080/19650
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1b7ed75bdf7a2ff0e16c2670f1a6f9819ee8e8d3
Gerrit-Change-Number: 19650
Gerrit-PatchSet: 1
Gerrit-Owner: KeDeng <kdeng...@gmail.com>

Reply via email to