priyeshkaratha commented on code in PR #11187:
URL: https://github.com/apache/ozone/pull/11187#discussion_r4314335121
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/SCMDeletedBlockTransactionStatusManager.java:
##########
@@ -486,6 +516,13 @@ public void
addTransactions(ArrayList<DeletedBlocksTransaction> txList) throws I
deletedBlockLogStateManager.addTransactionsToDB(txList);
}
+ private void checkSummaryReloaded() throws SCMException {
+ if (summaryReloadPending) {
+ throw new SCMException("Deleted blocks transaction summary is not
reloaded yet after becoming leader",
+ SCMException.ResultCodes.SCM_NOT_LEADER);
+ }
+ }
Review Comment:
Thanks, good catch. Went with option 2.
--
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]