You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cluster: Preserve message and suberrors when raising CommandErrorCollection
The constructor signature for CommandErrorCollection is (errors,
message). That means if you call "raise CommandErrorCollection,
'foobar'", that actually winds up setting the _errors_ field to
'foobar', _NOT_ the message. This leads to incredibly undescriptive
"Command errors were replied on any node" errors getting emitted if
there are errors using pipelining.
Fix this by:
1) explicitly constructing the error, with the arguments in the right
order
2) mapping the sub-errors into redis-rb errors too - presumably there's
an :errors attr_reader because somebody will find that useful.
0 commit comments