Repository navigation
Commit e7a7ac3
Fix race condition in Parquet reader accessing
There was a data race between:
- Thread A assigning a new vector to `row_group.next_subgroup_for_step`
in `intersectColumnIndexResultsAndInitSubgroups`
- Thread B reading `row_group.next_subgroup_for_step.empty()` in the
`is_privileged_task` lambda in `scheduleTasksIfNeeded`
The fix adds a stage check before accessing the vector. Since
`next_subgroup_for_step` is assigned during `OffsetIndex` processing
and the stage advances to `ColumnData` only after the assignment,
checking `stage >= ColumnData` with acquire ordering ensures proper
synchronization.
Co-Authored-By: Claude Opus 4.5 <[email protected]>next_subgroup_for_step
1 parent d8c4564 commit e7a7ac3
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
629 | 634 | | |
630 | 635 | | |
631 | 636 | | |
| |||
0 commit comments