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
The following code throws Exceptions attempting to get results of a pipelined operation after pipeline.discard() has been called. It looks like the discard op and all future ops are still getting added to the currentMulti ResponseBuilder. I'm seeing this with Jedis 2.1.0.
@Test
public void testDiscard() {
Jedis jedis = new Jedis(new JedisShardInfo("localhost", 6379));
jedis.connect();
Pipeline pipeline = jedis.pipelined();
pipeline.multi();
pipeline.set("foo", "bar");
Response<String> discard = pipeline.discard();
Response<String> get = pipeline.get("foo");
pipeline.sync();
// Both gets below throw RedisDataException Please close pipeline or multi block before calling this method
discard.get();
get.get();
}
The text was updated successfully, but these errors were encountered:
The following code throws Exceptions attempting to get results of a pipelined operation after pipeline.discard() has been called. It looks like the discard op and all future ops are still getting added to the currentMulti ResponseBuilder. I'm seeing this with Jedis 2.1.0.
The text was updated successfully, but these errors were encountered: