Skip to content

Commit 84758ef

Browse files
authored
Remove stacktrace from recoverable discovery log warnings (#943) (#953)
* Remove stacktrace from recoverable discovery log warnings This is to reduce the noise in the logs when recoverable discovery exceptions occur. Complete discovery failures are expected to be reported separately. * Update class comment on RediscoveryImpl
1 parent d926b85 commit 84758ef

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

driver/src/main/java/org/neo4j/driver/internal/cluster/Rediscovery.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,21 @@
2626
import org.neo4j.driver.internal.BoltServerAddress;
2727
import org.neo4j.driver.internal.spi.ConnectionPool;
2828

29+
/**
30+
* Provides cluster composition lookup capabilities and initial router address resolution.
31+
*/
2932
public interface Rediscovery
3033
{
34+
/**
35+
* Fetches cluster composition using the provided routing table.
36+
* <p>
37+
* Implementation must be thread safe to be called with distinct routing tables concurrently. The routing table instance may be modified.
38+
*
39+
* @param routingTable the routing table for cluster composition lookup
40+
* @param connectionPool the connection pool for connection acquisition
41+
* @param bookmark the bookmark that is presented to the server
42+
* @return cluster composition lookup result
43+
*/
3144
CompletionStage<ClusterCompositionLookupResult> lookupClusterComposition( RoutingTable routingTable, ConnectionPool connectionPool, Bookmark bookmark );
3245

3346
List<BoltServerAddress> resolve() throws UnknownHostException;

0 commit comments

Comments
 (0)