WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

[QUERY] EventHubConsumerClient - exceeded the maximum number of allowed receivers per partition in a consumer group which is 5 #47502

@2stash

Description

@2stash

Library name and version

com.azure:azure-messaging-eventhubs:5.21.1

Query/Question

How can I manage my receivers per partitions via the SDK? I was developing and accidentally created too many receivers. After doing research, I know that I need to refactor my code to reuse my connection and not create one over and over. But how do I go back and delete the connections I have already made or reuse one that I already made. I cannot continue development because I get the following error:

com.azure.core.amqp.exception.AmqpException: Exceeded the maximum number of allowed receivers per partition in a consumer group which is 5. List of connected receivers

My connection code.
new EventHubClientBuilder().connectionString(connectionString).consumerGroup(EventHubClientBuilder.DEFAULT_CONSUMER_GROUP_NAME).buildAsyncConsumerClient();

Again, I get that I did it wrong, and I will fix my code. But I have not found anywhere in the Azure documentation on how to delete a connection, or reuse a connection with a receiver ID.

Thanks.

Environment

Android, Java.

Metadata

Metadata

Assignees

Labels

Event Hubscustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions