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

Return appropriate response when stream leader not available #3874

Closed
acogoluegnes opened this issue Dec 9, 2021 · 0 comments · Fixed by #3879
Closed

Return appropriate response when stream leader not available #3874

acogoluegnes opened this issue Dec 9, 2021 · 0 comments · Fixed by #3879
Assignees
Labels
Milestone

Comments

@acogoluegnes
Copy link
Contributor

rabbit_stream_manager:lookup_leader/2 function does not make the difference between a non-existing stream and a non-available leader. This leaks up to the client that may think the stream they want to interact with does not exist at all, whereas the leader may not be available yet, especially when the system is starting up.

Original discussion: #3873.

@acogoluegnes acogoluegnes added this to the 3.9.12 milestone Dec 9, 2021
@acogoluegnes acogoluegnes self-assigned this Dec 9, 2021
acogoluegnes added a commit to rabbitmq/rabbitmq-stream-java-client that referenced this issue Dec 10, 2021
mergify bot pushed a commit that referenced this issue Dec 10, 2021
Fixes #3874

(cherry picked from commit bd4771a)

# Conflicts:
#	deps/rabbitmq_stream/src/rabbit_stream_manager.erl
#	deps/rabbitmq_stream/test/rabbit_stream_manager_SUITE.erl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant