From 1755cee92ad119664ae30dd2e528d00c09cf05a7 Mon Sep 17 00:00:00 2001 From: Sailesh Mukil Date: Tue, 22 Oct 2019 13:03:57 -0400 Subject: [PATCH] Capture OK response after sending DYNO_CONFIG command We forgot to capture the OK response from DYNO_CONFIG:CONN_CONSISTENCY command after sending it, which meant that every command after that was getting the response for the previous command since there was always an unclaimed response on the wire. This patch fixes it. --- .../main/java/com/netflix/dyno/jedis/JedisConnectionFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/dyno-jedis/src/main/java/com/netflix/dyno/jedis/JedisConnectionFactory.java b/dyno-jedis/src/main/java/com/netflix/dyno/jedis/JedisConnectionFactory.java index f46e4ab2..855140c1 100644 --- a/dyno-jedis/src/main/java/com/netflix/dyno/jedis/JedisConnectionFactory.java +++ b/dyno-jedis/src/main/java/com/netflix/dyno/jedis/JedisConnectionFactory.java @@ -176,6 +176,7 @@ public void open() throws DynoException { jedisClient.connect(); if (isConsistencyLevelProvided()) { jedisClient.getClient().sendCommand(DynoConfigCommand.CONN_CONSISTENCY, this.consistencyLevel); + jedisClient.getClient().getStatusCodeReply(); } }