Version: 4.0.2.Final
com.lambdaworks.redis.AbstractRedisClient has a field called "timer"(instance of HashedWheelTimer) which would created a executor. However, the executor has not be shutdown gracefully, so it would casuse tomcat block when trying to stop the tomcat process(bootstrap).
So i have to do someting tricky when shutdown the tomcat in my web app:
try {
Field field = AbstractRedisClient.class.getDeclaredField("timer");
field.setAccessible(true);
((HashedWheelTimer) field.get(client)).stop();
} catch (NoSuchFieldException | IllegalAccessException e) {
e.printStackTrace();
}
Version: 4.0.2.Final
com.lambdaworks.redis.AbstractRedisClient
has a field called "timer"(instance of HashedWheelTimer) which would created a executor. However, the executor has not be shutdown gracefully, so it would casuse tomcat block when trying to stop the tomcat process(bootstrap).So i have to do someting tricky when shutdown the tomcat in my web app:
plz correct me if i am wrong.