chore: refactor delete requests store interface to prepare for replacing boltdb with sqlite for storing delete requests #16181
+461
−333
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
We currently use botldb to store delete requests. However, because it is a key/value store that requires us to craft the KVs to store all the details, it is difficult to add more details. I am working on replacing boltdb with SQLite to store the delete requests, which would let us add more details to the requests and optimize intensive queries that cause the compactor to use too many resources.
Here is how the delete requests store interface will look:
Special notes for your reviewer:
The thing to note here is that both stores will have different mechanisms to store the shards, so I have tried to abstract it away where possible.
Checklist