bobhan1 opened a new pull request, #67293:
URL: https://github.com/apache/doris/pull/67293
### What problem does this PR solve?
Issue Number: DORIS-28268
Related PR: None
Problem Summary:
`CachedRemoteFileReader::prefetch_range()` submits fire-and-forget dry-run
tasks. A running task keeps the cached reader and its underlying
`HdfsFileReader` alive, but it does not keep the query `RuntimeProfile` alive.
`HdfsFileReader::read_at_impl()` previously always updated `_total_read_time`,
so a delayed prefetch read could access that counter after the query profile
had been freed.
Skip the query-profile timer for dry-run reads. Normal HDFS reads keep their
existing profile accounting, and prefetch/cache-population behavior is
unchanged.
### Release note
None
### Check List (For Author)
- Test
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- `./build.sh --be -j100` is running; the result will be updated
after completion.
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason
- Behavior changed:
- [ ] No.
- [x] Yes. Dry-run HDFS reads no longer update the query `HdfsIO` timer;
data reads and file-cache population are unchanged.
- Does this need documentation?
- [x] No.
- [ ] Yes.
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label
--
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]