)]}'
{"releasenotes/notes/redis-retries-b33fd6803f021a68.yaml":[{"author":{"_account_id":9816,"name":"Takashi Kajinami","email":"kajinamit@oss.nttdata.com","username":"kajinamit"},"change_message_id":"195e0ad9ce07bd8e369604f34daacb79d4aba3c2","unresolved":true,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"upgrade:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    With Redis Sentinel, use Redis 7.0 or later. With older Redis servers,"},{"line_number":5,"context_line":"    after a failover some group and lock operations can fail until the next"},{"line_number":6,"context_line":"    heartbeat reconnects the service to the new primary."},{"line_number":7,"context_line":"fixes:"},{"line_number":8,"context_line":"  - |"},{"line_number":9,"context_line":"    Joining or leaving a Redis group no longer retries without limit while"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"83a3218d_07ead456","line":6,"range":{"start_line":3,"start_character":5,"end_line":6,"end_character":56},"updated":"2026-12-01 14:46:31.000000000","message":"Please allow me to ask a few questions so that I understand this correctly.\n\nIs this a new problem or an existing one ? I assume the latter, because the redis driver already has a few other scripts (eg. create_group) doing writes.\n\nIf this is not a new requirement specifically caused by this change, this should rather be described a different section (eg, probably other ?) or should be even removed. If this is actually a new requirement then we may explicitly bump the minimum version.\n\nAlso it\u0027d be helpful if you could share reference to the redis issue (in the review comment thread, rather than adding it to commit message or release note for now)","commit_id":"6813d7b0cbc6c2ba91110bd059b658055fff4c14"},{"author":{"_account_id":9816,"name":"Takashi Kajinami","email":"kajinamit@oss.nttdata.com","username":"kajinamit"},"change_message_id":"7812d74ab4c57c929ccb3d7ee500428ace7f2a90","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"upgrade:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    With Redis Sentinel, use Redis 7.0 or later. With older Redis servers,"},{"line_number":5,"context_line":"    after a failover some group and lock operations can fail until the next"},{"line_number":6,"context_line":"    heartbeat reconnects the service to the new primary."},{"line_number":7,"context_line":"fixes:"},{"line_number":8,"context_line":"  - |"},{"line_number":9,"context_line":"    Joining or leaving a Redis group no longer retries without limit while"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"b3bc48a9_073ca62d","line":6,"range":{"start_line":3,"start_character":5,"end_line":6,"end_character":56},"in_reply_to":"7666cba5_253d6055","updated":"2026-12-01 20:53:43.000000000","message":"Understood. Thanks for the update.","commit_id":"6813d7b0cbc6c2ba91110bd059b658055fff4c14"},{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"8f34686956c0b35f979af68fea27f8f028d8d0ad","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"upgrade:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    With Redis Sentinel, use Redis 7.0 or later. With older Redis servers,"},{"line_number":5,"context_line":"    after a failover some group and lock operations can fail until the next"},{"line_number":6,"context_line":"    heartbeat reconnects the service to the new primary."},{"line_number":7,"context_line":"fixes:"},{"line_number":8,"context_line":"  - |"},{"line_number":9,"context_line":"    Joining or leaving a Redis group no longer retries without limit while"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"7666cba5_253d6055","line":6,"range":{"start_line":3,"start_character":5,"end_line":6,"end_character":56},"in_reply_to":"83a3218d_07ead456","updated":"2026-12-01 20:41:00.000000000","message":"right, it is an existing problem, not a new one:\n\n- On master, creating and deleting groups, updating capabilities, the prune in get_members, and lock release and extension (redis-py\u0027s Lock) already write through scripts\n- On Redis older than 7.0, a script that writes to a replica fails with a generic script error, not READONLY like it probably should have. redis-py\u0027s Sentinel connection reconnects only on ReadOnlyError (SentinelManagedConnection.read_response), so it misses the failover. The next plain command, such as the heartbeat, gets READONLY and reconnects.\n- What this change adds: join and leave used watched transactions. Redis 6 rejects a write queued in MULTI with READONLY, which redis-py does catch. As scripts, join and leave now share the limit the other writes already have.\n\nThe replies from Redis 6.2.14 and 7.0.15 replicas, with redis-py 8.2.0:\n\n    6.2.14: ResponseError: Error running script (call to f_8932ca39...): @user_script:1: @user_script: 1: -READONLY You can\u0027t write against a read only replica.\n    7.0.15: ReadOnlyError: You can\u0027t write against a read only replica. script: 8932ca39..., on @user_script:1.\n\nSo, one option is to bump the min version to 7.x, but I\u0027d rather not do that since redis 6 still works, and without Sentinel nothing changes.\n\nPS2 moves the note to \"Known Issues\" and words it as an existing limit that now also covers join and leave.\n\nReference: https://github.com/redis/redis/pull/10329. The Redis 7.0 RC2 release notes list it under \"Potentially Breaking Changes\": \"Fix messed up error codes returned from EVAL scripts (#10218, #10329)\".","commit_id":"6813d7b0cbc6c2ba91110bd059b658055fff4c14"}]}
