lib/redis_failover/util.rb in nogara-redis_failover-0.9.7.4 vs lib/redis_failover/util.rb in nogara-redis_failover-1.0.0
- old
+ new
@@ -59,14 +59,22 @@
# Connectivity errors that the redis (>3.x) client raises.
REDIS_ERRORS << Redis::BaseError if Redis.const_defined?('BaseError')
REDIS_ERRORS.freeze
+ # ZK Errors
+ ZK_ERRORS = [
+ ZK::Exceptions::LockAssertionFailedError,
+ ZK::Exceptions::InterruptedSession,
+ ZK::Exceptions::Retryable,
+ Zookeeper::Exceptions::ContinuationTimeoutError
+ ].freeze
+
# Full set of errors related to connectivity.
CONNECTIVITY_ERRORS = [
RedisFailover::Error,
- ZK::Exceptions::InterruptedSession,
- REDIS_ERRORS
+ REDIS_ERRORS,
+ ZK_ERRORS
].flatten.freeze
# Symbolizes the keys of the specified hash.
#
# @param [Hash] hash a hash for which keys should be symbolized