-
Notifications
You must be signed in to change notification settings - Fork 479
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
Set MaxAttemptsToUpdatePivot to -1 for infinite pivot update trials #8107
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -355,7 +355,7 @@ private bool ShouldBeInBeaconHeaders(bool shouldBeInUpdatingPivot) | |
|
||
private bool ShouldBeInUpdatingPivot() | ||
{ | ||
bool updateRequestedAndNotFinished = _syncConfig.MaxAttemptsToUpdatePivot > 0; | ||
bool updateRequestedAndNotFinished = _syncConfig.MaxAttemptsToUpdatePivot == -1; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This logic needs to work not only with value of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @damian-orzechowski , sorry I didn't consider the possibility of any value coming from the config, and the logic shall hold true given any value for |
||
bool isPostMerge = _beaconSyncStrategy.MergeTransitionFinished; | ||
bool stateSyncNotFinished = _syncProgressResolver.FindBestFullState() == 0; | ||
|
||
|
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.
With tests, I'd be cautious to use any settings potentially causing infinite work
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've reverted back the test to set
MaxAttemptsToUpdatePivot = 3
, so it can test by retrying pivot updates for exactly 3 number of times.