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

storage: expose quota release queue and base index #39111

Merged
merged 1 commit into from
Jul 26, 2019

Conversation

tbg
Copy link
Member

@tbg tbg commented Jul 26, 2019

This exposes the information on _status/range/N.

I've looked at a few ranges locally and I'm already noticing that
weirdly often the last index will be significantly ahead of the
quota release base index (though the release queue is always empty).

This might be something that only happens on single-node instances (the
release mechanism is based on Ready handling, which is different in
single instances because nothing ever needs to get acked externally),
but it's unexpected to me.

Motivated by #39022, where we see a proposal quota leak: quota is queued
up for release, but the base index is way ahead of the last index, so it
will never be released.

Release note: None

This exposes the information on `_status/range/N`.

I've looked at a few ranges locally and I'm already noticing that
weirdly often the last index will be significantly ahead of the
quota release base index (though the release queue is always empty).

This might be something that only happens on single-node instances (the
release mechanism is based on Ready handling, which is different in
single instances because nothing ever needs to get acked externally),
but it's unexpected to me.

Motivated by cockroachdb#39022, where we see a proposal quota leak: quota is queued
up for release, but the base index is way ahead of the last index, so it
will never be released.

Release note: None
@tbg tbg requested a review from a team July 26, 2019 11:04
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@tbg tbg requested review from nvanbenschoten and ajwerner July 26, 2019 11:04
Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

:lgtm:

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

@tbg
Copy link
Member Author

tbg commented Jul 26, 2019

CI flake unrelated, filed issue #39112

bors r=ajwerner

craig bot pushed a commit that referenced this pull request Jul 26, 2019
39111: storage: expose quota release queue and base index r=ajwerner a=tbg

This exposes the information on `_status/range/N`.

I've looked at a few ranges locally and I'm already noticing that
weirdly often the last index will be significantly ahead of the
quota release base index (though the release queue is always empty).

This might be something that only happens on single-node instances (the
release mechanism is based on Ready handling, which is different in
single instances because nothing ever needs to get acked externally),
but it's unexpected to me.

Motivated by #39022, where we see a proposal quota leak: quota is queued
up for release, but the base index is way ahead of the last index, so it
will never be released.

Release note: None

Co-authored-by: Tobias Schottdorf <tobias.schottdorf@gmail.com>
@craig
Copy link
Contributor

craig bot commented Jul 26, 2019

Build succeeded

@craig craig bot merged commit d944e94 into cockroachdb:master Jul 26, 2019
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