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

(golang) give a random index for NewSubscriptionLoadBalancer #657

Closed
wants to merge 1 commit into from

Conversation

kingkh1995
Copy link
Contributor

Which Issue(s) This PR Fixes

Fixes #655

Brief Description

If use SimpleConsumer for consumption, due to the invalidation of the TopicRoute in the subTopicRouteDataResultCache, the SubscriptionLoadBalancer will be recreated, because the index is not given a random value (a random value is given in the Java client), the index always starts from 0, If the awaitDuration value is set too large, You may never be able to pull a message from a queue that is lower in order.

How Did You Test This Change?

I'm no golang expert, please help me improve my code if need.

Copy link

This PR is stale because it has been open for 30 days with no activity. It will be closed in 3 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR.

@github-actions github-actions bot added the stale Pull request is stale label Jan 26, 2024
Copy link

This PR was closed because it has been inactive for 3 days since being marked as stale.

@github-actions github-actions bot closed this Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Pull request is stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Use SimpleConsumer there will always be some messages that cannot be pulled
1 participant