priyeshkaratha commented on code in PR #9720:
URL: https://github.com/apache/ozone/pull/9720#discussion_r2772471712
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/SCMDeletedBlockTransactionStatusManager.java:
##########
@@ -424,6 +424,14 @@ public void clear() {
scmDeleteBlocksCommandStatusManager.clear();
transactionToDNsCommitMap.clear();
txSizeMap.clear();
+ try {
+ initDataDistributionData();
+ } catch (IOException e) {
+ LOG.warn("Failed to initialize Storage space distribution data. The
feature will continue with current " +
+ "totalBlockCount {}, totalBlockCount {}, totalBlocksSize {} and
totalReplicatedBlocksSize {}. " +
+ "There is a high chance that the real data and current data has
a fixed gap.",
+ totalBlockCount.get(), totalBlocksSize.get(), totalBlocksSize.get(),
totalReplicatedBlocksSize.get());
Review Comment:
```suggestion
LOG.warn("Failed to initialize Storage space distribution data. The
feature will continue with current " +
"totalBlockCount {}, totalTxCount {}, totalBlocksSize {} and
totalReplicatedBlocksSize {}. " +
"There is a high chance that the real data and current data
has a fixed gap.",
totalBlockCount.get(), totalTxCount.get(), totalBlocksSize.get(),
totalReplicatedBlocksSize.get());
```
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/SCMDeletedBlockTransactionStatusManager.java:
##########
@@ -424,6 +424,14 @@ public void clear() {
scmDeleteBlocksCommandStatusManager.clear();
transactionToDNsCommitMap.clear();
txSizeMap.clear();
+ try {
+ initDataDistributionData();
+ } catch (IOException e) {
+ LOG.warn("Failed to initialize Storage space distribution data. The
feature will continue with current " +
+ "totalBlockCount {}, totalBlockCount {}, totalBlocksSize {} and
totalReplicatedBlocksSize {}. " +
+ "There is a high chance that the real data and current data has
a fixed gap.",
+ totalBlockCount.get(), totalBlocksSize.get(), totalBlocksSize.get(),
totalReplicatedBlocksSize.get());
Review Comment:
nit - totalBlocksSize used twice instead of totalTxCount
--
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]