-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved refresh linearizability (#193)
An in-flight refresh is now discarded for any write to the entry, such as an update, removal, or eviction. In the case where the entry was removed and the refresh was discarded, the removal cause is now "explicit" instead of "replaced" as there is no mapping. Guava and previous releases would populate the cache, or at best used "replaced" as the cause even if it was not accurate. The resulting behavior is more pessimistic by trying to avoid a refresh from populating the cache with stale data. In practice this should have little to no penalty.
- Loading branch information
Showing
10 changed files
with
263 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.