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

Mas i1826 pollpush #376

Open
wants to merge 2 commits into
base: develop-3.0
Choose a base branch
from
Open

Mas i1826 pollpush #376

wants to merge 2 commits into from

Conversation

martinsumner
Copy link
Owner

If there is a backlog in the penciller, but all writes stop, there will be no trigger to push the build-up in-memory to disk.

Now, on journal compaction there will be an additional push of the ledger cache (if it is over the maximum size) that will prompt this as a result of that compaction

Have a regular poll, so even if writes stop, if there is an excessively large ledger cache it will eventually be pushed
Rather than rely on a continuous timed poll, use journal compaction instead.  This of course won't help in head_only mode, but makes the change much smaller.

Journal compaction already has windows, and random jittering - so no need to duplicate this.
@martinsumner
Copy link
Owner Author

Same concept now included in #382

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

Successfully merging this pull request may close these issues.

None yet

1 participant