mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed issue #296 , NPE
This commit is contained in:
@@ -108,7 +108,7 @@ public class ClusterCanalConnector implements CanalConnector {
|
|||||||
return;
|
return;
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
logger.warn("something goes wrong when subscribing from server:{}\n{}",
|
logger.warn("something goes wrong when subscribing from server:{}\n{}",
|
||||||
currentConnector.getAddress(),
|
currentConnector != null ? currentConnector.getAddress() : "null",
|
||||||
ExceptionUtils.getFullStackTrace(t));
|
ExceptionUtils.getFullStackTrace(t));
|
||||||
times++;
|
times++;
|
||||||
restart();
|
restart();
|
||||||
@@ -127,7 +127,7 @@ public class ClusterCanalConnector implements CanalConnector {
|
|||||||
return;
|
return;
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
logger.warn("something goes wrong when unsubscribing from server:{}\n{}",
|
logger.warn("something goes wrong when unsubscribing from server:{}\n{}",
|
||||||
currentConnector.getAddress(),
|
currentConnector != null ? currentConnector.getAddress() : "null",
|
||||||
ExceptionUtils.getFullStackTrace(t));
|
ExceptionUtils.getFullStackTrace(t));
|
||||||
times++;
|
times++;
|
||||||
restart();
|
restart();
|
||||||
@@ -145,7 +145,7 @@ public class ClusterCanalConnector implements CanalConnector {
|
|||||||
return msg;
|
return msg;
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
logger.warn("something goes wrong when getting data from server:{}\n{}",
|
logger.warn("something goes wrong when getting data from server:{}\n{}",
|
||||||
currentConnector.getAddress(),
|
currentConnector != null ? currentConnector.getAddress() : "null",
|
||||||
ExceptionUtils.getFullStackTrace(t));
|
ExceptionUtils.getFullStackTrace(t));
|
||||||
times++;
|
times++;
|
||||||
restart();
|
restart();
|
||||||
@@ -163,7 +163,7 @@ public class ClusterCanalConnector implements CanalConnector {
|
|||||||
return msg;
|
return msg;
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
logger.warn("something goes wrong when getting data from server:{}\n{}",
|
logger.warn("something goes wrong when getting data from server:{}\n{}",
|
||||||
currentConnector.getAddress(),
|
currentConnector != null ? currentConnector.getAddress() : "null",
|
||||||
ExceptionUtils.getFullStackTrace(t));
|
ExceptionUtils.getFullStackTrace(t));
|
||||||
times++;
|
times++;
|
||||||
restart();
|
restart();
|
||||||
|
|||||||
Reference in New Issue
Block a user