-
Notifications
You must be signed in to change notification settings - Fork 298
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
Save earliest slot block in a DB variable #8722
Merged
gfukushima
merged 27 commits into
Consensys:master
from
gfukushima:save-earliest-slot-block-in-dbvariable
Oct 22, 2024
Merged
Save earliest slot block in a DB variable #8722
gfukushima
merged 27 commits into
Consensys:master
from
gfukushima:save-earliest-slot-block-in-dbvariable
Oct 22, 2024
Conversation
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
Signed-off-by: Gabriel Fukushima <[email protected]>
…or call Signed-off-by: Gabriel Fukushima <[email protected]>
…option Signed-off-by: Gabriel Fukushima <[email protected]>
Signed-off-by: Gabriel Fukushima <[email protected]>
rolfyone
reviewed
Oct 15, 2024
storage/src/main/java/tech/pegasys/teku/storage/server/kvstore/KvStoreDatabase.java
Outdated
Show resolved
Hide resolved
…xt block after prune runs Signed-off-by: Gabriel Fukushima <[email protected]>
Signed-off-by: Gabriel Fukushima <[email protected]>
…le even when the slot after the last pruned is empty Signed-off-by: Gabriel Fukushima <[email protected]>
Signed-off-by: Gabriel Fukushima <[email protected]>
rolfyone
reviewed
Oct 16, 2024
storage/src/main/java/tech/pegasys/teku/storage/server/kvstore/KvStoreDatabase.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Gabriel Fukushima <[email protected]>
…or call Signed-off-by: Gabriel Fukushima <[email protected]>
…option Signed-off-by: Gabriel Fukushima <[email protected]>
Signed-off-by: Gabriel Fukushima <[email protected]>
…xt block after prune runs Signed-off-by: Gabriel Fukushima <[email protected]>
Signed-off-by: Gabriel Fukushima <[email protected]>
…le even when the slot after the last pruned is empty Signed-off-by: Gabriel Fukushima <[email protected]>
Signed-off-by: Gabriel Fukushima <[email protected]>
…t slot after prune runs Signed-off-by: Gabriel Fukushima <[email protected]>
…riable' into save-earliest-slot-block-in-dbvariable # Conflicts: # storage/src/integration-test/java/tech/pegasys/teku/storage/server/kvstore/DatabaseTest.java
…ble which should trigger fallback to iterator Signed-off-by: Gabriel Fukushima <[email protected]>
…riable' into save-earliest-slot-block-in-dbvariable
Signed-off-by: Gabriel Fukushima <[email protected]>
rolfyone
approved these changes
Oct 18, 2024
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.
LGTM now
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Description
During the investigation on the mainnet sync issue it was found that this query can take a descent amount of time (it can vary from a few ms to 2 digits seconds). This information is used when a peer send a BeaconBlocksByRangeRequestMessage ultimately causing a disconnection from the peer's side if this query times out.
This data fetch could be optimised by storing the earliest block slot in a variable in the database.
Fixed Issue(s)
Fixes #8658
Documentation
doc-change-required
label to this PR if updates are required.Changelog