Skip to content

How to reproduce PartitionSelectorException? #2563

Answered by mp911de
KimTaehee asked this question in Q&A
Discussion options

You must be logged in to vote

PartitionSelectorException happens if there is no read or write node for a hash slot. That is, if there is no master currently serving a slot or, if the selection wants to send a command towards a replica, that there is no replica available for the slot.

You can reproduce the exception by configuring a cluster that doesn't cover all hash slots and then issuing a command against a hash slot that has no master for it.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by KimTaehee
Comment options

You must be logged in to vote
1 reply
@tishun
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
status: waiting-for-feedback We need additional information before we can continue
4 participants
Converted from issue

This discussion was converted from issue #2562 on December 01, 2023 07:21.