Skip to content

fix: exclude all subscriber-mode commands from auto pipelines - #2311

Merged
PavelPashov merged 1 commit into
redis:mainfrom
helmipradita:fix/subscriber-commands-auto-pipelining
Nov 25, 2026
Merged

PavelPashov merged 1 commit into
redis:mainfrom
helmipradita:fix/subscriber-commands-auto-pipelining

Conversation

@helmipradita

Copy link
Copy Markdown
Contributor

This pull request fixes subscriber-mode commands being swallowed by auto-pipelining on Cluster clients.

notAllowedAutoPipelineCommands contained a typo ("unpsubscribe" instead of "punsubscribe") and omitted ssubscribe and sunsubscribe. With enableAutoPipelining, those commands were batched into a slot-based pipeline instead of going through the dedicated Cluster subscriber routing, so sharded subscriptions could fail to reach the responsible ShardedSubscriber connection.

The fix corrects the typo and adds the two sharded commands so all six subscriber-mode commands bypass auto-pipelining, matching the existing handling of subscribe, psubscribe, and unsubscribe. A focused unit test covers every subscriber-mode command.

@PavelPashov PavelPashov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@PavelPashov
PavelPashov merged commit 466f6be into redis:main Nov 25, 2026
41 of 42 checks passed
github-actions Bot pushed a commit that referenced this pull request Dec 2, 2026
## [6.1.1](v6.1.0...v6.1.1) (2026-12-02)

### Bug Fixes

* exclude all subscriber-mode commands from auto pipelines ([#2311](#2311)) ([466f6be](466f6be))
* keep the current db when Redis rejects a SELECT ([#2308](#2308)) ([0516749](0516749)), closes [#2307](#2307)
* reject length-prefixed strings that are not followed by CRLF ([#2300](#2300)) ([77f88ee](77f88ee)), closes [#1172](#1172)
* **types:** accept binary keys in scan streams ([#2296](#2296)) ([1c1fd3c](1c1fd3c))
* **types:** keep redis-errors out of public error declarations ([#2322](#2322)) ([754d967](754d967))
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 6.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants