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


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogImpl.java:
##########
@@ -386,6 +398,25 @@ public DatanodeDeletedBlockTransactions getTransactions(
             LOG.warn("Container: {} was not found for the transaction: {}.", 
id, txn);
             txIDs.add(txn.getTxID());
           }
+          if (!iter.hasNext()) {
+            try (TableIterator<Long,
+                ? extends Table.KeyValue<Long, DeletedBlocksTransaction>> 
tmpIter =
+                deletedBlockLogStateManager.getReadOnlyIterator()) {
+              if (tmpIter.hasNext()) {
+                keyValue = tmpIter.next();
+                if (keyValue.getKey() != firstProcessedTransactionKey) {
+                  iter.seek(keyValue.getKey());
+                } else {
+                  break;
+                }
+              }
+            }

Review Comment:
   @nandakumar131 Thanks for the suggestion, handled it. 



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