Skip to content

Conversation

@mergify
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.

3 participants