When a "directory not empty" error occurs while EnsureRemoveAll operation should be retried once.#52172
When a "directory not empty" error occurs while EnsureRemoveAll operation should be retried once.#52172Wang-squirrel wants to merge 1 commit intomoby:masterfrom
Conversation
|
Thank you for contributing! It appears your commit message is missing a DCO sign-off, We require all commit messages to have a There is no need to open a new pull request, but to fix this (and make CI pass), Unfortunately, it's not possible to do so through GitHub's web UI, so this needs You can find some instructions in the output of the DCO check (which can be found Steps to do so "roughly" come down to:
let me know if you need help or more detailed instructions! |
…y deletion Signed-off-by: wang.xiaosong <wang.xiaosong1@zte.com.cn>
|
@thaJeztah sign-off has been added |
when
fix: #52161
- What I did
I observed that the EnsureRemoveAll function is returning a "directory not empty" error upon execution — this behavior is unexpected and should not occur.
- How I did it
We should retry the os.RemoveAll operation if an ENOTEMPTY error is encountered.
- How to verify it
check code
- Human readable description for the release notes
- A picture of a cute animal (not mandatory but encouraged)