New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage: Send snapshot messages with the correct term #13515
Conversation
Reviewed 4 of 4 files at r1. pkg/storage/client_raft_test.go, line 641 at r1 (raw file):
FYI spaces don't render nicely in subtest names, so you may want to use CamelCase. pkg/storage/client_raft_test.go, line 698 at r1 (raw file):
not all the stores. "live stores" is the term you use below. pkg/storage/client_raft_test.go, line 750 at r1 (raw file):
+1 on this comment pkg/storage/helpers_test.go, line 156 at r1 (raw file):
raft snapshot queue Comments from Reviewable |
2c3b3ca
to
1b039e3
Compare
Review status: 2 of 4 files reviewed at latest revision, 3 unresolved discussions. pkg/storage/client_raft_test.go, line 641 at r1 (raw file): Previously, tamird (Tamir Duberstein) wrote…
In what context? It looks to me like they get replaced with underscores. Changed anyway. pkg/storage/client_raft_test.go, line 698 at r1 (raw file): Previously, tamird (Tamir Duberstein) wrote…
Done. pkg/storage/helpers_test.go, line 156 at r1 (raw file): Previously, tamird (Tamir Duberstein) wrote…
Done. Comments from Reviewable |
Review status: 2 of 4 files reviewed at latest revision, 4 unresolved discussions, some commit checks pending. pkg/storage/replica_command.go, line 3345 at r2 (raw file):
I'm pretty sure this scenario can't happen. Comments from Reviewable |
Review status: 2 of 4 files reviewed at latest revision, 4 unresolved discussions, some commit checks pending. Comments from Reviewable |
Review status: 2 of 4 files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. pkg/storage/replica_command.go, line 3345 at r2 (raw file): Previously, petermattis (Peter Mattis) wrote…
Yeah, me too. But I'd rather have this check than a bare panic if it turns out I'm wrong. Comments from Reviewable |
This fixes a regression in cockroachdb#12686, which meant that a replica that fell too far behind would be unable to ever catch up because it would think that it was receiving out-of-date snapshots. Fixes cockroachdb#13506
1b039e3
to
49bd8b0
Compare
Reviewed 2 of 2 files at r2. Comments from Reviewable |
This fixes a regression in #12686, which meant that a replica that
fell too far behind would be unable to ever catch up because it would
think that it was receiving out-of-date snapshots.
Fixes #13506
This change is