Skip to content

feat(storage): Add unit tests for pebble implementation of Iterator interface.#4530

Merged
alesforz merged 6 commits intofeature/remove-cometbftdbfrom
alesforz/test-pebble-iterator
Nov 26, 2024
Merged

feat(storage): Add unit tests for pebble implementation of Iterator interface.#4530
alesforz merged 6 commits intofeature/remove-cometbftdbfrom
alesforz/test-pebble-iterator

Conversation

@alesforz
Copy link
Collaborator

Partially addresses #4486.

Context

CometBFT will stop importing cometbft-db as a dependency to support multiple database backends. Instead, it will use pebble by default.

Changes

This PR adds unit tests to the pebble implementation of the Iterator interface that CometBFT will use once we remove cometbft-db.


PR checklist

  • Tests written/updated
  • [ ] Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

@alesforz alesforz self-assigned this Nov 22, 2024
@alesforz alesforz added storage P:tech-debt Priority: Technical debt that needs to be paid off to enable us to move faster, reliably testing related to unit testing in general backlog A prioritized task in the team's backlog and removed backlog A prioritized task in the team's backlog labels Nov 22, 2024
@alesforz alesforz mentioned this pull request Nov 22, 2024
9 tasks
Alessandro added 5 commits November 22, 2024 17:02
The `PebbleDB.Iterator()` and `PebbleDB.ReverseIterator()` already position the
newly created iterator at the right position.
Moved the responsibility of creating the iterator to `newPebbleDBIterator`.
@alesforz alesforz marked this pull request as ready for review November 25, 2024 17:05
@alesforz alesforz requested a review from a team as a code owner November 25, 2024 17:05
@alesforz alesforz requested a review from a team November 25, 2024 17:05
Copy link
Collaborator

@melekes melekes left a comment

Choose a reason for hiding this comment

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

👍

@alesforz alesforz merged commit 3be84b6 into feature/remove-cometbftdb Nov 26, 2024
@alesforz alesforz deleted the alesforz/test-pebble-iterator branch November 26, 2024 09:03
@jmalicevic jmalicevic added this to the 2024-Q4 milestone Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P:tech-debt Priority: Technical debt that needs to be paid off to enable us to move faster, reliably storage testing related to unit testing in general

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants