siddhantsangwan commented on pull request #2578:
URL: https://github.com/apache/ozone/pull/2578#issuecomment-939744991


   > IMHO, it is better off using a completeableFuture to run balancer 
asynchronously , not an os thread.
   > 
   > 1 when we are going to start a balancer , if the completeableFuture 
`isDone()` or null , we can create a new completeableFuture to run balancer 
asynchronously.
   > 
   > 2 when we want to check the balancer status , just return 
`completeableFuture.isDone() || completeableFuture == null`
   > 
   > 3 if we want to stop balancer from command line when balancer is running , 
just call something like `cancel()` or else.
   > 
   > 4 if completeableFuture completes, nothing to do.
   > 
   > this is the basic idea, please take a deep thought!
   
   @JacksonYao287 thanks for the suggestion! What do you think about this 
@lokeshj1703 ?


-- 
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