ChenSammi commented on code in PR #8650:
URL: https://github.com/apache/ozone/pull/8650#discussion_r2188900405


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/diskbalancer/DiskBalancerService.java:
##########
@@ -90,7 +90,7 @@ public class DiskBalancerService extends BackgroundService {
   private AtomicLong balancedBytesInLastWindow = new AtomicLong(0L);
   private AtomicLong nextAvailableTime = new AtomicLong(Time.monotonicNow());
 
-  private Map<DiskBalancerTask, Integer> inProgressTasks;
+  private Set<DiskBalancerTask> inProgressTasks;

Review Comment:
   @Gargi-jais11 , please also add a unit test to test the concurrent tasks 
cannot exceed thread size. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to