ChenSammi commented on code in PR #8845:
URL: https://github.com/apache/ozone/pull/8845#discussion_r2227118715
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogStateManagerImpl.java:
##########
@@ -247,21 +354,72 @@ public void reinitialize(
// before reinitialization. Just update deletedTable here.
Preconditions.checkArgument(deletingTxIDs.isEmpty());
this.deletedTable = deletedBlocksTXTable;
+ this.statefulConfigTable = configTable;
}
public static Builder newBuilder() {
return new Builder();
}
+ @Override
+ public DeletedBlocksTransactionSummary getTransactionSummary() {
+ return DeletedBlocksTransactionSummary.newBuilder()
+ .setFirstTxID(firstTxIdForDataDistribution)
+ .setTotalTransactionCount(totalTxCount.get())
+ .setTotalBlockCount(totalBlockCount.get())
+ .setTotalBlockSize(totalBlocksSize.get())
+ .setTotalBlockReplicatedSize(totalReplicatedBlocksSize.get())
+ .build();
+ }
+
+ private void initDataDistributionData() throws IOException {
Review Comment:
initDataDistributionData is loading the indicator, it doesn't recalculating
the indicator. So millions txs, or billions txs, it's the same.
--
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]