Store tree service sync height in the metabase #82
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#82
Loading…
Reference in a new issue
No description provided.
Delete branch "fyrchik/tree-service-store-sync-height"
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?
While it changes storage scheme, we can update safely -- after initial sync new height will be saved.
@ -13,6 +13,7 @@ Changelog for FrostFS Node
- Reload config for pprof and metrics on SIGHUP in `neofs-node` (#1868)
- Multiple configs support (#44)
- Parameters `nns-name` and `nns-zone` for command `frostfs-cli container create` (#37)
- Tree service now saves the last synchronization height which persists across restarts (#82)
"82"? we will have conflicts some day then
What do you mean? This PR is #82.
what we gonna do when
#1868
PR is open in that repo?We will discuss, but it is unrelated to this PR.
sure but i would discuss it as early as possible since we are already filling CHANGELOG with conflicting lines (adjacent rows belong to the different lists, what is that file for then?)
@ -216,0 +234,4 @@
var err error
var height uint64
for _, sh := range e.sortShardsByWeight(cid) {
height, err = sh.TreeLastSyncHeight(cid, treeID)
why not
getTreeShard
?Mostly because this is a general rule here.
The reason is that
getTreeShard
performsTreeExists
just to find the shard and is really needed only for modifying operations.TreeLastSyncHeight
is cheap, so we can safely use it here without callingTreeExists
for each shard ingetTreeShard
.