-
Notifications
You must be signed in to change notification settings - Fork 852
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
[BESU-194] Remove max pivot block resets during fast sync #427
Merged
AbdelStark
merged 14 commits into
hyperledger:master
from
matkt:feature/BP-117-remove-fast-synf-fallback
Feb 27, 2020
Merged
Changes from 2 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6a964f9
remove max pivot block resets during fast sync
matkt 1fe8583
increase retry number and add retry for fast sync
matkt b2a4326
fix review issues
matkt 66e56b3
increase max retry number and fix test
matkt 0e68430
change logs in the handleFailure method
matkt 1ce4949
change logs related to suspicious number of retries
matkt e74d3d4
add a delay before each fast sync retry
matkt e296443
add a timeout for fast sync retry
matkt 8438dac
change timeout for fast sync retry
matkt ecbe0ca
fix log add error
matkt 7f0d07c
fix review issues
matkt cbd012a
resolve pipeline
matkt e07dc40
update test for restart fastsync mechanism
matkt cf89606
Merge branch 'master' of https://github.com/hyperledger/besu into fea…
matkt 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
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.
I'd print a warning periodically (every
SUSPICIOUS_NUMBER_OF_PIVOT_BLOCK_RESETS
retries?) rather than on every individual retry. Also,confirmationTasks
can now grow very large, so we'll probably need to rework how we track tasks so we don't hold onto every confirmation task we created.Alternatively, I wonder if we could alleviate the problem of prematurely switching to full sync by just increasing
DEFAULT_MAX_PIVOT_BLOCK_RESETS
and making sure we retry fast sync here:besu/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/DefaultSynchronizer.java
Line 166 in 7fe1d47