-
Notifications
You must be signed in to change notification settings - Fork 205
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
kvutils: Use VersionedOffsetBuilder
where possible, and introduce VersionedOffset
. [KVL-1154]
#11277
Merged
+475
−473
Merged
kvutils: Use VersionedOffsetBuilder
where possible, and introduce VersionedOffset
. [KVL-1154]
#11277
Changes from 11 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e870f7d
kvutils: Remove `VersionedOffsetBuilder.apply`.
SamirTalwar 225cedc
ledger-on-memory: Use `VersionedOffsetBuilder`.
SamirTalwar a5c3c49
indexer-benchmark: Use `VersionedOffsetBuilder`.
SamirTalwar 3dd21ee
ledger-on-sql: Use `VersionedOffsetBuilder`.
SamirTalwar 59486d7
kvutils: Use `VersionedOffsetBuilder` in tests.
SamirTalwar 46696af
kvutils: Create a case class for `VersionedOffsetBuilder#split`.
SamirTalwar 44eea4f
kvutils: Delete unused methods from the offset builders.
SamirTalwar e5a43e7
kvutils: Use `Bytes#startWith` to check the offset version.
SamirTalwar 058f416
kvutils: Move offset splitting into `VersionedOffset`.
SamirTalwar 3961aa1
kvutils: Extract out versioned offset generators.
SamirTalwar 1e31a73
kvutils: Replace `OffsetBuilder` with `VersionedOffsetMutator`.
SamirTalwar d9e4794
kvutils: Randomize the offset version in testing.
SamirTalwar 52611f1
kvutils: `Random.between` is not available in Scala 2.12.
SamirTalwar a68b990
Merge remote-tracking branch 'origin/main' into samir/kvutils/remove-…
SamirTalwar 68e91e1
kvutils: Move offset mutation methods to `VersionedOffset`.
SamirTalwar 6ce9ca6
kvutils: Move the versioned offset construction into `VersionedOffset`.
SamirTalwar 6152a42
kvutils: Only vary the offset version in ledger-on-memory tests.
SamirTalwar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to introduce a constant for this version number? It's hardcoded in multiple places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is only hardcoded in test code (and test-adjacent code, such as integrity checking and benchmarking).
In production, this value should most definitely not be hardcoded, and so I would prefer to not hardcode it anywhere, to ensure that any user thinks about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems sensible, thank you!