Sumit Agrawal created HDDS-7592:
-----------------------------------
Summary: Recursive delete of directory multiple time impacts some
directory not removed
Key: HDDS-7592
URL: https://issues.apache.org/jira/browse/HDDS-7592
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Sumit Agrawal
Assignee: Sumit Agrawal
When recursive directory create and delete is happening continuously, its
observed certain child directory and files remains in table untracked.
{code:java}
./ozone fs -mkdir -p /vol/bucket/d1/d2/d3/d
./ozone fs -copyFromLocal <src file> /vol/bucket/d1/d2/test.file
./ozone fs -rm -r -skipTrace /vol/bucket/d1
{code}
Here possible scenario,
# deletedDirTable is having duplicate entry for multiple dir path,
eg:"/-9223372036854773504/-9223372036854772992/-9223372036854757631/d1" -> { ...
# But when this path is deleted for deletedDirTable (for all multiple cases),
it will leave hanging sub-files and sub-dir with no track for deletion
As solution, we need add uniqueness in key name as extension,, like objectId
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]