Skip to content

slice: Adjest AuTest for slice_prefetch - #13212

Closed
masaori335 wants to merge 1 commit into
apache:masterfrom
masaori335:asf-master-slice-autest
Closed

masaori335 wants to merge 1 commit into
apache:masterfrom
masaori335:asf-master-slice-autest

Conversation

@masaori335

Copy link
Copy Markdown
Contributor

It looks like recently merged #12949 broke slice_prefetch AuTest.

@masaori335 masaori335 self-assigned this May 29, 2026
Copilot AI review requested due to automatic review settings May 29, 2026 04:03
@masaori335
masaori335 requested review from traeak and zwoop May 29, 2026 04:03
@masaori335 masaori335 added this to the 11.0.0 milestone May 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-fresh cache log lines for prefetched byte ranges 10-14/18 and 15-17/18.

@zwoop

zwoop commented May 29, 2026

Copy link
Copy Markdown
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 zwoop closed this May 29, 2026
@zwoop zwoop removed this from the 11.0.0 milestone May 29, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants