The renew grace period is too small to renew locks for a batch of Service Bus Queue messages #37340
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
Describe the bug
If we take a batch of messages from the Service Bus Queue, it takes a long time to renew the locks (since there is a sleep of 0.5s between each update). The renewal happens very close to the end of expiry (10s) - so it is a very critical window.
The only solution for a large batch (say of size 400) is to have a ridiculously large number of threads that can renew the locks together.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
renew_period
parameter and soon (eg: I would start renewing the locks 1-2 minutes in advance)Screenshots
If applicable, add screenshots to help explain your problem.
Logs (with issue):
redacted_issue_log.txt
Logs (With hack in place - increased the
_renew_period
to 90s andmax_workers
= 2):redacted_ok_log.txt
Additional context
Original reference: #35717 (comment)
The text was updated successfully, but these errors were encountered: