[QUERY] ServiceBusProcessorClient lock expiry #41981
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
Query/Question
Hello! I'm wanting to create a lock expiry monitor for the
ServiceBusProcessorClient
inPEEK_LOCK
mode. I've done a bit of research and was hoping you could point me in the right direction:maxAutoLockRenewDuration
) and whenmaxAutoLockRenewDuration
has been exhausted,processError
is not invoked. This makes sense asprocessMessage
is still running / possibly can't be interrupted. Is there another way to hook into these events?processMessage
handler, we could checkmessage.message.lockedUntil
, which is updated on lock refresh. This only works for non-session processors however, when using sessions messages are locked until+10000-01-01T00:00:00Z
(which I'm assuming is because the lock is held for the entire session, even pastsessionIdleTimeout
). Is there a way of retrieving the actuallockedUntil
value?Why is this not a Bug or a feature Request?
I'm curious about functionality which may already exist.
Setup (please complete the following information if applicable):
com.azure:azure-messaging-servicebus:7.17.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
The text was updated successfully, but these errors were encountered: