Mryange opened a new pull request, #70861: URL: https://github.com/apache/doris/pull/70861
### Background The Doris pipeline builds BE through `build.sh`. Previous TSan runs found races in Doris as well as reports from brpc and bthread, which use stackful fibers. ### What problem does this PR solve? Issue Number: None Related PR: #70818 PR Type: Build/CI/Chore Problem Summary: This experimental draft exercises the existing regression pipeline with an instrumented Linux BE and captures TSan reports from its workloads. ### Details - **Change map:** Build and startup scripts select and package the TSan BE. The brpc patch, CMake archive selection, and suppression profile support native bthread scheduling. BE operator, expression, and related test changes carry the three fixes from #70818. - **Affected:** Linux BE builds and regression jobs that deploy their output. - **Behavior change:** `build.sh` forces TSan for Linux BE with jemalloc disabled. Startup loads the brpc suppressions and keeps collecting reports in `be.out`. - **Developer and release impact:** This draft carries the Hash Join column-marker fix, the removal of the shared expression `_open_finished` flag, and the removal of the redundant Exchange source close override from #70818. The TSan BE has additional runtime and memory overhead. - **License and third-party:** Build the pinned brpc 1.4.0 source with the existing Doris patches and the TSan fiber and synchronization patch. Link the resulting static archive into BE. - **Rollback:** Drop the experimental build and startup changes to restore the standard pipeline. ### Testing On Linux x86_64 with Clang 20.1.8, downloaded the pinned brpc source, applied the patches, and built the static archive through the new build function. Verified that the archive references `__tsan_create_fiber` and `__tsan_switch_to_fiber`. Shell syntax and BE build hygiene checks passed. The combined TSan BE build and end-to-end regression run are pending CI. ### Release note None. ### Check List (For Author) - Behavior changed: Yes. Linux BE builds on this draft branch use TSan. - Does this need documentation: No. - Pre-submission status: Partially verified: the TSan brpc archive builds, and the combined BE and regression run are pending. ### AI Disclosure - Tool: Codex - Generated: Build integration, startup changes, and PR description - Human review: The author reviewed the earlier BE fixes. The draft integration is pending human review. -- 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]
