Tsz-wo Sze created HDDS-14175:
---------------------------------
Summary: DefaultVolumeChoosingPolicy should not call
getCurrentUsage() multiple times
Key: HDDS-14175
URL: https://issues.apache.org/jira/browse/HDDS-14175
Project: Apache Ozone
Issue Type: Sub-task
Components: Ozone Datanode
Reporter: Tsz-wo Sze
Assignee: Tsz-wo Sze
In DefaultVolumeChoosingPolicy.chooseVolume(..), getCurrentUsage() is called
multiple times so it can return different values. The biggest problem is the
sorted(..) call. The code calls getCurrentUsage() in the comparator. The
behavior is ill-defined for sorting changing values.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]