sumitagrawl commented on PR #8589:
URL: https://github.com/apache/ozone/pull/8589#issuecomment-2970869447
> 80000
@errose28 the finalize feature is run over Local Mac, its taking 1-2 second
only
Code sample modified to
TestDatanodeUpgradeToContainerIdsTable#testContainerTableAccessBeforeAndAfterUpgrade
```
for (int i = 0; i < 80000; ++i) {
tableWithStringCodec.put(ContainerID.valueOf(i), OPEN.name());
}
long start = Time.monotonicNow();
dsm.finalizeUpgrade();
System.out.println("Time take for upgrade " + (Time.monotonicNow() -
start) + "ms");
System.out.println("Estimated key count " +
metadataStore.getContainerIdsTable().getEstimatedKeyCount());
```
Time take for upgrade 1233ms
Estimated key count 80001
--
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]