Skip to content

fix data race in yieldDataFiles - #650

Merged
zeroshade merged 1 commit into
apache:mainfrom
vjanelle:fix-race-yield-data-files
Dec 22, 2025
Merged

zeroshade merged 1 commit into
apache:mainfrom
vjanelle:fix-race-yield-data-files

Conversation

@vjanelle

@vjanelle vjanelle commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

The err variable was being written by a goroutine (lines 157-158)
while simultaneously being read by the iterator (lines 168, 173).

Use a channel to defer reading the error until after the goroutine
completes and the output channel is closed.

The err variable was being written by a goroutine (lines 157-158)
while simultaneously being read by the iterator (lines 168, 173).

Use a channel to defer reading the error until after the goroutine
completes and the output channel is closed.
@vjanelle

vjanelle commented Dec 9, 2025

Copy link
Copy Markdown
Contributor Author

(Found this using go test -race)

@zeroshade
zeroshade merged commit c66aacd into apache:main Dec 22, 2025
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.

2 participants