Skip to content

Is it possible that BBolt cannot delete a key when the storage has no space left? #685

Answered by ahrtr
andrzej-stencel asked this question in Q&A
Discussion options

You must be logged in to vote

I didn't say it was an issue 😄 I asked a specific question: Is it possible that BBolt fails to remove a key if there's not enough storage available?

Oh, sorry for the confusion. The answer is indeed "YES". The same reason as I mentioned in #685 (reply in thread). Each time when updating (no matter it's writing or deleting), bbolt will always write the updated data into new pages, the previous pages will keep unchanged to ensure that the db file isn't corrupted if the transaction runs into any issue.

Please refer to https://github.com/ahrtr/etcd-issues/blob/master/docs/cncf_storage_tag_etcd.md#storage-boltdb-feature

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@andrzej-stencel
Comment options

@ahrtr
Comment options

@andrzej-stencel
Comment options

@ahrtr
Comment options

Answer selected by andrzej-stencel
@andrzej-stencel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants