Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Fix reading from replicas in pipelined commands #471

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FranGM
Copy link
Contributor

@FranGM FranGM commented Jul 19, 2021

We fail to send the READONLY command to replicas when running commands inside a pipeline, which results in an increased latency as the server will respond with an unneeded MOVED message forcing us to retry the command.

We move the sending of the READONLY command to the connection creation itself, since at that point we already know if we're connecting to a replica or not, so we can ensure consistency on sending this command.

Fixes #470

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reading from replicas in pipeline is currently broken
1 participant