Skip to content

miner: fix TestPrefetchRaceWithSetExtra deadlock#2233

Merged
pratikspatil024 merged 2 commits into
0xPolygon:developfrom
wjmelements:fix/prefetch-race-test-hang
May 26, 2026
Merged

miner: fix TestPrefetchRaceWithSetExtra deadlock#2233
pratikspatil024 merged 2 commits into
0xPolygon:developfrom
wjmelements:fix/prefetch-race-test-hang

Conversation

@wjmelements
Copy link
Copy Markdown
Contributor

@wjmelements wjmelements commented May 19, 2026

Summary

I saw this test failure on develop when I forked.
The timeout is likely caused by a deadlock, and this seems to be a good candidate fix.
If the channel is full, then this worker can hang.
Moving the channel operation into the select makes it nonblocking.
However I do not know the context or intent of this test so this may not be the right fix.

Executed tests

Only reran the flaky test

Rollout notes

Nonbreaking

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@sonarqubecloud
Copy link
Copy Markdown

@pratikspatil024 pratikspatil024 merged commit 92edc39 into 0xPolygon:develop May 26, 2026
19 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants