FileTokenCacheStore should clean up after failing to open the cache file #1440
Labels
Bug - P2
A problem that needs to be fixed for a feature to function as intended
Internal
Issue created by a project contributor
Issue Triage
The engineering team has looked into the issue, understood the issue, labelled/classified the issue
We've seen exception reports in our telemetry that indicate that FileTokenCacheStore is throwing an IllegalStateException on line 117.
Code inspection shows that the reason is that the cache file couldn't be deserialized into an instance of MemoryTokenCacheStore. The comments indicate that once this happens, the cache file will not work again.
If this is the case, the file should be deleted and an instance of MemoryTokenCacheStore created so that the FileTokenCacheStore object can be successfully instantiated and the cache file can be re-created on the next write.
The text was updated successfully, but these errors were encountered: