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

Rebuilding ledger - but first 50K gone #389

Closed
martinsumner opened this issue Jan 5, 2023 · 1 comment
Closed

Rebuilding ledger - but first 50K gone #389

martinsumner opened this issue Jan 5, 2023 · 1 comment

Comments

@martinsumner
Copy link
Owner

There is a leveled store, with lots of objects, but all of the first 50K objects added have now been updated/deleted, and the first journal file has been compacted.

This means that the starting SQN (i.e. the first SQN in the first file) is 50000+ not 1.

In this case, if the ledger is cleared, when there is an attempt to rebuild the ledger, the loader will loop ... but whilst pushing to the penciller empty data every 1000 SQN between 1 and 50000. This means that the penciller memory is pushed empty lists via push_mem - not expected!

When the penciller's in-memory level zero is full - it will try and write a level zero file from an empty list - and crash.

@martinsumner
Copy link
Owner Author

#390

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

No branches or pull requests

1 participant