Skip to content

Commit

Permalink
Bumped Jedis to v5.0.0 - fixed breaking changes from v3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecosta90 committed Sep 5, 2023
1 parent b3a9044 commit 5579b7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion driver-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>3.7.0</version>
<version>5.0.0</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
import org.slf4j.LoggerFactory;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.StreamEntry;
import redis.clients.jedis.StreamEntryID;
import redis.clients.jedis.params.XReadGroupParams;
import redis.clients.jedis.resps.StreamEntry;

public class RedisBenchmarkConsumer implements BenchmarkConsumer {
private final JedisPool pool;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
import java.util.Random;
import java.util.concurrent.CompletableFuture;
import org.apache.bookkeeper.stats.StatsLogger;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

public class RedisBenchmarkDriver implements BenchmarkDriver {
JedisPool jedisPool;
Expand Down Expand Up @@ -80,7 +80,7 @@ public CompletableFuture<BenchmarkConsumer> createConsumer(
}

private void setupJedisConn() {
JedisPoolConfig poolConfig = new JedisPoolConfig();
GenericObjectPoolConfig<Jedis> poolConfig = new GenericObjectPoolConfig<>();
poolConfig.setMaxTotal(this.clientConfig.jedisPoolMaxTotal);
poolConfig.setMaxIdle(this.clientConfig.jedisPoolMaxIdle);
if (this.clientConfig.redisPass != null) {
Expand Down

0 comments on commit 5579b7a

Please sign in to comment.