-
Notifications
You must be signed in to change notification settings - Fork 498
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
LeaseLostException still bubbled up #3379
Comments
There are still scenarios where LeaseLost will get reported that are related to this stack trace and not covered by the linked PR:
In those cases it is relevant to report this as an error, and should not be hidden. But I agree that the type of error should be more clear in what it means when looking at error logs. I'll keep this Issue open to track the improvement, thanks for reporting! |
@levimatheri The linked PR should take care of these notifications, as I mentioned, we don't want to lose notifying these potential cases but the exception should not be a LeaseLost, but rather a CosmosException (our public type) with the related status code |
Awesome, thanks @ealsur |
Describe the bug
We have implemented ChangeFeedProcessor with multiple instances. Since we don't have enough data yet to distribute the load across the instances, we are occasionally getting
LeaseLostException
s. Error message just saysLease was lost
. From my understanding and based on this PR, this should be caught and handled by the SDK and not bubbled up to user code.To Reproduce
Run change feed processor with multiple instances.
Expected behavior
LeaseLostException
should not be bubbled up to user codeActual behavior
LeaseLostException
is bubbled up to user codeEnvironment summary
SDK Version: 3.29.0
OS Version (e.g. Windows, Linux, MacOSX): Windows Server 2019
Additional context
Here's the stack trace:
cc. @ealsur
The text was updated successfully, but these errors were encountered: