shuke987 opened a new pull request, #64520: URL: https://github.com/apache/doris/pull/64520
## Problem `test_partition_instance_query_cache` is flaky/failing on the branch-4.1 P0 regression. It asserts the query-cache **partition-parallelism** plan shape: `scanInstanceCount == partitionCount` and that all of a partition's tablets land in **one** scan instance. That shape only holds when the scan runs on a **single BE**. On a multi-BE cluster the optimization (`UnassignedScanSingleOlapTableJob`) legitimately produces **one instance per (partition, BE)** — or, when `totalTablets <= parallelExecInstanceNum * numBE`, falls back to default per-tablet parallelization. So on the multi-BE P0 cluster the case fails for the wrong reason (verified: `partitions=3/3` but `scanInstanceCount=24`). ## Fix Gate the single-BE-only plan-shape assertions on a single-BE topology (`show backends`). The result-correctness and cache-consistency checks above still run on **any** topology. Multi-BE behavior should be covered by a dedicated test. ## Verification Verified on a branch-4.1 cluster: on the multi-BE topology the gated branch is skipped and the suite passes; the data/cache assertions still execute. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
