-
Notifications
You must be signed in to change notification settings - Fork 945
fix: remove dead restart_failed_sync from custody backfill #8553
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
base: stable
Are you sure you want to change the base?
fix: remove dead restart_failed_sync from custody backfill #8553
Conversation
|
|
| // Check if we need to restart custody backfill sync due to a cgc change. | ||
| if self.restart_if_required() { | ||
| return Ok(ProcessResult::Successful); | ||
| } |
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.
what is the reasoning for deleting this?
|
we probably want to keep |
| // inform the backfill sync that a new synced peer has joined us. | ||
| if new_state.is_synced() { | ||
| self.backfill_sync.fully_synced_peer_joined(); | ||
| self.custody_backfill_sync.fully_synced_peer_joined(); |
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 don't think we want to remove this, i think we want to actually get restart_failed_sync to work appropriately
bf01ec8 to
a84a1cb
Compare
|
Also squashed tp reduce noise in commits |
|
please read my comment above. We probably want to keep restard_failed_sync and fix its usage instead of deleting it |
Done. I kept restart_failed_sync and wired it up like in BackFillSync, added a failed_sync flag so custody backfill only restarts after a failure once a new fully-synced peer joins. |
Make custody backfill restart semantics match BackFillSync. Instead of immediately restarting after a failure, track failed attempts with a new failed_sync flag and only allow restart once a new fully-synced peer joins and sets restart_failed_sync. This prevents tight restart loops on the same bad peers and uses fully_synced_peer_joined from SyncManager to drive intentional retries.