Skip to content

Commit bc63b05

Browse files
authored
[Backport][5.2.1] Propagate cause for "Cluster retry deadline exceeded" exception #4103 (#4104)
Propagate cause for "Cluster retry deadline exceeded" exception (#4103) (cherry picked from commit 70123fc)
1 parent 2f01feb commit bc63b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/redis/clients/jedis/executors/ClusterCommandExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private <T> T doExecuteCommand(CommandObject<T> commandObject, boolean toReplica
131131
IOUtils.closeQuietly(connection);
132132
}
133133
if (Instant.now().isAfter(deadline)) {
134-
throw new JedisClusterOperationException("Cluster retry deadline exceeded.");
134+
throw new JedisClusterOperationException("Cluster retry deadline exceeded.", lastException);
135135
}
136136
}
137137

0 commit comments

Comments
 (0)