Skip to content

Conversation

@paulirwin
Copy link
Contributor

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a change, please open an issue to discuss the change or find an existing issue.

Fixes a rare flaky test in TestDirectoryReaderReopen.

Fixes #1233

Description

The flaky failure is a rare race condition that only occurs under heavy concurrent load and is unrelated to what is under test. An analysis of this issue (with the help of Claude Code) found that we can safely catch this unrelated exception that is due to extremely minute timing issues that are impractical to attempt to reproduce. Real-world usage patterns with real I/O would likely never encounter this issue.

@paulirwin paulirwin added the notes:bug-fix Contains a fix for a bug label Jan 12, 2026
@paulirwin paulirwin mentioned this pull request Jan 13, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:bug-fix Contains a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky Test: TestDirectoryReaderReopen.TestThreadSafety

1 participant