|
@@ -22,7 +22,6 @@ import com.alibaba.otter.canal.parse.CanalEventParser;
|
|
|
import com.alibaba.otter.canal.parse.exception.CanalParseException;
|
|
|
import com.alibaba.otter.canal.parse.exception.TableIdNotFoundException;
|
|
|
import com.alibaba.otter.canal.parse.inbound.EventTransactionBuffer.TransactionFlushCallback;
|
|
|
-import com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser;
|
|
|
import com.alibaba.otter.canal.parse.index.CanalLogPositionManager;
|
|
|
import com.alibaba.otter.canal.parse.support.AuthenticationInfo;
|
|
|
import com.alibaba.otter.canal.protocol.CanalEntry;
|
|
@@ -387,10 +386,11 @@ public abstract class AbstractEventParser<EVENT> extends AbstractCanalLifeCycle
|
|
|
String name = String.format("destination = %s , address = %s , HeartBeatTimeTask",
|
|
|
destination,
|
|
|
runningInfo == null ? null : runningInfo.getAddress().toString());
|
|
|
- synchronized(AbstractEventParser.class){
|
|
|
-// synchronized (MysqlEventParser.class) {
|
|
|
-// why use MysqlEventParser.class, u know, MysqlEventParser is the child class 4 AbstractEventParser,
|
|
|
-// do this is ...
|
|
|
+ synchronized (AbstractEventParser.class) {
|
|
|
+ // synchronized (MysqlEventParser.class) {
|
|
|
+ // why use MysqlEventParser.class, u know, MysqlEventParser is
|
|
|
+ // the child class 4 AbstractEventParser,
|
|
|
+ // do this is ...
|
|
|
if (timer == null) {
|
|
|
timer = new Timer(name, true);
|
|
|
}
|