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 14:

(2 comments)

http://gerrit.cloudera.org:8080/#/c/19445/14/src/kudu/integration-tests/auto_incrementing-itest.cc
File src/kudu/integration-tests/auto_incrementing-itest.cc:

http://gerrit.cloudera.org:8080/#/c/19445/14/src/kudu/integration-tests/auto_incrementing-itest.cc@306
PS14, Line 306:   // There could still be a WAL entry with a DELETE OP.
              :   // This might cause the auto incrementing counter to be not 
set to 0 unless
              :   // FlushDeltaMRS is called. We restart servers to force 
elections which in turn
              :   // writes more WAL entries which causes these flushes.
> Wait, does it mean that in the wild we could end up in diverging counters f
Yes, but since there would be only one leader at a given point of time, the 
next insert ops would receive either 0 or 200 (in this case) depending on which 
replica is the leader. There is not guarantee but there would be holes in the 
counter keyspace.


http://gerrit.cloudera.org:8080/#/c/19445/14/src/kudu/integration-tests/auto_incrementing-itest.cc@311
PS14, Line 311:
> nit: remove an extra space
Done



--
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: 14
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-Reviewer: Yingchun Lai <[email protected]>
Gerrit-Comment-Date: Sat, 01 Apr 2023 00:04:18 +0000
Gerrit-HasComments: Yes

Reply via email to