Siyao Meng created HDDS-12447:
---------------------------------
Summary: sendDeleteCommand should never force-delete any container
replica; when needed, use sendForceDeleteCommand instead
Key: HDDS-12447
URL: https://issues.apache.org/jira/browse/HDDS-12447
Project: Apache Ozone
Issue Type: Task
Reporter: Siyao Meng
Context:
https://github.com/apache/ozone/pull/7976/commits/dc9ac6b9ca3766af6fd6f75be5381fcd3be9fadb#r1975852002
bq. In a future change we could consider a refactoring where force is never
given as a parameter. All methods would be of the form sendDeleteCommand or
sendForceDeleteCommand. DeleteContainerCommand could have two static factory
methods to build force and non-force variants with private constructors. This
would make it clearer when reading the code which paths are doing the
"dangerous" force delete operation.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]