Skip to content
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

Do not block Store.Start while waiting for the first gossip. #971

Merged
merged 1 commit into from
May 8, 2015

Conversation

bdarnell
Copy link
Contributor

@bdarnell bdarnell commented May 8, 2015

In tests related to removed replicas, the first gossip run will block
while attempting to acquire the lease until the range GC queue can
determine that the range has been removed.

@tbg tbg added the PTAL label May 8, 2015
// to complete their initialization. In particular, this includes
// gossiping. In some cases this may block until the range GC queue
// has completed its scan. Only for testing.
func (s *Store) WaitForInit() {
Copy link
Contributor

Choose a reason for hiding this comment

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

does this need to be exported?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's called from storage/client_test.go which is in package storage_test.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@spencerkimball
Copy link
Member

LGTM

1 similar comment
@tbg
Copy link
Member

tbg commented May 8, 2015

LGTM

In tests related to removed replicas, the first gossip run will block
while attempting to acquire the lease until the range GC queue can
determine that the range has been removed.
@bdarnell bdarnell force-pushed the non-blocking-gossip branch from a259f47 to d13eba7 Compare May 8, 2015 18:54
bdarnell added a commit that referenced this pull request May 8, 2015
Do not block Store.Start while waiting for the first gossip.
@bdarnell bdarnell merged commit 4e71206 into cockroachdb:master May 8, 2015
@bdarnell bdarnell deleted the non-blocking-gossip branch May 8, 2015 19:06
@tbg tbg removed the PTAL label May 8, 2015
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.

4 participants