ashishkumar50 commented on code in PR #7460:
URL: https://github.com/apache/ozone/pull/7460#discussion_r1850495093


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogImpl.java:
##########
@@ -137,6 +137,10 @@ public List<DeletedBlocksTransaction> 
getFailedTransactions(int count,
             }
           }
         } else {
+          iter.seek(startTxId);
+          if (iter.hasNext()) {
+            iter.next();

Review Comment:
   Yes `iter.next().getValue()` returns old value at L145 because 
[nextTx](https://github.com/apache/ozone/blob/a8db9cd4766db9086b6c28d431e2faf1df1d9a49/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogStateManagerImpl.java#L124)
 is not updated in `seek.`



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