You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is easiest to explain with an example timeline with two witnesses, A & B:
A sends checkpoint of size X
B sends checkpoint of size X
A sends checkpoint of size X+1
A sends checkpoint of size X+2
B sends checkpoint of size X+1
Asking for checkpoint with N=2 will give a checkpoint of size X, where a checkpoint of size X+1 should be possible.
The reason for this is that the distributor is optimized to only keep the latest checkpoint seen for each witness+log pair in the pool of checkpoints available for merging. If this is replaced before it is merged and promoted then it is lost forever.
There are a number of ways to go about fixing this, but they all risk making the size of the database unbounded in size, or increasing complexity. The current strategy is to wait to see if this appears to be a problem before taking on that risk/complexity.
This test case is covered in cmd/internal/distributor/distributor_test.go: TODO: N=2 can get historic version where both have been seen but not at same time
The text was updated successfully, but these errors were encountered:
This is easiest to explain with an example timeline with two witnesses, A & B:
Asking for checkpoint with N=2 will give a checkpoint of size X, where a checkpoint of size X+1 should be possible.
The reason for this is that the distributor is optimized to only keep the latest checkpoint seen for each witness+log pair in the pool of checkpoints available for merging. If this is replaced before it is merged and promoted then it is lost forever.
There are a number of ways to go about fixing this, but they all risk making the size of the database unbounded in size, or increasing complexity. The current strategy is to wait to see if this appears to be a problem before taking on that risk/complexity.
This test case is covered in
cmd/internal/distributor/distributor_test.go
:TODO: N=2 can get historic version where both have been seen but not at same time
The text was updated successfully, but these errors were encountered: