metabase: Fix drop buckets during resync #1050
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1050
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-node:fix/resync_bucket_drop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Relates #1048
BBolt's
ForEach
functions don't allow to edit iterator items. This leads to undefined behavior.TestResetDropsContainerBuckets
fails without fix.@ -0,0 +1,57 @@
package meta
Moved to separate file to use the
meta
package to have access toboltdb
field.@ -171,2 +175,3 @@
for name != nil {
if _, ok := mStaticBuckets[string(name)]; !ok {
return tx.DeleteBucket(name)
nameCopy := bytes.Clone(name)
Why do we need clone here? The name should not be changed by
DeleteBucket
oups, fixed
47c7a31d01
toc09c701613