Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Don't delete completed tasks from RocksDbTaskQueue #1099

Merged
merged 4 commits into from
Mar 14, 2019

Conversation

ajsutton
Copy link
Contributor

PR description

Given that we no longer restore the contents of the task queue when resuming a world state download (so that we can use the in-memory cache for pending nodes) we can also skip deleting completed tasks.

The deletion is a significant bottleneck because to find what task we can delete up to we have to iterate through every outstanding task even before the time RocksDB needs to perform the delete.

When fast sync completes the entire database is deleted and we ensure we start from a clean slate by destroying any existing database when creating RocksDbTaskQueue.

@ajsutton ajsutton merged commit 1202c21 into PegaSysEng:master Mar 14, 2019
@ajsutton ajsutton deleted the rocksdb-no-delete branch March 14, 2019 20:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants