mortalBibo commented on issue #62230: URL: https://github.com/apache/doris/issues/62230#issuecomment-4214687083
### Update: Root cause analysis and PR scope adjustment After further investigation, the cluster-wide freeze described in this issue has a more nuanced root cause than originally identified. **Cluster freeze resolution:** The freeze was resolved by increasing `pipeline_executor_size` (from default CPU core count to 2x). Source code analysis confirmed that `ScanOperator::close()` does not block on scanner threads — it sets `_should_stop` and returns immediately, releasing the pipeline executor thread. This suggests the bottleneck was pipeline executor thread exhaustion under mixed workloads (large cold queries + Stream Load), rather than scanner threads being stuck in S3 I/O. The root cause is likely related to segment footer parsing requiring remote S3 reads during cold reads, which blocks pipeline executor threads. PR #59476 (persist segment rows in rowset meta pb) may have optimized this from the source by reducing the need to open segment footers remotely. **PR #62278 scope:** PR #62278 has been re-scoped from `[fix]` to `[opt]`. It addresses a separate, valid concern: after query cancellation, scanner threads continue executing the page-by-page S3 read chain (potentially hundreds of pages per `get_block()` call) without detecting cancellation, wasting S3 bandwidth, scanner thread pool resources, and network connections. The optimization adds cancellation checks at S3 retry and cache-wait boundaries so that cancelled scanners exit promptly rather than reading all remaining pages. **Summary:** - Cluster freeze: resolved by increasing `pipeline_executor_size`; root cause likely related to cold segment footer reads blocking pipeline threads (#59476 may address this) - Post-cancellation resource waste: addressed by #62278 (propagate cancellation to S3 I/O layer) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
