You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Sumit Agrawal (Jira)" <ji...@apache.org> on 2022/09/12 12:43:00 UTC

[jira] [Created] (HDDS-7214) Continuous start & stop can have hanging threads in stopping

Sumit Agrawal created HDDS-7214:
-----------------------------------

             Summary: Continuous start & stop can have hanging threads in stopping
                 Key: HDDS-7214
                 URL: https://issues.apache.org/jira/browse/HDDS-7214
             Project: Apache Ozone
          Issue Type: Sub-task
            Reporter: Sumit Agrawal


ContainerBalancer class while handling stop, set the field currentBalancingThread to null, thus marking it as stopped ( isBalancerRunning() method returning as false). But it continue to wait for thread to be stopped, i.e. not really stopped. 

This has impact as:
 # Hanging threads which is running (waiting to be stopped).
 # Class fields are shared, this can impact when new start action comes and exiting thread is still running. Existing thread can continue to run as currentBalancingThread is set to not null, and can face other impact.

Need to bring Stopping state and disallow start till existing operation of stop is completed. 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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