You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ad...@apache.org on 2022/08/25 08:19:43 UTC

[ozone] branch master updated: HDDS-7173. Fix TestReconOmMetadataManagerImpl#testUpdateOmDB (#3719)

This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new e1f4548d35 HDDS-7173. Fix TestReconOmMetadataManagerImpl#testUpdateOmDB (#3719)
e1f4548d35 is described below

commit e1f4548d35a4aa513b10168b3167c683a52004bf
Author: Kaijie Chen <ch...@kaijie.org>
AuthorDate: Thu Aug 25 16:19:38 2022 +0800

    HDDS-7173. Fix TestReconOmMetadataManagerImpl#testUpdateOmDB (#3719)
---
 .../hadoop/ozone/recon/recovery/TestReconOmMetadataManagerImpl.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/recovery/TestReconOmMetadataManagerImpl.java b/hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/recovery/TestReconOmMetadataManagerImpl.java
index 0ecde0afd2..b33c927cd3 100644
--- a/hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/recovery/TestReconOmMetadataManagerImpl.java
+++ b/hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/recovery/TestReconOmMetadataManagerImpl.java
@@ -131,10 +131,14 @@ public class TestReconOmMetadataManagerImpl {
     Assert.assertNotNull(reconOMMetadataManager.getKeyTable(getBucketLayout())
         .get("/sampleVol/bucketOne/key_two"));
 
+    //Take a new checkpoint of OM DB.
+    DBCheckpoint newCheckpoint = omMetadataManager.getStore()
+        .getCheckpoint(true);
+    Assert.assertNotNull(newCheckpoint.getCheckpointLocation());
     // Update again with an existing OM DB.
     DBStore current = reconOMMetadataManager.getStore();
     reconOMMetadataManager.updateOmDB(
-        checkpoint.getCheckpointLocation().toFile());
+        newCheckpoint.getCheckpointLocation().toFile());
     // Verify that the existing DB instance is closed.
     Assert.assertTrue(current.isClosed());
   }


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