Repository navigation
Revert "Fix a hang in the parallel Parquet encoder when it cannot start an extra thread" - #113155
Conversation
…rt an extra thread"
|
Workflow [PR], commit [f41c98e] AI ReviewSummaryThis PR reverts Findings❌ Blockers
Final Verdict❌ Changes requested. This revert brings back a real hang in parallel Parquet writes and removes the regression coverage that was proving the fix. |
| /// otherwise it may deadlock. | ||
| if (!pool->trySchedule(job)) | ||
| break; | ||
| ++threads_running; |
There was a problem hiding this comment.
Removing this line reintroduces the threads_running undercount from #112959. Every worker started through pool->trySchedule(job) still decrements threads_running on exit in threadFunction, so after the first such worker returns the counter can hit 0 or wrap while Parquet tasks are still outstanding. From there the guaranteed scheduleOrThrowOnError path becomes unreachable, and a later trySchedule failure can leave a non-empty task_queue with no worker left to drain it, so finalizeImpl waits forever.
This is not only the deleted fault-injection test: ThreadPool(max_threads) also bounds queue_size to max_threads, so trySchedule can legitimately fail on saturation in production. If the private CI problem is test-only, we need a narrower rollback than dropping the counter fix.
|
@nikitamikhaylov I was going to create a PR with the fix |
|
Because it was merged with ignored CI 😱 Bottom line: never merge anything not green. |
|
@PedroTadim, always revert first. Fix later. |
Reverts #112959
Broke private CI.
Version info
26.8.1.702(included in26.8and later)