Repository navigation
Conversation
memcached_mget returns MEMCACHED_SOME_ERRORS when one server failed and the others were sent the request. getMany treated that as a complete failure, so it never read those replies and sent the healthy servers' keys to AYON.
This was referenced Nov 4, 2026
This was referenced Nov 5, 2026
1 task done
…et-partial-failure
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change preserving available memcached replies after partial lookup failures.
No open issues 🎉
What changed in this PR
This follow-up to #105 preserves healthy memcached servers’ replies when a batched lookup partially fails, avoiding unnecessary AYON lookups for those cached keys.
Changes:
- Continue reading results after logging
MEMCACHED_SOME_ERRORS. - Keep the existing early return for other failure codes.
| File | Description |
|---|---|
src/AyonUsdResolver/cache/memcachedHandler.cpp |
Allows getMany to read available replies after a partial memcached_mget failure. |
Review effort: Balanced
antirotor
added a commit
that referenced
this pull request
Nov 5, 2026
Add the scenarios that fail on builds without #108, #109 and #110, now that those are merged: - miss markers: trust window, ClearCache and DeleteFromCache ending it, an invalidation during a read, a path stored during the lookup - malformed AYON answers write no marker; an empty answer still does - dangling references are read once, and their open time - one dead server keeps the hits from the others The proxy can now hold the reads of one key, and the probe can open a stage in the background, to keep the races open.
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.
Description
getManynow reads the healthy servers' replies whenmemcached_mgetreports a partial failure.Changelog
memcached_mgetreturnsMEMCACHED_SOME_ERRORSwhen one server failed and the others were sent the request.getManytreated that as a complete failure and returned, which would send the healthy servers' keys to AYON. It now logs the failure and continues reading.Linked issues/branches
enhancement/featuriing-memcached(Memcached support #82)memcachedHandler.cpp:247Type of Change
Additional info
This is a defensive fix: the failure was not reproduced. Four scenarios with two servers and one dying after startup (before the first read, after libmemcached noticed the failure, after its retry timeout, and with requests larger than its write buffer) never produced
MEMCACHED_SOME_ERRORSwith libmemcached-awesome 1.1.0. In each one the healthy server's hits were already kept, and only the dead server's keys went to AYON. The change only affects that one return code, so it does not change those paths.test_one_dead_server_keeps_hits_from_the_otherscovers the last of those scenarios, and passes with and without this change. It will be added to #107 with the other new scenarios.Whole stack, real local merge (#106 merged with #108, this PR and the confirmed-miss follow-up): 123 passed and 2 expected failures, the site-roots case #106 leaves open.