Skip to content

Conversation

@davidhewitt
Copy link
Member

I hit this failure in CI: https://github.com/PyO3/pyo3/actions/runs/5237094306/jobs/9455062113?pr=2709#step:19:732

I'm pretty sure what's going on there is that pool_not_dirty() is too strong an assertion - another thread which is testing putting a delayed clone or drop onto the pool can trigger a race. I was able to reproduce the same race before applying this patch.

@adamreichold adamreichold added the CI-skip-changelog Skip checking changelog entry label Jun 11, 2023
Copy link
Member

@adamreichold adamreichold left a comment

Choose a reason for hiding this comment

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

Agreed. I have also hit this a few times, but just never found the motivation to try to actually fix it. Thanks!

@davidhewitt davidhewitt added this pull request to the merge queue Jun 11, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jun 11, 2023
@davidhewitt davidhewitt added this pull request to the merge queue Jun 12, 2023
Merged via the queue into PyO3:main with commit ef7c02c Jun 12, 2023
ritchie46 pushed a commit to pola-rs/pyo3 that referenced this pull request Dec 5, 2024
ci: pool can be dirty from other threads
ritchie46 pushed a commit to pola-rs/pyo3 that referenced this pull request Dec 5, 2024
ci: pool can be dirty from other threads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-skip-changelog Skip checking changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants