Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JedisConnectionException contains HostAndPort from DefaultJedisSocketFactory #3896

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/redis/clients/jedis/Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ protected void flush() {

protected Object readProtocolWithCheckingBroken() {
if (broken) {
throw new JedisConnectionException("Attempting to read from a broken connection");
throw new JedisConnectionException("Attempting to read from a broken connection.");
}

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private Socket connectToFirstSuccessfulHost(HostAndPort hostAndPort) throws Exce
Collections.shuffle(hosts);
}

JedisConnectionException jce = new JedisConnectionException("Failed to connect to any host resolved for DNS name.");
JedisConnectionException jce = new JedisConnectionException("Failed to connect to " + hostAndPort + ".");
for (InetAddress host : hosts) {
try {
Socket socket = new Socket();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public int incrementActiveMultiClusterIndex() {

throw new JedisConnectionException("Cluster/database endpoint could not failover since the MultiClusterClientConfig was not " +
"provided with an additional cluster/database endpoint according to its prioritized sequence. " +
"If applicable, consider failing back OR restarting with an available cluster/database endpoint");
"If applicable, consider failing back OR restarting with an available cluster/database endpoint.");
}
else activeMultiClusterIndex++;

Expand Down
Loading