Skip to content

Commit

Permalink
Adopt to changed Redis 7.2 CLUSTER SHARDS response #2481
Browse files Browse the repository at this point in the history
Redis 7.2 no longer reports the self shard.
  • Loading branch information
mp911de committed Aug 15, 2023
1 parent cd703a4 commit 97ae2b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void testClusterShardsParsing() {

Partitions partitions = ClusterPartitionParser.parse(result);

assertThat(partitions).hasSize(4);
assertThat(partitions).hasSizeGreaterThan(2); // Redis 7.2 doesn't include the self-partition anymore
assertThat(partitions.getPartitionBySlot(1).getUri().getPort()).isIn(7379, 7381);
assertThat(partitions.getPartitionBySlot(12001).getUri().getPort()).isIn(7380, 7382);
assertThat(partitions.getPartition("127.0.0.1", 7382).is(RedisClusterNode.NodeFlag.REPLICA)).isTrue();
Expand Down

0 comments on commit 97ae2b5

Please sign in to comment.