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

cli: force quit when draining fails #7483

Merged
merged 2 commits into from Jun 27, 2016
Merged

cli: force quit when draining fails #7483

merged 2 commits into from Jun 27, 2016

Conversation

tbg
Copy link
Member

@tbg tbg commented Jun 27, 2016

$ ./cockroach quit
graceful shutdown failed, proceeding with hard shutdown: rpc error: code = 2 desc = replica range=1 [/Min-/Table/11) still has an active lease
ok

Fixes #6963.


This change is Reviewable

@tamird
Copy link
Contributor

tamird commented Jun 27, 2016

LGTM

@tbg tbg force-pushed the cli-quit branch 2 times, most recently from 69f6ec2 to 3448d74 Compare June 27, 2016 17:32
```
$ ./cockroach quit
graceful shutdown failed, proceeding with hard shutdown: rpc error: code = 2 desc = replica range=1 [/Min-/Table/11) still has an active lease
ok
```

Fixes cockroachdb#6963.
@tbg
Copy link
Member Author

tbg commented Jun 27, 2016

PTAL again, added another commit which makes the behavior better for the use case in #6963.

When the cluster is dead (for example due to loss of quorum),
an in-flight leader lease request (which was stuck) would
prevent clean shutdown indefinitely.
The added check on the inflight request lease's expiration
makes sure that we still exit gracefully after the request
has been stuck for a bit.
@tamird
Copy link
Contributor

tamird commented Jun 27, 2016

seems good

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.

None yet

2 participants