[ServiceBus] AutoLockRewner lock renew strategy alignment #18513
Labels
Client
This issue points to a problem in the data-plane of the library.
Messaging
Messaging crew
Service Bus
Milestone
Problem:
Some user might have clock skew issue between their dev machine/server and the service server. And our current
AutoLockRewner
only renews lock before 10 seconds of the expiration time which might lead to lock renew failure.example issue logging:
Current:
Improvement we could probably do:
_sleep_time
and_renew_period
Action item:
Latest update:
follow NET's algorithm which is:
If < 400ms, renew immediately.
Else, renew = remainingTime - bufferTime.
bufferTime = Math.min((remainingTime/2), 10 seconds)
The text was updated successfully, but these errors were encountered: