Skip to content

Commit c6fa9f4

Browse files
committed
Merge Pull Request #1241
branch 'lklinginsmith/update_cluster_client_error_mapping' Fix: #1241
2 parents 58e43cf + ee9edac commit c6fa9f4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cluster/lib/redis/cluster.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class AmbiguousNodeError < BaseError
4141
class TransactionConsistencyError < BaseError
4242
end
4343

44+
class NodeMightBeDown < BaseError
45+
end
46+
4447
def connection
4548
raise NotImplementedError, "Redis::Cluster doesn't implement #connection"
4649
end

cluster/lib/redis/cluster/client.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ class Client < RedisClient::Cluster
1010
RedisClient::Cluster::OrchestrationCommandNotSupported => Redis::Cluster::OrchestrationCommandNotSupported,
1111
RedisClient::Cluster::AmbiguousNodeError => Redis::Cluster::AmbiguousNodeError,
1212
RedisClient::Cluster::ErrorCollection => Redis::Cluster::CommandErrorCollection,
13-
RedisClient::Cluster::Transaction::ConsistencyError => Redis::Cluster::TransactionConsistencyError
13+
RedisClient::Cluster::Transaction::ConsistencyError => Redis::Cluster::TransactionConsistencyError,
14+
RedisClient::Cluster::NodeMightBeDown => Redis::Cluster::NodeMightBeDown,
1415
).freeze
1516

1617
class << self

0 commit comments

Comments
 (0)