eldenmoon opened a new pull request, #71005: URL: https://github.com/apache/doris/pull/71005
### Background Extended DESCRIBE lists the physical paths extracted from Variant columns. The FE snapshots the requested table or partitions and sends the tablet assignments to a backend coordinator. Workers collect the metadata and the coordinator merges their schemas. ### What problem does this PR solve? Issue Number: None Related PR: #70730 (superseded table-lock fix), #70899 (superseded completeness fix), #70865 (rowset layout optimization) PR Type: Bugfix Problem Summary: An extended DESCRIBE could wait for remote metadata under the table read lock, blocking concurrent writes. Sampled tablets and unreported worker faults could leave paths out of a successful response. This PR moves remote work outside the lock, covers every tablet in the requested scope within the session limit, and recovers from an absent redundant local replica when another worker proves coverage. ### Details - **Change map:** Production changes add 580 lines and remove 417. The first two commits retain the lock-scope and completeness fixes separately. Subsequent commits trim worker requests, batch Cloud partition visibility lookups, and verify worker coverage before accepting a missing replica. The tests cover concurrent DDL and load, RPC lifetime and worker replies, and tablet selection and limits. - **Frequency:** A delayed remote response can block a same-table write, and a missing replica can occur while the FE still has its former location. Uneven partition sizes can cause sampling to omit paths even on a healthy table. - **Root cause:** DESCRIBE held a catalog lock during network waits and the FE did not know which tablets incomplete worker replies represented. - **Why existing tests missed it:** Healthy single-replica queries did not exercise a delayed response, an absent redundant replica, or a path that existed only on an unsampled tablet. - **Fix:** Capture the base schema and tablet lists together. Resolve Cloud visibility and fetch remote metadata after release. Limit each worker request to its assignment and require positive coverage from a worker before tolerating another worker's missing replica. Return read and merge errors and bound coordinator failover by one FE deadline. - **Other paths and branches:** Applies to extended whole-table DESCRIBE, partition DESCRIBE, and the matching SHOW PROC paths in Cloud and shared-nothing. The coverage handshake uses optional protobuf fields. Older workers can still supply a schema and cannot establish coverage for a tablet explicitly reported missing. - **Behavior change:** Extended DESCRIBE reads every tablet in the requested nonempty partitions up to `max_fetch_remote_schema_tablet_count` and errors when the limit is exceeded or coverage cannot be proven. A redundant absent local replica can be tolerated when another worker covers the tablet. ### Testing - dev-x ASAN FE and BE packages and Cloud Meta Service built successfully. Clang-format and BE build hygiene checks passed. - FE unit tests passed 32 cases, with one existing ShowExecutorTest skip. All 12 selected BE ASAN unit tests passed, including worker coverage, I/O propagation, and draining earlier RPCs after a pre-dispatch failure. - Shared-nothing SQL passed the DESC lock, completeness, inverted-index float/double, and Variant MV regression suites. Cloud passed the concurrent DDL lock regression and the main Variant DESC regression using a separate MemKV and MinIO instance. - Verified `fuzzy_test_type=p0` in the running FE. The full `variant_p0` run passed 205 of 233 suites, including `regression_test_variant_desc`. The remaining 28 encountered failed OSS fixture downloads, missing data or tables after the loads failed, and an `InvalidAccessKeyId` on the outfile test. ### Release note Extended DESCRIBE releases the table lock before waiting for remote metadata. It uses `max_fetch_remote_schema_tablet_count` as a hard limit and reports incomplete tablet coverage or metadata read failures as errors. ### Check List (For Author) - Behavior changed: Yes (see Details) - Does this need documentation: Yes. Update the session variable reference for the extended DESCRIBE tablet limit. - Pre-submission status: Partially verified: the full fuzzy run is blocked on external fixture access for 28 suites. ### AI Disclosure - Tool: Codex (GPT-6). - Generated: Conflict resolutions, code, tests, and description. - Human review: Not stated. -- 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]
