Skip to content

Remove stacktrace from recoverable discovery log warnings #953

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

Merged
merged 2 commits into from
Jul 9, 2021
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,21 @@
import org.neo4j.driver.internal.BoltServerAddress;
import org.neo4j.driver.internal.spi.ConnectionPool;

/**
* Provides cluster composition lookup capabilities and initial router address resolution.
*/
public interface Rediscovery
{
/**
* Fetches cluster composition using the provided routing table.
* <p>
* Implementation must be thread safe to be called with distinct routing tables concurrently. The routing table instance may be modified.
*
* @param routingTable the routing table for cluster composition lookup
* @param connectionPool the connection pool for connection acquisition
* @param bookmark the bookmark that is presented to the server
* @return cluster composition lookup result
*/
CompletionStage<ClusterCompositionLookupResult> lookupClusterComposition( RoutingTable routingTable, ConnectionPool connectionPool, Bookmark bookmark );

List<BoltServerAddress> resolve() throws UnknownHostException;
Expand Down