metabase: Fix EC storage schema #1160
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1160
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-node:fix/ec_chunks_metabase_schema"
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?
Do not store EC info twice.
Relates #1158
f6703bf9b3
to5d2241d01a
@ -473,46 +473,6 @@ func delUniqueIndexes(tx *bbolt.Tx, obj *objectSDK.Object, isParent bool) error
name: rootBucketName(cnr, bucketName),
key: objKey,
})
if obj.ECHeader() != nil {
EC info will be deleted here:
5d2241d01a/pkg/local_object_storage/metabase/delete.go (L335)
5d2241d01a/pkg/local_object_storage/metabase/put.go (L341)
@ -259,9 +258,6 @@ func putUniqueIndexes(
isObjKeySet := true
if ecHead := obj.ECHeader(); ecHead != nil {
if err = putECInfo(tx, cnr, objKey, ecHead); err != nil {
EC will be inserted here:
5d2241d01a/pkg/local_object_storage/metabase/put.go (L171)
5d2241d01a/pkg/local_object_storage/metabase/put.go (L341)
WIP: metabase: Fix EC storage schemato metabase: Fix EC storage schemaHave you run sanity tests?
Nope, only unit tests.
5d2241d01a
tocc2449beaf
Done