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

Fix SwitchOnFirst hanging subscription #3939

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

chemicL
Copy link
Member

@chemicL chemicL commented Nov 21, 2024

In a situation where SwitchOnFirstMain is subscribed to after the operator itself has terminated, the expectation is that either an error is propagated due to cancellation of the source or the first actual subscription succeeds. Due to a regression introduced in #2794 the subscription would hang with no termination. This change addresses the issue and the subscrption properly terminates.

Related to #3936.

In a situation where `SwitchOnFirstMain` is subscribed to after the
operator itself has terminated, the expectation is that either an error
is propagated due to cancellation of the source or the first actual
subscription succeeds. Due to a regression introduced in #2794 the
subscription would hang with no termination. This change addresses the
issue and the subscrption properly terminates.

Related to #3936.

Signed-off-by: Dariusz Jędrzejczyk <[email protected]>
@chemicL chemicL added the type/bug A general bug label Nov 21, 2024
@chemicL chemicL added this to the 3.6.13 milestone Nov 21, 2024
@chemicL chemicL requested a review from a team as a code owner November 21, 2024 13:11
@chemicL chemicL merged commit a7fe500 into 3.6.x Nov 21, 2024
8 checks passed
@chemicL chemicL deleted the switch-on-first-cancelled-resubscribe-hangs branch November 21, 2024 14:26
chemicL added a commit that referenced this pull request Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant