hubgeter opened a new pull request, #71054: URL: https://github.com/apache/doris/pull/71054
### Background The BE file cache fills blocks from a remote reader and serves subsequent reads from local storage. Parquet can issue a second read when its footer metadata does not fit in the initial buffer. The BE already supports per-module verbose logging. ### What problem does this PR solve? Issue Number: None Related PR: None PR Type: Enhancement Problem Summary: When a reader returns success with fewer bytes than requested, a later format error can be the first visible symptom. Add diagnostics at the cache and Parquet read boundaries so operators can locate the first observed short read and identify any affected cache block. ### Details - **Before and after:** Level 1 records requested and returned lengths on short reads during cache fill, local reads, remote fallback, and the second Parquet footer read. It also identifies blocks successfully finalized beyond the returned data, disk entries skipped during cache discovery, and both offsets on an existing merged I/O mismatch. The existing busy-block clear message now includes its hash. - **Configs and defaults:** The new messages use the existing BE module verbosity settings. Level 2 in the cached remote reader also records the path, modification time and computed key when opening an external file. - **Impact on existing users:** Default logging gains the hash on the existing clear message. Read results, error handling, cache publication and on-disk formats are unchanged. The diagnostics add no data reads. ### Testing Exercised the changed read paths in isolated C++ fixtures with glog, including short and complete reads, block-boundary finalization, and enabling and disabling a module at runtime. Local cache read tests used temporary files. Separate fixtures checked that a short second footer read and a merged-offset mismatch logged only when the corresponding module was enabled. Checked the formatting of the changes with clang-format 16. ### Release note Per-module BE logs can show which file-cache or Parquet metadata read returned too few bytes and which offsets disagreed on a merged read. ### Check List (For Author) - Behavior changed: No - Does this need documentation: No - Pre-submission status: Partially verified: full BE compilation and integration tests are pending. ### AI Disclosure - Tool: OpenAI Codex (GPT-6). - Generated: Code changes, isolated validation fixtures and PR description. - Human review: Pending on this draft. -- 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]
