swamirishi commented on code in PR #8779:
URL: https://github.com/apache/ozone/pull/8779#discussion_r2510853726


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerDoubleBuffer.java:
##########
@@ -334,9 +344,9 @@ private void flushBatch(Queue<Entry> buffer) throws 
IOException {
 
     try (BatchOperation batchOperation = omMetadataManager.getStore()
         .initBatchOperation()) {
-
       String lastTraceId = addToBatch(buffer, batchOperation);
-
+      
omMetadataManager.getFlushedTransactionsTable().deleteRangeWithBatch(batchOperation,
 0L,
+          Math.max(lastTransaction.getIndex() - maxFlushedTransactionGap, 0L));

Review Comment:
   This can be used in even notification design as well.



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