Skip to content
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

test: add a test for devnet failure #14288

Merged
merged 5 commits into from
Feb 8, 2025
Merged

test: add a test for devnet failure #14288

merged 5 commits into from
Feb 8, 2025

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Feb 6, 2025

Adds a test reproducing bug we've occured on devnet.

The bug here was that we never reset the internal request pointers if the sync target hasn't changed.

The fix here is to always start by redownloading the tip, resetting the pointers

although still need to verify this

// let the downloader know what to sync
self.downloader.update_sync_gap(gap.local_head, gap.target);

@mattsse mattsse self-assigned this Feb 6, 2025
@klkvr klkvr force-pushed the klkvr/reorg-backfill-test branch from 4c56202 to d6df51a Compare February 6, 2025 23:31
@mattsse mattsse added the S-blocked This cannot more forward until something else changes label Feb 7, 2025
@mattsse mattsse marked this pull request as ready for review February 8, 2025 16:51
@mattsse mattsse added C-bug An unexpected or incorrect behavior A-staged-sync Related to staged sync (pipelines and stages) labels Feb 8, 2025
@mattsse
Copy link
Collaborator

mattsse commented Feb 8, 2025

The bug here is that we never reset the headers downloader, becase the unwind, we still have the same sync target, which would normally reset it.

the fix here is to clear the trackers when we encounter the error

@mattsse mattsse removed the S-blocked This cannot more forward until something else changes label Feb 8, 2025
@mattsse mattsse added this pull request to the merge queue Feb 8, 2025
Merged via the queue into main with commit 46d3b6a Feb 8, 2025
44 checks passed
@mattsse mattsse deleted the klkvr/reorg-backfill-test branch February 8, 2025 17:18
18aaddy pushed a commit to 18aaddy/reth that referenced this pull request Feb 12, 2025
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-staged-sync Related to staged sync (pipelines and stages) C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants