Closed hariAtVonto closed 2 years ago
@hariAtVonto, Were you able to fix this issue? If yes can you pls share the fix/workaround.
Just edited original issue - workaround mentioned there does not work. No solution given. Would like a solution for this where possible - please help!
I have also observed that some items lose their session lock BEFORE the message is completed - which is much worse
Any solution to this? I'm getting SessionLockLostException in my function when calling AbandonAsync
@hariAtVonto, as described here: "maxAutoLockRenewalDuration - The maximum duration within which the message lock will be renewed automatically. This setting only applies for functions that receive a single message at a time."
you have batch receive(string[] batchMessages
), for batch maxAutoLockRenewalDuration = 5mins
and you can not adjust the setting in host.json
Issue: I receive an error in my logs saying I have lost the session lock - it seems it occurs when the message is completed.
Stacktrace:
Repro Steps:
Workaround Updated the host.json to have a messageHandlerOptions.maxAutoRenewDuration as well. This doesn't feel right, my interpretation is that we shouldn't need to add to this Option since this is a session-based listener.
EDIT: workaround didn't work after all