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

kvcoord: Reintroduce catchup scan semaphore for regular rangefeed #113966

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

miretskiy
Copy link
Contributor

Re-introduce catchup scan semaphore limit, removed by #110919, for regular rangefeed. This hard limit on the number of catchup scans is necessary to avoid OOMs when handling large scan rangefeeds (large fan-in factor) when executing many non-local ranges.

Fixes #113489

Release note: None

@miretskiy miretskiy requested review from erikgrinaker and a team November 7, 2023 19:56
Copy link

blathers-crl bot commented Nov 7, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Re-introduce catchup scan semaphore limit, removed by cockroachdb#110919,
for regular rangefeed.  This hard limit on the number of catchup
scans is necessary to avoid OOMs when handling large
scan rangefeeds (large fan-in factor) when executing many
non-local ranges.

Fixes cockroachdb#113489

Release note: None
Copy link
Contributor

@erikgrinaker erikgrinaker left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@miretskiy miretskiy changed the title kvcoord: Reingroduce catchup scan semaphore for regular rangefeed kvcoord: Reintroduce catchup scan semaphore for regular rangefeed Nov 8, 2023
@miretskiy
Copy link
Contributor Author

bors r+

@miretskiy miretskiy added the backport-23.2.x Flags PRs that need to be backported to 23.2. label Nov 8, 2023
@craig
Copy link
Contributor

craig bot commented Nov 8, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.2.x Flags PRs that need to be backported to 23.2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

roachtest: cdc/scan/catchup/nodes=5/cpu=16/rows=1G/ranges=100k/protocol=rangefeed/format=json/sink=null failed
3 participants