Repository navigation
[Misc]Harden batch status-copy key encoding across storages - #2415
Merged
zhangjyr merged 3 commits intoJul 6, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces support for global Redis key prefixing via DB_REDIS_PREFIX and implements percent-encoding for hierarchical keys (such as worker IDs containing slashes) to ensure safe storage across local and Redis backends. It also updates the Redis v3 upgrade and verification logic to clean up legacy batch status copy entries. The review feedback correctly identifies that the Redis upgrade and verification scripts do not account for the new global prefix when matching legacy keys, and provides actionable suggestions to strip the prefix before performing checks and remapping.
zhangjyr
force-pushed
the
issues/santicizing_metadata_keys
branch
from
July 2, 2026 23:26
e6ebca3 to
65fb051
Compare
added 2 commits
July 6, 2026 13:20
Refactor batch/confest to support redis as e2e metastore and provide test namespace isolation. Signed-off-by: Jingyuan Zhang <[email protected]>
Signed-off-by: Jingyuan Zhang <[email protected]>
zhangjyr
force-pushed
the
issues/santicizing_metadata_keys
branch
from
July 6, 2026 20:21
65fb051 to
7cee1ba
Compare
Signed-off-by: Jingyuan Zhang <[email protected]>
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.
Pull Request Description
This PR improves batch status-copy keys for Redis-backed flows and aligns tests with the updated key model.
Motivation
Worker IDs and status-copy keys can contain
/, which collides with hierarchical storage semantics in both local and Redis-backed backends. Redis-backed tests also need stronger isolation and more tolerant polling to reflect asynchronous status propagation. This PR standardizes key encoding/normalization and adds the fixture/test support needed to validate it.What changed
/leaking into storage keysnamespace/nametonamespace:namebatchstatus_copiesartifacts and their stale indexesImportant: Before submitting, please complete the description above and review the checklist below.
Contribution Guidelines (Expand for Details)
We appreciate your contribution to aibrix! To ensure a smooth review process and maintain high code quality, please adhere to the following guidelines:
Pull Request Title Format
Your PR title should start with one of these prefixes to indicate the nature of the change:
[Bug]: Corrections to existing functionality[CI]: Changes to build process or CI pipeline[Docs]: Updates or additions to documentation[API]: Modifications to aibrix's API or interface[CLI]: Changes or additions to the Command Line Interface[Misc]: For changes not covered above (use sparingly)Note: For changes spanning multiple categories, use multiple prefixes in order of importance.
Submission Checklist
By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.