-
Notifications
You must be signed in to change notification settings - Fork 844
TSHttpTxnCacheLookupStatusGet: handle cannot respond cases #8545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ATS initially experiences cache lookups as a HIT for resources that we ultimately cannot use due to a need for authentication or if the methods for the incoming request and that of the request for the cached response don't match. Our TSHttpTxnCacheLookupStatusGet plugin interface returned the initial HIT status instead of marking these as MISSES. This patch changes the status to return a MISS in these circumstances. Closes apache#8539
|
@SolidWallOfCode volunteered to take a look at this. |
|
Why have a plugin for checking the cache status rather than a custom log? |
Thank you for taking a look at this PR. The issue this addresses (see the link) is for the compress plugin. Namely, this code block: trafficserver/plugins/compress/compress.cc Lines 884 to 891 in d0a44f8
The plugin is not using the status for logging. Rather, the plugin grabs the cache status via |
ATS initially experiences cache lookups as a HIT for resources that we ultimately cannot use due to a need for authentication or if the methods for the incoming request and that of the request for the cached response don't match. Our TSHttpTxnCacheLookupStatusGet plugin interface returned the initial HIT status instead of marking these as MISSES. This patch changes the status to return a MISS in these circumstances. Closes #8539 (cherry picked from commit 080e236)
|
Cherry-picked to v9.2.x |
…pache#8545)" This reverts commit 080e236.
Fixing apache#8539 is easy to do in a common case, but it causing issues in corner cases. For now I'm going to revert the fixes for this and circle back around later to see whether this can be solved in a different way. This reverts the following commits: Revert "Commenting TSHttpTxnCacheLookupStatusGet need_to_revalidate (apache#8621)" This reverts commit 4678ae3 Revert "TSHttpTxnCacheLookupStatusGet: call need_to_revalidate (apache#8617)" This reverts commit 235c44a. Revert "TSHttpTxnCacheLookupStatusGet: handle cannot respond cases (apache#8545)" This reverts commit 080e236.
Fixing #8539 is easy to do in a common case, but it causing issues in corner cases. For now I'm going to revert the fixes for this and circle back around later to see whether this can be solved in a different way. This reverts the following commits: Revert "Commenting TSHttpTxnCacheLookupStatusGet need_to_revalidate (#8621)" This reverts commit 4678ae3 Revert "TSHttpTxnCacheLookupStatusGet: call need_to_revalidate (#8617)" This reverts commit 235c44a. Revert "TSHttpTxnCacheLookupStatusGet: handle cannot respond cases (#8545)" This reverts commit 080e236.
|
Adding the 9.2.x project as this will be reverted in 9.2.x when this is cherry-picked back: |
Fixing #8539 is easy to do in a common case, but it causing issues in corner cases. For now I'm going to revert the fixes for this and circle back around later to see whether this can be solved in a different way. This reverts the following commits: Revert "Commenting TSHttpTxnCacheLookupStatusGet need_to_revalidate (#8621)" This reverts commit 4678ae3 Revert "TSHttpTxnCacheLookupStatusGet: call need_to_revalidate (#8617)" This reverts commit 235c44a. Revert "TSHttpTxnCacheLookupStatusGet: handle cannot respond cases (#8545)" This reverts commit 080e236. (cherry picked from commit 2f1bd0f)
* asf/9.2.x: Updated ChangeLog TSHttpTxnCacheLookupStatusGet: handle cannot respond cases (apache#8545) Update to Proxy Verifier version v2.3.0 (apache#8608) Don't use Http1ClientTransaction as an event handler (apache#8609) Eliminate erroneous self-loop error on transparent mode (apache#8586) Clean up of next hop HostRecord class. (apache#8585) Propagate accept options to HTTP/2 (apache#8594) add --with-mimalloc option (apache#8233) Fix transparent mode documentation (apache#8593) Docs: Slack instead of irc (apache#8599) LogFilter: fix NULL termination check (apache#8603) Fixes a scoping bug that leads to "sticky" weights (apache#8606)
ATS initially experiences cache lookups as a HIT for resources that we
ultimately cannot use due to a need for authentication or if the methods
for the incoming request and that of the request for the cached response
don't match. Our TSHttpTxnCacheLookupStatusGet plugin interface returned
the initial HIT status instead of marking these as MISSES. This patch
changes the status to return a MISS in these circumstances.
Closes #8539