[
https://issues.apache.org/jira/browse/HDDS-11386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Siddhant Sangwan updated HDDS-11386:
------------------------------------
Description: The method `{{getCurrentIterationsStatistic}}` accesses
various data structures and objects. A reading thread that's executing this
method could be reading while the balancing thread is writing to these data
structures and objects. This is code is not thread safe and can cause
unpredictable errors. Some other thread safety issues could be there in this
class and ContainerBalancer as well. (was: The method
`{{getCurrentIterationsStatistic}}` accesses various data structures and
objects. A reading thread that's executing this method could be reading while
the balancing thread is writing to these data structures and objects. This is
code is not thread safe and can cause unpredictable errors.)
> Multithreading bug in ContainerBalancerTask
> -------------------------------------------
>
> Key: HDDS-11386
> URL: https://issues.apache.org/jira/browse/HDDS-11386
> Project: Apache Ozone
> Issue Type: Bug
> Affects Versions: 1.5.0
> Reporter: Siddhant Sangwan
> Priority: Major
>
> The method `{{getCurrentIterationsStatistic}}` accesses various data
> structures and objects. A reading thread that's executing this method could
> be reading while the balancing thread is writing to these data structures and
> objects. This is code is not thread safe and can cause unpredictable errors.
> Some other thread safety issues could be there in this class and
> ContainerBalancer as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]