-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: Disable campaign-on-wake when receiving raft messages #26463
Conversation
This prevents firewall prompts on macos (which never seem to remember my answer) when running tests in a loop. Release note: None
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed. pkg/cmd/roachtest/cluster.go, line 721 at r1 (raw file):
Does that work? I would have though you needed pkg/storage/replica.go, line 3456 at r2 (raw file):
An inline comment such as Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. pkg/cmd/roachtest/cluster.go, line 721 at r1 (raw file): Previously, petermattis (Peter Mattis) wrote…
Yes, it works. pkg/storage/replica.go, line 3456 at r2 (raw file): Previously, petermattis (Peter Mattis) wrote…
Maybe, but then it's likely to push the function literal onto the next line so I don't think it's a net win. Comments from Reviewable |
When the incoming message is a MsgVote (which is likely the case for the first message received by a quiesced follower), immediate campaigning will cause the election to fail. This is similar to reverting commit 44e3977, but only disables campaigning in one location. Fixes cockroachdb#26391 Release note: None
a7e89b4
to
da2025f
Compare
bors r+ |
26441: distsql: add NewFinalIterator to the rowIterator interface r=asubiotto a=asubiotto Some implementations of the rowIterator interface would destroy rows as they were iterated over to free memory eagerly. NewFinalIterator is introduced in this change to provide non-reusable behavior and NewIterator is explicitly described as reusable. A reusable iterator has been added to the memRowContainer to satisfy these new interface semantics. Release note: None 26463: storage: Disable campaign-on-wake when receiving raft messages r=bdarnell a=bdarnell When the incoming message is a MsgVote (which is likely the case for the first message received by a quiesced follower), immediate campaigning will cause the election to fail. This is similar to reverting commit 44e3977, but only disables campaigning in one location. Fixes #26391 Release note: None 26469: lint: Fix a file descriptor leak r=bdarnell a=bdarnell This leak is enough to cause `make lintshort` fail when run under the default file descriptor limit on macos (256). Release note: None 26470: build: Pin go.uuid to the version currently in use r=bdarnell a=bdarnell Updates #26332 Release note: None Co-authored-by: Alfonso Subiotto Marqués <alfonso@cockroachlabs.com> Co-authored-by: Ben Darnell <ben@cockroachlabs.com>
Build succeeded |
LGTM 👍 going to try this on my 100k range cluster. |
When the incoming message is a MsgVote (which is likely the case for
the first message received by a quiesced follower), immediate
campaigning will cause the election to fail.
This is similar to reverting commit 44e3977, but only disables
campaigning in one location.
Fixes #26391
Release note: None