17:11:37.628957 IP6 localhost.50009 > localhost.6379: Flags [P.], seq 1:182, ack 1,
win 6371, options [nop,nop,TS val 3558366321 ecr 1130411450], length 181: RESP
"HELLO" "3" "CLIENT" "TRACKING" "ON" "OPTIN" "CLIENT" "SETINFO" "LIB-NAME"
"rueidis" "CLIENT" "SETINFO" "LIB-VER" "1.0.55"
17:11:37.629079 IP6 localhost.6379 > localhost.50009: Flags [P.], seq 1:160, ack 182,
win 6369, options [nop,nop,TS val 1130411450 ecr 3558366321], length 159: RESP "%7"
"server" "redis" "version" "7.4.2" "proto" "3" "id" "9" "mode" "standalone" "role"
"master" "modules" empty "OK" "OK" "OK"
17:11:37.629197 IP6 localhost.50009 > localhost.6379: Flags [P.], seq 182:221, ack 160,
win 6369, options [nop,nop,TS val 3558366321 ecr 1130411450], length 39: RESP
"CLIENT" "TRACKING" "OFF"
17:11:37.629265 IP6 localhost.6379 > localhost.50009: Flags [P.], seq 160:165, ack 221,
win 6368, options [nop,nop,TS val 1130411450 ecr 3558366321], length 5: RESP "OK"
17:11:37.629333 IP6 localhost.50009 > localhost.6379: Flags [P.], seq 221:291, ack 165,
win 6369, options [nop,nop,TS val 3558366322 ecr 1130411450], length 70: RESP
"CLIENT" "TRACKING" "ON" "PREFIX" "ab:" "BCAST"
17:11:37.629399 IP6 localhost.6379 > localhost.50009: Flags [P.], seq 165:170, ack 291,
win 6367, options [nop,nop,TS val 1130411451 ecr 3558366322], length 5: RESP "OK"
17:11:37.629481 IP6 localhost.50009 > localhost.6379: Flags [P.], seq 291:351, ack 170,
win 6369, options [nop,nop,TS val 3558366322 ecr 1130411451], length 60: RESP "SET"
"ab:ct:1" "This is but a simple value."
17:11:37.629553 IP6 localhost.6379 > localhost.50009: Flags [P.], seq 170:213, ack 351,
win 6366, options [nop,nop,TS val 1130411451 ecr 3558366322], length 43: RESP "OK"
">2" "invalidate" "ab:ct:1"
17:11:37.630637 IP6 localhost.50010 > localhost.6379: Flags [P.], seq 182:302, ack 161,
win 6369, options [nop,nop,TS val 3781709923 ecr 2170916844], length 120: RESP
"CLIENT" "CACHING" "YES" "MULTI" "PTTL" "ab:ct:1" "GET" "ab:ct:1" "EXEC"
Bug: "ERR CLIENT CACHING YES" Error in Rueidis Broadcast Mode
Description
When using the rueidis client in Broadcast mode, the Redis server responds with the following error:
The rueidis client continues to work correctly and does not detect this error. However, the error count in
INFO ERRORSTATSincreases, which affects monitoring dashboards.Steps to Reproduce
v1.0.55) in Broadcast mode with Redis (v7.4.2orv7.2.7).Capture Redis traffic using
tcpdump:Observe the error in the TCP traffic:
INFO ERRORSTATSin Redis and note that the error count increases which each run of the sample code.Expected Behavior
Actual Behavior
ERR CLIENT CACHING YESerror in responses.INFO ERRORSTATScount increases.Environment
v1.0.55v7.4.2/v7.2.7macOS Sequoia 15.3.1Potential Workaround
ClientTrackingOptions, resulting in the client being created in default (OPTIN) mode.ERR CLIENT CACHING YESerror on the server side.Steps to Reproduce
v1.0.55) in Broadcast mode with Redis (v7.4.2orv7.2.7).Capture Redis traffic using
tcpdump:Observe the error in the TCP traffic:
INFO ERRORSTATSin Redis-cli and note that the error count does not increase with the above code sample.Questions