yiguolei opened a new pull request, #71354:
URL: https://github.com/apache/doris/pull/71354

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: #70738
   
   PR Type: Bugfix
   
   A transient IO or memory error during lazy column/index initialization can 
leave a failed reader cached across requests. Backport #70738 to `branch-4.2` 
so subsequent cache access rebuilds unhealthy readers. Health checks cover 
owned column readers, Variant metadata and ANN indexes; missing ANN indexes 
remain healthy to preserve scan fallback. Conditional eviction protects 
concurrently published replacements.
   
   Source commit: `6c956540e171ee5d9b91bd9fc8b53658ff2d73c4`.
   
   ### Backport details
   
   - Preserve branch-4.2 compile-check wrappers in `binary_column_reader.cpp` 
and the existing `SegmentWriter` test include.
   - Add the health-check test includes and explicit `<cstdint>`, `<string>` 
and status includes for the ANN reader.
   - Related changes #70723, #70270 and #70788 are already present on 
branch-4.2 via #70757, #71121 and #71250, respectively.
   
   ### Validation
   
   - `git diff --cached --check` passed before committing; no unresolved 
conflicts remain.
   - Compared all added/removed lines against the source commit: the backport 
preserves its changes, with only the explicit standard-library includes added 
for branch-4.2.
   - Included the upstream unit-test changes. Builds and tests were not run for 
this backport, following the author's preference; historical upstream results 
do not validate this revision.
   
   ### Release note
   
   Recover cached column readers after transient initialization failures on 
subsequent cache access.
   
   ### Check List (For Author)
   
   - Test
       - [x] Unit Test (upstream test changes included; not run for this 
backport)
   - Behavior changed:
       - [x] Yes. Failed cached readers are rebuilt; Variant external-metadata 
memory errors retire the reader instead of retrying initialization in place.
   - Does this need documentation?
       - [x] No.
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label
   
   ### AI Disclosure
   
   Codex assisted with backport conflict resolution, static diff inspection and 
this PR description.
   


-- 
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]

Reply via email to