Repository navigation
perf: skip write-through tee for cache-rejected PUTs - #173
Merged
Merged
Conversation
Greptile SummaryThis PR avoids write-through tee admission and subsequent warm-on-write fetches when a PUT explicitly declares
Confidence Score: 5/5The PR appears safe to merge, with no concrete changed-code defect identified. Exact no-store/private request policies bypass tee and warm population without bypassing upstream forwarding or the required post-success cache invalidation, while cacheable and no-cache PUTs retain the HEAD-verified path. Important Files Changed
Reviews (1): Last reviewed commit: "perf: bypass tee for cache-rejected PUTs" | Re-trigger Greptile |
|
🎉 This PR is included in version 1.18.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
What
Skip write-through tee admission for PUTs with an exact request
Cache-Control: no-storeorprivatedirective. These requests still forward and invalidate existing cache data, but no longer reserve cache-populate capacity, issue a metadata HEAD, publish a cache entry, or start a warm-on-write fetch.Keep the HEAD-verified tee path for cacheable and
no-cachePUTs. Repeated fields and quoted extension values are parsed so only exact directives opt out. Add handler benchmarks that count metadata HEADs and wait for detached commits.Testing
go test -v -timeout 30s -count=1 ./proxy/...go test -race -timeout 60s -count=1 ./proxy -run '^TestHandlePutObject_WriteThroughTee_'make lint-ciWorkload:
completed 64 KiB no-store PUT with cacheable origin metadataupstream_HEADs/opns/opGenerated by Perfloop. Measurements and checks.
Note
Cursor Bugbot is generating a summary for commit a218adb. Configure here.