Abhishek Chennaka has posted comments on this change. ( http://gerrit.cloudera.org:8080/19445 )
Change subject: KUDU-1945 Update auto incrementing counter during bootstrap ...................................................................... Patch Set 6: (1 comment) http://gerrit.cloudera.org:8080/#/c/19445/6//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/19445/6//COMMIT_MSG@38 PS6, Line 38: Columns - A Non Unique Primary Key column of type INT32 > Ah, I guess the lagging replica is a bit different scenario from what I des If TS2 is started back as a follower replica, the in-memory auto incrementing counter will be populated to the highest value seen in the WALs which have a corresponding COMMIT message. In this case if this is a new tablet and the WALs are not garbage collected, it would be 5. If this replica is a follower, the counter will be overwritten by the counter in the raft replicate message of the next INSERT op. If this is a leader, the next insert OP will have the counter set to 6. The auto incrementing counter would be reset to 0 only if there are no committed insert ops in the WALs (which contain the counter). Did that clarify the concern? -- 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: comment Gerrit-Change-Id: I61b305efd7d5a065a2976327567163956c0c2184 Gerrit-Change-Number: 19445 Gerrit-PatchSet: 6 Gerrit-Owner: Abhishek Chennaka <[email protected]> Gerrit-Reviewer: Abhishek Chennaka <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Marton Greber <[email protected]> Gerrit-Reviewer: Tidy Bot (241) Gerrit-Reviewer: Wenzhe Zhou <[email protected]> Gerrit-Comment-Date: Tue, 28 Mar 2023 03:58:22 +0000 Gerrit-HasComments: Yes
