-
Notifications
You must be signed in to change notification settings - Fork 499
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
Deleting and recreating a container => stale container cache in other microservices #3092
Comments
@Mortana89 are you sure you didn't try to do a request while the container was deleted? There are test validating this is handled correctly. Line 2625 in 45e21c4
|
Hi @j82w, |
This is not a case for the SDK to handle, a 403 / 5301 from the service is not a retry-able scenario, it means the service is rejecting the request. My hunch is that instead of returning 404, it is failing with 403. The resource |
I agree with @ealsur. Based on the error message the SDK did retry on the new container, but that principal did not have access to it yet. |
So to clarify, do you expect us to log something somewhere or? Thanks! |
Service side issues need to be reported to the service: https://aka.ms/azure-support |
Small update here from AZ Support;
|
Closing as related to service side issue and not SDK |
Version: 3.23.0
Describe the bug
When deleting and recreating a container in one microservice, the other microservices still hold an 'invalid' reference to the container.
This because the cache contains a path to the container that doesn't exist anymore
To Reproduce
Delete and recreate a container, and execute a query on that container
Expected behavior
Collection cache should, after a miss (404) in the cache, re-resolve the container path by querying the Cosmos DB by collection name.
Actual behavior
404
Environment summary
SDK Version: 3.23.0
OS Version (e.g. Windows, Linux, MacOSX): windows
The text was updated successfully, but these errors were encountered: