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 96caaac4def HDDS-17849. Intermittent failure in 
TestSCMDbCheckpoint#testEndpoint (#12078)
96caaac4def is described below

commit 96caaac4def7b1358a0a3b516a48a5b360002e3a
Author: Andrey Yarovoy <[email protected]>
AuthorDate: Wed Nov 18 07:12:02 2026 -0500

    HDDS-17849. Intermittent failure in TestSCMDbCheckpoint#testEndpoint 
(#12078)
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 .../org/apache/hadoop/hdds/scm/TestSCMDbCheckpointServlet.java     | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/TestSCMDbCheckpointServlet.java
 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/TestSCMDbCheckpointServlet.java
index 381a58c912f..65f3a567ddb 100644
--- 
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/TestSCMDbCheckpointServlet.java
+++ 
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/TestSCMDbCheckpointServlet.java
@@ -177,14 +177,17 @@ public void write(int b) throws IOException {
     scmDbCheckpointServletMock.init();
     long initialCheckpointCount =
         scmMetrics.getDBCheckpointMetrics().getNumCheckpoints();
+    // Durations are in milliseconds and can be 0 for the small SCM DB; the 
sentinel checks that they were set.
+    scmMetrics.getDBCheckpointMetrics().setLastCheckpointCreationTimeTaken(-1);
+    
scmMetrics.getDBCheckpointMetrics().setLastCheckpointStreamingTimeTaken(-1);
 
     doEndpoint();
 
     assertThat(outputPath.toFile().length()).isGreaterThan(0);
     
assertThat(scmMetrics.getDBCheckpointMetrics().getLastCheckpointCreationTimeTaken())
-        .isGreaterThan(0);
+        .isGreaterThanOrEqualTo(0);
     
assertThat(scmMetrics.getDBCheckpointMetrics().getLastCheckpointStreamingTimeTaken())
-        .isGreaterThan(0);
+        .isGreaterThanOrEqualTo(0);
     assertThat(scmMetrics.getDBCheckpointMetrics().getNumCheckpoints())
         .isGreaterThan(initialCheckpointCount);
 


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

Reply via email to