Skip to content

Return error if stream leader is undefined in stream manager (backport #14083) #14085

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

Merged
merged 1 commit into from
Jun 16, 2025

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Jun 16, 2025

A stream may not have a leader temporarily for several reasons, e.g. after it has been restarted. The stream manager may return undefined in this case. Some client code may crash because it expects a PID or an error, but not undefined.

This commit makes sure the leader PID is an actual Erlang PID and returns {error, not_available} if it is not.

References #13962


This is an automatic backport of pull request #14083 done by Mergify.

A stream may not have a leader temporarily for several reasons, e.g.
after it has been restarted. The stream manager may return undefined in
this case. Some client code may crash because it expects a PID or an
error, but not undefined.

This commit makes sure the leader PID is an actual Erlang PID and
returns {error, not_available} if it is not.

References #13962

(cherry picked from commit 13e8564)
@michaelklishin michaelklishin added this to the 4.1.2 milestone Jun 16, 2025
@michaelklishin michaelklishin merged commit 329d6f5 into v4.1.x Jun 16, 2025
274 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.1.x/pr-14083 branch June 16, 2025 17:04
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.

2 participants