Repository navigation
Add Vector Set commands to read-only command list - #3825
Merged
Merged
Conversation
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.
Closes #3824
Problem
Vector Set read-only commands are routed to the master because they are not
registered in
ReadOnlyCommands.Changes
VSIM,VCARD,VDIM,VEMB,VGETATTR,VINFO,VLINKS,and
VRANDMEMBERas read-only commandsClusterReadOnlyCommandsUnitTestsaccordinglyNote
Low Risk
Registry-only change to read-only command classification and a test count; no auth, writes, or behavioral logic beyond cluster read routing for the new command names.
Overview
Fixes cluster routing for Vector Set queries by marking eight additional read commands as read-only in
ReadOnlyCommands(VCARD,VDIM,VEMB,VGETATTR,VINFO,VLINKS,VRANDMEMBER,VSIM;VISMEMBERwas already listed). Those commands can now be treated like other read-only ops and sent to replicas when read routing is enabled, instead of always hitting the master.The cluster read-only command unit test expected count is updated from 127 to 135 to match the expanded registry.
Reviewed by Cursor Bugbot for commit 53c5f90. Bugbot is set up for automated code reviews on this repo. Configure here.