We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I use ClusterPipeline like this
try (ClusterPipeline clusterPipeline = new ClusterPipeline(clusterConnectionProvider)) { List<Response<String>> tmpResults = new ArrayList<>(keys.size()); keys.forEach(key -> { if (key != null) { tmpResults.add(clusterPipeline.get(key)); } else { tmpResults.add(null); } }); clusterPipeline.sync(); return tmpResults.stream().map(r -> r != null ? r.get() : null).collect(Collectors.toList()); }
when redis has exception, sync method will not marked synced true
public final void sync() { if (synced) { return; } for (Map.Entry<HostAndPort, Queue<Response<?>>> entry : pipelinedResponses.entrySet()) { HostAndPort nodeKey = entry.getKey(); Queue<Response<?>> queue = entry.getValue(); List<Object> unformatted = connections.get(nodeKey).getMany(queue.size()); for (Object o : unformatted) { queue.poll().set(o); } } synced = true; }
so close will throw exception, and connection will not close
public void close() { sync(); for (Connection connection : connections.values()) { connection.close(); } }
after some time, connection pool will throw 'timeout waiting for idle object' Is it a problem, or I user it wrong
return connection even exception happens
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Expected behavior
I use ClusterPipeline like this
when redis has exception, sync method will not marked synced true
so close will throw exception, and connection will not close
after some time, connection pool will throw 'timeout waiting for idle object'
Is it a problem, or I user it wrong
Actual behavior
return connection even exception happens
Redis / Jedis Configuration
Jedis version: 4.2.2
Redis version:
Java version: jdk 1.8
The text was updated successfully, but these errors were encountered: