Skip to content

Commit a068d0c

Browse files
sheinbergonmarcosnils
authored andcommitted
Fix for Sentinel MasterListener uncaught exception death (redis#1422)
* Fixed MasterListener so a broader exception will be catched * Revert "Fixed MasterListener so a broader exception will be catched" This reverts commit 93be077. * Fixed MasterListener so a broader exception will be catched
1 parent 7595058 commit a068d0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/redis/clients/jedis/JedisSentinelPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public void onMessage(String channel, String message) {
298298
}
299299
}, "+switch-master");
300300

301-
} catch (JedisConnectionException e) {
301+
} catch (JedisException e) {
302302

303303
if (running.get()) {
304304
log.log(Level.SEVERE, "Lost connection to Sentinel at " + host + ":" + port

0 commit comments

Comments
 (0)