Skip to content
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

Service using Microsoft.Azure.Cosmos 3.30.1 is getting token expiry errors #3619

Closed
aavasthy opened this issue Dec 21, 2022 · 4 comments · Fixed by #3640
Closed

Service using Microsoft.Azure.Cosmos 3.30.1 is getting token expiry errors #3619

aavasthy opened this issue Dec 21, 2022 · 4 comments · Fixed by #3640
Assignees

Comments

@aavasthy
Copy link
Contributor

Issue:
This is occurring within a docker container (mcr.microsoft.com/dotnet/aspnet:6.0-alpine base) within CX Kubernetes cluster. Client has seen this error on at least 3 separate occasions. During the last outage they confirmed the date/time of the container prior to restarting it. It was correct.

Fix:
We basically need to change the implementation of Rfc1123DateTimeCache.cs to not depend on System.Threading.Timer - but instead trigger the update of the formatted text in the property-getter when the snapshot is older than 1 second using
Stopwatch and CompareExchange. This way we can avoid the repetitive string formatting within 1 second intervals but we can guarantee to never return stale data.

@aavasthy aavasthy self-assigned this Dec 21, 2022
@aavasthy
Copy link
Contributor Author

The fix has been implemented but it is still not released. The deployment update would be added here.

@aavasthy
Copy link
Contributor Author

aavasthy commented Jan 9, 2023

The fix is released in Microsoft.Azure.Cosmos.Direct 3.30.0. It would be available in next V3 release.

@aavasthy
Copy link
Contributor Author

aavasthy commented Jan 11, 2023

Fix is released in Microsoft.Azure.Cosmos version 3.32.0

@aavasthy aavasthy closed this as completed Feb 7, 2023
@aavasthy
Copy link
Contributor Author

aavasthy commented Feb 7, 2023

Fix is released in Microsoft.Azure.Cosmos version 3.32.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant