storage: remove the possibility of nil Replica.raftGroup#4204
storage: remove the possibility of nil Replica.raftGroup#4204bdarnell merged 1 commit intocockroachdb:masterfrom
Conversation
|
The failure mode is a removal happening, and the local data not being destroyed. Isn't the only mechanism by which a nil |
5f5d49f to
681ea62
Compare
|
OK, I've updated the commit to ensure that |
681ea62 to
18d4b75
Compare
18d4b75 to
71fbc9d
Compare
|
Reviewed 4 of 4 files at r1, 7 of 8 files at r2. storage/client_raft_test.go, line 1460 [r2] (raw file): storage/replica.go, line 182 [r2] (raw file): storage/replica.go, line 244 [r2] (raw file): storage/replica_test.go, line 252 [r2] (raw file): storage/store.go, line 1678 [r2] (raw file): Comments from the review on Reviewable.io |
Removed replicas are now destroyed eagerly on store startup. Fixes cockroachdb#4101 Fixes cockroachdb#3896
71fbc9d to
22bbc91
Compare
|
Review status: 6 of 7 files reviewed at latest revision, 5 unresolved discussions. storage/client_raft_test.go, line 1460 [r2] (raw file): storage/replica.go, line 182 [r2] (raw file): storage/replica_test.go, line 252 [r2] (raw file): storage/store.go, line 1678 [r2] (raw file): Comments from the review on Reviewable.io |
|
Reviewed 3 of 3 files at r3. storage/client_raft_test.go, line 1460 [r2] (raw file): storage/replica.go, line 234 [r3] (raw file): Comments from the review on Reviewable.io |
|
Review status: all files reviewed at latest revision, 2 unresolved discussions. storage/client_raft_test.go, line 1460 [r2] (raw file): Comments from the review on Reviewable.io |
|
LGTM Review status: all files reviewed at latest revision, 2 unresolved discussions. storage/client_raft_test.go, line 1460 [r2] (raw file): Comments from the review on Reviewable.io |
|
Review status: all files reviewed at latest revision, 1 unresolved discussion. storage/client_raft_test.go, line 1460 [r2] (raw file): Comments from the review on Reviewable.io |
|
Nice, LGTM. Reviewed 4 of 8 files at r2, 3 of 3 files at r3. Comments from the review on Reviewable.io |
storage: remove the possibility of nil Replica.raftGroup
Fixes #4101
Fixes #3896