-
Notifications
You must be signed in to change notification settings - Fork 285
BUG FIX: index generated by for loop didn't pass as go function argument leads to undetermined index and some race conditions #22118
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to ecf2027
Previous suggestions✅ Suggestions up to commit fafc539
|
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #22117
What this PR does / why we need it:
local index generated by for loop must be passed to go func as argument.
and fixed some race condition
PR Type
Bug fix
Description
Fix goroutine closure variable capture bug in concurrent loops
Pass loop index as parameter to avoid race conditions
Update 8 files with proper thread ID handling
Changes diagram
Changes walkthrough 📝
7 files
Fix goroutine closure in partition spilling
Fix thread ID parameter in probe function
Fix goroutine closure in HNSW build tests
Fix thread ID in HNSW search goroutines
Fix goroutine closure in Elkan's clustering algorithm
Fix thread ID in K-means++ initialization
Fix goroutine closure in IVF-flat search