New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[working as intended] Cannot remove folders in bucket when versioning is enabled or suspended. #10914
Comments
@tomsozolins |
Most probably some stale content left over from list cache. |
Is this normal behavior? Will the cache clean automatically? It seems like, the recursive function deleted all the object files but all the directories remained untouched. I can still browse these directories with TAB in mc client. Tried to put object inside the directory. Then deleted the directory. The directory remained intact, but the object was deleted. |
Tried another test, i deleted all files from the problematic bucket from file system level and then the directories disappeared from the bucket. I can confirm, that this problem wasn't happening on previous versions of MinIO with the exact same directory. |
if the directories were created using |
Directories were created automatically by MinIO Browser drag and drop upload. |
Yesterday i tested ILM policy and it behaves the same. All object files were deleted from directories, but all directories remained undeleted. This is not expected behavior. |
I can confirm that this bug is happening on completely separate new single node MinIO server. |
Hello! I can confirm that this problem exists for a long time. We've been experiencing it with our 12 nodes cluster in RELEASE.2020-05-01T22-19-14Z. The only solution for now is to delete such directories from the file system. Use some configuration management tool to perform this action on all nodes at once in distributed setups. |
Obviously this is not a serious solution, because it is a bug that should be fixed in the initial root. |
Today i found out that this bug is happening only on buckets with versioning enabled. If i do versioning suspend on bucket, the problem still persists and directories are not deleted. On buckets with no versioning, directories are deleted correctly. |
This is because of not a bug it is simply the fact that Deletes on versioning enabled buckets creates delete markers i.e the object is actually not deleted. Deleting from browser doesn't delete the objects on versioning enabled buckets instead it creates a delete marker so the object is not visible but its prefixes are i.e top level directories. This is behaving in accordance with AWS S3 behavior. if you wish to delete them For ILM to delete the delete markers as well as older versions you should enable ILM to delete the delete markers as well.
This is a separate problem @annkam not related to what @tomsozolins is talking about. |
Hello!
I have a problem that i can't delete folder from MinIO. Below is sample directory structure:
When i click remove in MinIO browser, the directory dissapears, but when i click refresh it appears back.
I tried to do recursive delete with MC client and it shows error:
mc: <ERROR> Failed to remove
node1/rpptest/. Object does not exist
Tried to restart minio service on all 3 nodes, but still the problem persists.
Now i have these two dangling directories which i can't remove:
The text was updated successfully, but these errors were encountered: