adoroszlai commented on code in PR #4499:
URL: https://github.com/apache/ozone/pull/4499#discussion_r1152881106


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java:
##########
@@ -996,7 +996,7 @@ public void notifyNotLeader(Collection<TransactionContext> 
pendingEntries) {
 
   @Override
   public CompletableFuture<Void> truncate(long index) {
-    stateMachineDataCache.removeIf(k -> k >= index);
+    stateMachineDataCache.removeIf(k -> k <= index);

Review Comment:
   @szetszwo Thanks for the review.  When requesting changes I think it's 
better to not start CI checks, since the update will require a new run anyway.  
For the current state of the patch we can see results in @sumitagrawl's 
[fork](https://github.com/sumitagrawl/ozone/actions/runs/4561460466).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to