slice: Adjest AuTest for slice_prefetch - #13212
Closed
masaori335 wants to merge 1 commit into
Closed
masaori335 wants to merge 1 commit into
masaori335 wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the slice plugin prefetch AuTest gold output to reflect additional background prefetch cache log entries introduced by recent slice prefetch behavior changes.
Changes:
- Adds expected
hit-freshcache log lines for prefetched byte ranges10-14/18and15-17/18.
zwoop
approved these changes
May 29, 2026
Contributor
|
I looked into this deeper, the changes concerned me that we may have instability in the code. Claude agreed, and I'm making a somewhat different PR to fix this. |
zwoop
added a commit
that referenced
this pull request
May 29, 2026
* slice: Avoid redundant prefetch re-scheduling schedule_prefetch() ran on every server response and re-issued blocks already scheduled this request, which the in-flight dedup set does not catch. Track a per-request high-water mark so each block is prefetched at most once; update the slice_prefetch gold. Supersedes #13212. Co-authored-by: Masaori Koshiba <masaori@apache.org> * slice: Address Copilot review (m_prefetch_hwm -> int) * slice: Use int64_t for prefetch block math Block numbers are int64_t (Range, Data::m_blocknum); widen the prefetch high-water mark and loop accordingly and narrow only at the BgBlockFetch::schedule() boundary. Addresses Copilot review. --------- Co-authored-by: Masaori Koshiba <masaori@apache.org>
cmcfarlen
pushed a commit
that referenced
this pull request
Jun 16, 2026
* slice: Avoid redundant prefetch re-scheduling schedule_prefetch() ran on every server response and re-issued blocks already scheduled this request, which the in-flight dedup set does not catch. Track a per-request high-water mark so each block is prefetched at most once; update the slice_prefetch gold. Supersedes #13212. Co-authored-by: Masaori Koshiba <masaori@apache.org> * slice: Address Copilot review (m_prefetch_hwm -> int) * slice: Use int64_t for prefetch block math Block numbers are int64_t (Range, Data::m_blocknum); widen the prefetch high-water mark and loop accordingly and narrow only at the BgBlockFetch::schedule() boundary. Addresses Copilot review. --------- Co-authored-by: Masaori Koshiba <masaori@apache.org> (cherry picked from commit bcddd98)
cmcfarlen
pushed a commit
to cmcfarlen/trafficserver
that referenced
this pull request
Jul 29, 2026
* slice: Avoid redundant prefetch re-scheduling schedule_prefetch() ran on every server response and re-issued blocks already scheduled this request, which the in-flight dedup set does not catch. Track a per-request high-water mark so each block is prefetched at most once; update the slice_prefetch gold. Supersedes apache#13212. Co-authored-by: Masaori Koshiba <masaori@apache.org> * slice: Address Copilot review (m_prefetch_hwm -> int) * slice: Use int64_t for prefetch block math Block numbers are int64_t (Range, Data::m_blocknum); widen the prefetch high-water mark and loop accordingly and narrow only at the BgBlockFetch::schedule() boundary. Addresses Copilot review. --------- Co-authored-by: Masaori Koshiba <masaori@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It looks like recently merged #12949 broke
slice_prefetchAuTest.