Skip to content

Commit f53749b

Browse files
lanicclanicc
andauthored
fixed issue #5289 (#5290)
Co-authored-by: lanicc <[email protected]>
1 parent 80ca436 commit f53749b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

client/src/main/java/com/alibaba/otter/canal/client/impl/ClusterCanalConnector.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
package com.alibaba.otter.canal.client.impl;
22

3-
import java.net.SocketAddress;
4-
import java.util.concurrent.TimeUnit;
5-
6-
import org.slf4j.Logger;
7-
import org.slf4j.LoggerFactory;
8-
93
import com.alibaba.otter.canal.client.CanalConnector;
104
import com.alibaba.otter.canal.client.CanalNodeAccessStrategy;
115
import com.alibaba.otter.canal.protocol.Message;
126
import com.alibaba.otter.canal.protocol.exception.CanalClientException;
7+
import org.slf4j.Logger;
8+
import org.slf4j.LoggerFactory;
9+
10+
import java.net.SocketAddress;
11+
import java.util.concurrent.TimeUnit;
1312

1413
/**
1514
* 集群版本connector实现,自带了failover功能<br/>
16-
*
15+
*
1716
* @author jianghang 2012-10-29 下午08:04:06
1817
* @version 1.0.0
1918
*/
@@ -65,7 +64,7 @@ public SocketAddress getNextAddress() {
6564
currentConnector.connect();
6665
break;
6766
} catch (Exception e) {
68-
logger.warn("failed to connect to:{} after retry {} times", accessStrategy.currentNode(), times);
67+
logger.warn("failed to connect to canal server after retry {} times", times);
6968
currentConnector.disconnect();
7069
currentConnector = null;
7170
// retry for #retryTimes for each node when trying to

0 commit comments

Comments
 (0)