[
https://issues.apache.org/jira/browse/HDDS-7214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-7214:
---------------------------------
Labels: pull-request-available (was: )
> 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
> Assignee: Sumit Agrawal
> Priority: Major
> Labels: pull-request-available
>
> 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: [email protected]
For additional commands, e-mail: [email protected]