File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
driver/src/main/java/org/neo4j/driver/internal/cluster Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 32
32
import org .neo4j .driver .v1 .exceptions .ProtocolException ;
33
33
import org .neo4j .driver .v1 .exceptions .ServiceUnavailableException ;
34
34
35
- import static java .lang .String .format ;
36
-
37
35
public class LoadBalancer implements ConnectionProvider , RoutingErrorHandler , AutoCloseable
38
36
{
39
37
private static final String LOAD_BALANCER_LOG_NAME = "LoadBalancer" ;
@@ -94,7 +92,6 @@ public void close() throws Exception
94
92
connections .close ();
95
93
}
96
94
97
- // todo: why servers are mixed up here? see shouldReceiveBookmark...
98
95
private PooledConnection acquireConnection ( RoundRobinAddressSet servers ) throws ServiceUnavailableException
99
96
{
100
97
for ( ; ; )
@@ -109,10 +106,7 @@ private PooledConnection acquireConnection( RoundRobinAddressSet servers ) throw
109
106
}
110
107
catch ( ServiceUnavailableException e )
111
108
{
112
- // todo: this log message is wrong
113
- log .error ( format ( "Failed to refresh routing information using routing address %s" ,
114
- address ), e );
115
-
109
+ log .error ( "Failed to obtain a connection towards address " + address , e );
116
110
forget ( address );
117
111
}
118
112
}
You can’t perform that action at this time.
0 commit comments