ReadFrom.REPLICA_PREFFERED setting results in Lua scripts executed against read replicas #2365
Unanswered
kchristidis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My expectation was that this would only affect read commands.
I find however that all Lua script executions now fail with exceptions like this one:
Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR Error running script (call to f_3ca6b2663a38e315a0652f24320559ef449020d8): @user_script:25: @user_script: 25: -READONLY You can't write against a read only replica.
Is this behavior expected? I am running on Redis 6.2.
Beta Was this translation helpful? Give feedback.
All reactions