Skip to content
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

refcount: dangling data blocks #2

Open
iwanbk opened this issue Jan 9, 2025 · 0 comments
Open

refcount: dangling data blocks #2

iwanbk opened this issue Jan 9, 2025 · 0 comments
Assignees
Labels
type_bug Something isn't working

Comments

@iwanbk
Copy link
Member

iwanbk commented Jan 9, 2025

steps:

#mc put Cargo.toml cas/semua
...-cas/Cargo.toml: 1.24 KiB / 1.24 KiB  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  94.45 KiB/s 0s
#mc put Cargo.toml cas/semua
...-cas/Cargo.toml: 1.24 KiB / 1.24 KiB  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  94.45 KiB/s 0s
#mc rm cas/semua/Cargo.toml
Removed `cas/semua/Cargo.toml`.
#mc rm cas/semua/Cargo.toml
mc: <ERROR> Failed to remove `cas/semua/Cargo.toml`. Object does not exist

what happens

Second rm is failed, but the data block still exists under the fs-root.

Expectation

either the second rm succeed or the data block removed at first rm

suspect:

bucket.remove(object)?;

doing remove too early

@iwanbk iwanbk added the type_bug Something isn't working label Jan 9, 2025
@iwanbk iwanbk self-assigned this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type_bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant