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

release-20.2: backfill: clear bound account after index KV has been written #55092

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

dt
Copy link
Member

@dt dt commented Oct 1, 2020

Backport 1/1 commits from #55051.

/cc @cockroachdb/release


Previously, we were not clearing the bound account associated
with the index backfiller once the index KVs (which it was
monitoring memory for) had been written and didn't need to
be referenced in the future.

This change clears the bound account after each "chunk" is
processed by the index backfiller. Since the bound account is
only used to track the memory of the index KVs generated when
processing a "chunk", we can simply Clear() it instead of doing
any fine grained shrinking.

Important to callout that clearing this bound account does not
affect the underlying row fetcher which has its own child monitor
and bound account to work with.

Release note: None

Previously, we were not clearing the bound account associated
with the index backfiller, once the index KVs (which it was
monitoring memory for) had been written and didn't need to
be referenced in the future.

This change clears the bound account after each "chunk" is
processed by the index backfiller. Since the bound account is
only used to track the memory of the index KVs generated when
processing a "chunk", we can simply Clear() it instead of doing
any fine grained shrinking.

Release note: None
@dt dt requested a review from adityamaru October 1, 2020 01:00
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@pbardea pbardea self-requested a review October 1, 2020 02:11
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