From 111b12c109470825d5b2cf3b32cfbd5f30467a06 Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Thu, 7 Feb 2019 09:18:57 +0300 Subject: [PATCH] Improvement - Tip added to error text of "Unable to get connection!" #1883 --- .../src/main/java/org/redisson/command/CommandAsyncService.java | 2 +- .../src/main/java/org/redisson/command/CommandBatchService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/redisson/src/main/java/org/redisson/command/CommandAsyncService.java b/redisson/src/main/java/org/redisson/command/CommandAsyncService.java index 024920701..50950bd3e 100644 --- a/redisson/src/main/java/org/redisson/command/CommandAsyncService.java +++ b/redisson/src/main/java/org/redisson/command/CommandAsyncService.java @@ -716,7 +716,7 @@ public class CommandAsyncService implements CommandAsyncExecutor { if (details.getConnectionFuture().cancel(false)) { if (details.getException() == null) { - details.setException(new RedisTimeoutException("Unable to get connection! " + details.setException(new RedisTimeoutException("Unable to get connection! Try to increase 'nettyThreads' and 'connection pool' settings or set decodeInExecutor = true and increase 'threads' setting" + "Node source: " + source + ", command: " + command + ", command params: " + LogHelper.toString(details.getParams()) + " after " + details.getAttempt() + " retry attempts")); diff --git a/redisson/src/main/java/org/redisson/command/CommandBatchService.java b/redisson/src/main/java/org/redisson/command/CommandBatchService.java index 6d020a912..91caadeb4 100644 --- a/redisson/src/main/java/org/redisson/command/CommandBatchService.java +++ b/redisson/src/main/java/org/redisson/command/CommandBatchService.java @@ -689,7 +689,7 @@ public class CommandBatchService extends CommandAsyncService { if (connectionFuture.cancel(false)) { if (details.getException() == null) { - details.setException(new RedisTimeoutException("Unable to get connection! " + details.setException(new RedisTimeoutException("Unable to get connection! Try to increase 'nettyThreads' and 'connection pool' settings or set decodeInExecutor = true and increase 'threads' setting" + "Node source: " + source + " after " + attempts + " retry attempts")); } } else {