You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by el...@apache.org on 2021/02/24 08:46:01 UTC

[ozone] 12/27: support limited number of containers to download

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

elek pushed a commit to branch HDDS-3816-ec
in repository https://gitbox.apache.org/repos/asf/ozone.git

commit 17299fdba00f655e95ef79b16c8d78cb25bddcaf
Author: Elek Márton <el...@apache.org>
AuthorDate: Thu Jan 28 14:19:00 2021 +0100

    support limited number of containers to download
---
 .../java/org/apache/hadoop/ozone/freon/ClosedContainerReplicator.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/ClosedContainerReplicator.java b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/ClosedContainerReplicator.java
index 7d7af35..90fe34c 100644
--- a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/ClosedContainerReplicator.java
+++ b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/ClosedContainerReplicator.java
@@ -121,8 +121,8 @@ public class ClosedContainerReplicator extends BaseFreonGenerator implements
 
     }
 
-    //important: override the max number of tasks.
-    setTestNo(replicationTasks.size());
+    //important: limit the max number of tasks.
+    setTestNo(Math.min(replicationTasks.size(), getTestNo()));
 
     init();
 


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