You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: