Skip to content

Commit

Permalink
avoid throwing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Apr 12, 2022
1 parent 3b00f21 commit 8a3bb00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.JedisPubSub;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.exceptions.FailoverAbortedException;
import redis.clients.jedis.exceptions.JedisDataException;

public class JedisSentinelTestUtil {
Expand All @@ -25,8 +24,8 @@ public void onPMessage(String pattern, String channel, String message) {
punsubscribe();
} else if (channel.startsWith("-failover-abort")) {
punsubscribe();
throw new FailoverAbortedException("Unfortunately sentinel cannot failover..."
+ " reason(channel) : " + channel + " / message : " + message);
// throw new FailoverAbortedException("Unfortunately sentinel cannot failover..."
// + " reason(channel) : " + channel + " / message : " + message);
}
}

Expand Down

0 comments on commit 8a3bb00

Please sign in to comment.