errose28 commented on code in PR #3515:
URL: https://github.com/apache/ozone/pull/3515#discussion_r906344729
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/upgrade/FinalizationStateManagerImpl.java:
##########
@@ -172,6 +188,68 @@ public FinalizationCheckpoint getFinalizationCheckpoint() {
return currentCheckpoint;
}
+ @Override
+ public void reinitialize(Table<String, String> newFinalizationStore)
+ throws IOException {
+ checkpointLock.writeLock().lock();
+ try {
+ newFinalizationStore.close();
+ this.finalizationStore = newFinalizationStore;
Review Comment:
Yes, good catch. I would have thought this would crash the test, but I guess
RocksDB didn't free the resources before the snapshot install process read the
layout version key. I will fix this in #3534, since that PR builds off this one
and this PR is somewhat obsolete now.
--
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]