Skip to content

server: defer gossip start to when absolutely needed#53800

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
irfansharif:200901.defer-gossip-start
Sep 3, 2020
Merged

server: defer gossip start to when absolutely needed#53800
craig[bot] merged 1 commit intocockroachdb:masterfrom
irfansharif:200901.defer-gossip-start

Conversation

@irfansharif
Copy link
Copy Markdown
Contributor

This was pulled out of #52526 to keep the diff there focussed on the
introduction of the RPC (and to see if that alone shaked out any
failures). That change lets us make this one, were we can defer gossip
start until right before we start up Node.

Release justification: low risk, high benefit change to existing functionality
Release note: None

@irfansharif irfansharif requested a review from tbg September 2, 2020 00:07
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @irfansharif)


pkg/server/node.go, line 615 at r1 (raw file):

}

// startGossipping loops on a periodic ticker to gossip node-related

nit throughout: it's gossiping (I only know because I've messed this up like a thousand times during my tenure here)

This was pulled out of cockroachdb#52526 to keep the diff there focussed on the
introduction of the RPC (and to see if that alone shaked out any
failures). That change lets us make this one, were we can defer gossip
start until right before we start up Node.

Release justification: low risk, high benefit change to existing functionality
Release note: None
@irfansharif irfansharif force-pushed the 200901.defer-gossip-start branch from fe1f6b6 to 0b54595 Compare September 3, 2020 19:21
Copy link
Copy Markdown
Contributor Author

@irfansharif irfansharif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 2 files at r1, 1 of 1 files at r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained


pkg/server/node.go, line 615 at r1 (raw file):

Previously, tbg (Tobias Grieger) wrote…

nit throughout: it's gossiping (I only know because I've messed this up like a thousand times during my tenure here)

Done (ha).

@irfansharif
Copy link
Copy Markdown
Contributor Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Sep 3, 2020

Build succeeded:

@craig craig bot merged commit fcb30c7 into cockroachdb:master Sep 3, 2020
@irfansharif irfansharif deleted the 200901.defer-gossip-start branch September 3, 2020 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants