You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Rationale for this change
Data race described in #45788 .
### What changes are included in this PR?
Put the racing member `segmenter_values` in thread local state.
### Are these changes tested?
Yes. UT added.
### Are there any user-facing changes?
None.
* GitHub Issue: #45788
Authored-by: Rossi Sun <zanmato1984@gmail.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
Describe the bug, including details regarding any error messages, version, and platform.
This is found by accident when I was debugging some other issue, when running with TSAN, the following warning is reported:
Click to expand
The same warning was also observed when I ran other existing unit tests.
Though I'm not sure why our CI's TSAN doesn't detect this, the race is pretty straightforward.
The member
arrow/cpp/src/arrow/acero/aggregate_internal.h
Lines 219 to 220 in ac1f05f
Component(s)
C++
The text was updated successfully, but these errors were encountered: