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

Query regarding - Introducing a Delay for Message Redelivery in Azure Service Bus with Sessions #43855

Open
2 tasks done
pranaybhardwaj554 opened this issue Jan 21, 2025 · 2 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Bus

Comments

@pranaybhardwaj554
Copy link

pranaybhardwaj554 commented Jan 21, 2025

Query/Question
When enabling sessions on Azure Service Bus, the delivery count of a message does not increment automatically if an exception occurs during message processing. However, if the message is explicitly abandoned, it gets redelivered with an incremented delivery count but without any delay.
Previously, when using Service Bus without sessions, we didn’t explicitly abandon messages.
Instead, the messages were redelivered with an incremented delivery count after the message lock expired. However, after enabling sessions, this behavior changed, and the issue described began to occur.

Is there a way to introduce a delay before redelivering the message after it has been abandoned for the session based service bus?

For Setup
Enable the session on the service bus with peek lock mode and then try to raise an exception while processing the message and don't explicitly abandon the message then you can observe that the delivery count of the message won't increment on redelivery.

Why is this not a Bug or a feature Request?

Image
As mentioned in the second point the delivery count won't increment if the message is not completed even if the message is locked.

Setup (please complete the following information if applicable):

  • OS: macOS
  • IDE: IntelliJ
  • Library/Libraries: azure-messaging-servicebus - 7.13.2

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Query Added
  • Setup information Added
@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Bus labels Jan 21, 2025
Copy link

@anuchandy @conniey @lmolkova

Copy link

Thank you for your feedback. Tagging and routing to the team member best able to assist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Bus
Projects
None yet
Development

No branches or pull requests

2 participants