JakeChampion commented on PR #13971:
URL: https://github.com/apache/trafficserver/pull/13971#issuecomment-6821327366

   > The diagnosis checks out: `HTTP_TUNNEL_EVENT_DONE` isn't the cache's 
action, so on master it falls through to the `adjust_thread()` and 
`pending_action = nullptr` assignments, which cancel the HttpCacheSM captive 
action while the open write is still retrying. Handling it first restores what 
the old switch case intended, and cancelling on the error path is right, since 
that write really is still pending. Nice test, and thanks for tightening it up.
   > 
   > One question on Case 2, the truncated-but-forwardable path: it sets 
`cache_transformed = false` and now leaves the write pending, but if that 
callback later gets the lock, `handle_transform_cache_write` sets 
`transform_action = WRITE` regardless, and 
`perform_transform_cache_write_action` sets up the cache write of the 
transformed copy. Unless I'm missing a guard, that would store the transform of 
a truncated source, which master never reached because it stalled first. Should 
`handle_transform_cache_write` go to `NO_ACTION` when 
`!s->api_info.cache_transformed`?
   > 
   > Format CI failed. I think that's #13917's Ruff switch, so a rebase plus 
`-t format` on the new test files should clear it. +1 to a 10.2.x backport once 
it's in.
   
   You're right, there was no guard there. `handle_transform_cache_write` now 
goes to `NO_ACTION` when `cache_transformed` is `false`.


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

Reply via email to