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

[ServiceBus/EventHub] unique message/correlation ID for mgmt ops #39516

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

swathipil
Copy link
Member

@swathipil swathipil commented Jan 31, 2025

fixes: #39515

Incrementing next_message_id for mgmt ops as we do currently results in the same message ID (0) being used across all messages when renewing locks and other ops such as CBS. This becomes an issue when trying to correlate messages to renew locks/etc., since theIDs are not unique.

Updating message/correlation IDs to unique values so that we don't run into this issue.

Also copied over pyamqp changes from SB to EH, to make sure these are sync'ed.

TODO:

  • add tests with fault injector so we can control order of renew lock-token messages received from service

@swathipil swathipil changed the title [ServiceBus/EventHub] unique message ID for mgmt ops [ServiceBus/EventHub] unique message/correlation ID for mgmt ops Jan 31, 2025
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

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.

Service Bus: CorrelationID is subject to multi-threading issues
2 participants