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

rangefeed: fix sendMetadata deadlock #123519

Merged
merged 2 commits into from
May 6, 2024

Conversation

msbutler
Copy link
Collaborator

@msbutler msbutler commented May 2, 2024

If the rangefeed client's context is cancelled before a metadata event is sent
on the event channel, the rangefeed could hang forever. This bug was introduced
in #123001.

Fixes #123355
Fixes #123397

Release note: none

msbutler added 2 commits May 2, 2024 16:56
If the rangefeed client's context is cancelled before a metadata event is sent
on the event channel, the rangefeed could hang forever. This bug was introduced
in cockroachdb#123001.

Fixes cockroachdb#123355
Fixes cockroachdb#123397

Release note: none
@msbutler msbutler requested review from dt and stevendanna May 2, 2024 20:57
@msbutler msbutler self-assigned this May 2, 2024
@msbutler msbutler requested a review from a team May 2, 2024 20:57
@msbutler msbutler requested a review from a team as a code owner May 2, 2024 20:57
Copy link

blathers-crl bot commented May 2, 2024

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

@msbutler msbutler added backport-24.1.x Flags PRs that need to be backported to 24.1. backport-24.1.0-rc labels May 2, 2024
@celiala
Copy link
Collaborator

celiala commented May 3, 2024

FYI that I'm removing the backport to v24.1.0-rc, as the rc candidate is building now. thanks!
(and it looks like the blockers are against master branch).

@dt
Copy link
Member

dt commented May 3, 2024

The issue affects 24.1 and 24.1.0 as well, but I think we can live with it in 24.1.0

@msbutler
Copy link
Collaborator Author

msbutler commented May 3, 2024

TFTR!

bors r=dt

@craig
Copy link
Contributor

craig bot commented May 3, 2024

Build failed:

  • unit_tests

@msbutler
Copy link
Collaborator Author

msbutler commented May 6, 2024

unrelated unit test flake

bors r+

@craig craig bot merged commit a7b52e0 into cockroachdb:master May 6, 2024
22 checks passed
@msbutler
Copy link
Collaborator Author

msbutler commented May 6, 2024

blathers backport release-24.1.0-rc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-24.1.x Flags PRs that need to be backported to 24.1. T-disaster-recovery
Projects
None yet
4 participants