You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/06/24 19:24:21 UTC

[GitHub] [ozone] errose28 commented on a diff in pull request #3515: HDDS-6881. [SCM HA finalization] Support finalizing from a Ratis snapshot.

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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org