fix: sync getBulk correctly decodes mixed hashed and plain keys#195
fix: sync getBulk correctly decodes mixed hashed and plain keys#195bihaoxwork wants to merge 2 commits into
Conversation
Refactor getBulkData to split hashed vs plain keys and route each set through the appropriate transcoder path, fixing incorrect decoding when a single bulk request contains both hashed and unhashed keys. Re-enable the previously disabled getBulk test path in EVCacheTestDI. Co-authored-by: Bihao Xu <bxu@netflix.com>
Code ReviewSummaryRefactors the synchronous Approval RecommendationComment — no blocking issues. The mixed-key decode, the transcoder-fallback port from #184, and the chunked+hashed read path were all independently verified correct. Consider the null-guard suggestion and the test/observability considerations at your discretion. Issues FoundSuggestions
Considerations
Pre-existing IssuesExists on unchanged code (introduced in #181 for the async path), now also reachable from the sync path. Not reachable through normal flow since memcached only returns requested keys — listed for awareness.
Questions for the AuthorNone — the chunking-routing design and the chunked+hashed read path were verified correct (chunks are stored under Notes
Generated with pr-review-plugin (Claude + Codex) |
Summary
decoding when a single sync getBulk request contains both hashed and unhashed keys.
Test