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

Added CloseableIterator interface #115

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

klockla
Copy link
Collaborator

@klockla klockla commented Nov 25, 2024

Added close to the Iterator Needed when we need to close resources used by the Iterator
(e.g. The RocksDBIterator in case of RocksDb implementation).

@klockla klockla added Server rocksDB issues related specifically to the RocksDB based service labels Nov 25, 2024
@klockla klockla requested a review from jnioche November 25, 2024 09:22
Copy link
Collaborator

@jnioche jnioche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the question I asked, looks good
I assume what we gain with this is that we make it explicit that the iterators should be closed and we make sure they are - at least in AbstractFrontierService. Correct?

@klockla
Copy link
Collaborator Author

klockla commented Nov 26, 2024

Apart from the question I asked, looks good I assume what we gain with this is that we make it explicit that the iterators should be closed and we make sure they are - at least in AbstractFrontierService. Correct?

Correct, the goal here was to close the RocksDbIterator used by the Iterator as soon as possible

@klockla klockla self-assigned this Nov 26, 2024
@klockla klockla merged commit a20e241 into crawler-commons:master Nov 27, 2024
2 checks passed
@klockla klockla deleted the CloseableIterator branch November 27, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rocksDB issues related specifically to the RocksDB based service Server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants