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
Describe the bug
The expected behavior for the cache when writeFunction fails and the key has an existing value is to keep this value. The reason behind this behavior will be documented. But, the journal v1 represents this by a dirty operation followed by remove operation. This is the same behavior when deleting an existing key.
This results in missing entries when reopening the journal with possible orphan files.
To Reproduce
Steps to reproduce the behavior:
Put an entry into DiskLruCache
Re-put the same key asynchronously, throwing a cancellation exception for example
Close and re-open the cache
Expected behavior
The old value should be existing for this key.
System (please complete the following information):
Any system
Additional context
Not applicable
The text was updated successfully, but these errors were encountered:
Describe the bug
The expected behavior for the cache when
writeFunction
fails and the key has an existing value is to keep this value. The reason behind this behavior will be documented. But, the journal v1 represents this by a dirty operation followed by remove operation. This is the same behavior when deleting an existing key.This results in missing entries when reopening the journal with possible orphan files.
To Reproduce
Steps to reproduce the behavior:
DiskLruCache
Expected behavior
The old value should be existing for this key.
System (please complete the following information):
Any system
Additional context
Not applicable
The text was updated successfully, but these errors were encountered: