Skip to content

Mas i389 rebuildledger#390

Merged
martinsumner merged 4 commits into
develop-3.0from
mas-i389-rebuildledger
Jan 18, 2023
Merged

Mas i389 rebuildledger#390
martinsumner merged 4 commits into
develop-3.0from
mas-i389-rebuildledger

Conversation

@martinsumner

Copy link
Copy Markdown
Owner

Protect the penciller from receiving empty ledger cache updates, where it might otherwise write an empty L0 file (which will lead to the store crashing).

See #389

which may occur when loading the ledger from the journal, after the ledger has been cleared.
The test allkeydelta_journal_multicompact can occasionally fail when a compaction doesn't happen, but then does the next loop.  Suspect this is as a result of score caching, randomisation of key grabs for scoring, plus jitter on size boundaries.

Modified test for predictability.

Plus formatting changes
Avoid small batches due to large SQN gaps
Two tests overlaps with the new, much broader, replace_everything/1 test.  Ported over any remaining checks of interest and dropped two tests.
@martinsumner
martinsumner merged commit cf3d8f5 into develop-3.0 Jan 18, 2023
martinsumner added a commit that referenced this pull request Jan 26, 2023
* Protect penciller from empty ledger cache updates

which may occur when loading the ledger from the journal, after the ledger has been cleared.

* Score caching and randomisation

The test allkeydelta_journal_multicompact can occasionally fail when a compaction doesn't happen, but then does the next loop.  Suspect this is as a result of score caching, randomisation of key grabs for scoring, plus jitter on size boundaries.

Modified test for predictability.

Plus formatting changes

* Avoid small batches

Avoid small batches due to large SQN gaps

* Rationalise tests

Two tests overlaps with the new, much broader, replace_everything/1 test.  Ported over any remaining checks of interest and dropped two tests.
@martinsumner
martinsumner deleted the mas-i389-rebuildledger branch November 8, 2023 16:10
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.

2 participants