Abhishek Chennaka has uploaded this change for review. ( http://gerrit.cloudera.org:8080/19445
Change subject: KUDU-1945 Update auto incrementing counter during bootstrap ...................................................................... KUDU-1945 Update auto incrementing counter during bootstrap The auto incrementing counter would be reset to zero when the tablet is being initialized. It is essential to have the correct value of the counter. There are two cases: 1. WAL segments contain insert operations In this scenario the WAL segments are replayed and since each insert operation entry has auto incrementing counter which will be used for the insert operations present in that entry, as long as we have the latest insert operation entry in the WAL segments, the auto incrementing counter is populated correctly during bootstrap. 2. WAL segments do not contain insert operations In the case, we need to fetch the highest auto incrementing counter value present in the data which is already flushed and update the in memory auto incrementing counter appropriately. This patch accomplishes this task. Testing has been done manually. Test cases to follow but feedback would be appreciated on 1. The above understanding in case I am missing something 2. The patch itself Change-Id: I61b305efd7d5a065a2976327567163956c0c2184 --- M src/kudu/tablet/tablet.cc 1 file changed, 25 insertions(+), 1 deletion(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/45/19445/1 -- To view, visit http://gerrit.cloudera.org:8080/19445 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I61b305efd7d5a065a2976327567163956c0c2184 Gerrit-Change-Number: 19445 Gerrit-PatchSet: 1 Gerrit-Owner: Abhishek Chennaka <[email protected]>
