Skip to content

Conversation

@acogoluegnes
Copy link
Contributor

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

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
@acogoluegnes acogoluegnes added this to the 4.1.2 milestone Jun 16, 2025
@acogoluegnes acogoluegnes merged commit 90cb557 into main Jun 16, 2025
564 of 565 checks passed
@acogoluegnes acogoluegnes deleted the stream-leader-can-be-undefined branch June 16, 2025 16:12
michaelklishin added a commit that referenced this pull request Jun 16, 2025
Return error if stream leader is undefined in stream manager (backport #14083)
@michaelklishin michaelklishin modified the milestones: 4.1.2, 4.2.0 Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants