Do not go back in time in case of full neo-go reconnections #10
Labels
No labels
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-lifecycler#10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
We want to avoid a case when listener reconnects to a node living in the past. We need to subscribe for new blocks and save latest block number and then use it during initialization of new connection.
Originally posted by @alexvanin in /TrueCloudLab/frostfs-s3-lifecycler/pulls/9#issuecomment-44102
It's already done
latestBlock := l.blockNumber.Load()
if currentBlock > latestBlock {
latestBlock = currentBlock
}
if I understood you correctly
Missed that, indeed. Closed.