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

jojochuang 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 4bbc178a4ed HDDS-17475. Fix negative duration in pipeline scrub log 
(#11775)
4bbc178a4ed is described below

commit 4bbc178a4ed26d6b4532059b1036c82d662534dd
Author: Shuo Huang <[email protected]>
AuthorDate: Wed Oct 28 06:24:12 2026 +0800

    HDDS-17475. Fix negative duration in pipeline scrub log (#11775)
---
 .../java/org/apache/hadoop/hdds/scm/pipeline/PipelineManagerImpl.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/PipelineManagerImpl.java
 
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/PipelineManagerImpl.java
index c25b086817f..8890632a60b 100644
--- 
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/PipelineManagerImpl.java
+++ 
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/PipelineManagerImpl.java
@@ -623,7 +623,7 @@ public void scrubPipelines() throws IOException {
 
         LOG.info("Scrubbing pipeline: id: {} since it stays at ALLOCATED " +
             "stage for {} mins.", id,
-            Duration.between(currentTime, p.getCreationTimestamp())
+            Duration.between(p.getCreationTimestamp(), currentTime)
                 .toMinutes());
         closePipeline(id);
         deletePipeline(id);


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

Reply via email to