grails-plugins/grails-redis — pull request #13 by david-seiler (2012-07-06 15:43:35+00:00)
Title: Invalidate pooled Jedis objects on JedisConnectionException in RedisService

If a Jedis object throws a JedisConnectionException, it becomes invalid, and further attempts to use it may fail or behave strangely. This patch intercepts those exceptions in RedisService.withRedis(), so that invalid Jedis objects aren't returned to the pool to be reused. That solves the problem for RedisService and all its users, but I haven't read the whole plugin and similar issues may arise if Jedis objects are used directly elsewhere.