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

Automatic Write Cache Flush and Write Preserving Order in DataSourceWithCache #1078

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ajlopezrsk
Copy link
Contributor

@ajlopezrsk ajlopezrsk commented Nov 6, 2019

The write and flush of uncommitedChanges now preserves write order. And if it reaches a max size, then it is automatically flushed. Even with the eviction policy of the read cache committedChances no key-value is lost, because this code has synchronized methods.

Contains #1077 Solves #1076 #1075 and avoid the grows of the pending writes cache in arbitrary situations (now, the flush is only invoked by à block flusher service).

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

Successfully merging this pull request may close these issues.

3 participants