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 6e117f6  HDDS-6395. Intermittent failure in 
TestReconScmHASnapshot.testScmHASnapshot (#3149)
6e117f6 is described below

commit 6e117f64885197d38bc0b23fed8292406d22462b
Author: Stephen O'Donnell <[email protected]>
AuthorDate: Wed Mar 2 15:01:07 2022 +0000

    HDDS-6395. Intermittent failure in TestReconScmHASnapshot.testScmHASnapshot 
(#3149)
---
 .../java/org/apache/hadoop/ozone/recon/scm/ReconNodeManager.java | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git 
a/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/scm/ReconNodeManager.java
 
b/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/scm/ReconNodeManager.java
index 41cdc7a..c74cd8e 100644
--- 
a/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/scm/ReconNodeManager.java
+++ 
b/hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/scm/ReconNodeManager.java
@@ -303,6 +303,13 @@ public class ReconNodeManager extends SCMNodeManager {
 
   @VisibleForTesting
   public long getNodeDBKeyCount() throws IOException {
-    return nodeDB.getEstimatedKeyCount();
+    long nodeCount = 0;
+    TableIterator<UUID, ? extends Table.KeyValue<UUID, DatanodeDetails>>
+        iterator = nodeDB.iterator();
+    while (iterator.hasNext()) {
+      iterator.next();
+      nodeCount++;
+    }
+    return nodeCount;
   }
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to