提交 f9e0dc7d 编写于 作者: A agapple

fixed testcase

上级 0c399509
......@@ -31,7 +31,8 @@ public class BaseCanalClientTest {
protected static final String SEP = SystemUtils.LINE_SEPARATOR;
protected static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
protected volatile boolean running = false;
protected Thread.UncaughtExceptionHandler handler = (t, e) -> logger.error("parse events has an error", e);
protected Thread.UncaughtExceptionHandler handler = (t, e) -> logger.error("parse events has an error",
e);
protected Thread thread = null;
protected CanalConnector connector;
protected static String context_format = null;
......@@ -148,7 +149,7 @@ public class BaseCanalClientTest {
entry.getHeader().getGtid(), String.valueOf(delayTime) });
if (eventType == EventType.QUERY || rowChage.getIsDdl()) {
logger.info(" sql ----> " + rowChage.getSql() + SEP);
logger.info("ddl : " + rowChage.getIsDdl() + " , sql ----> " + rowChage.getSql() + SEP);
continue;
}
......
......@@ -13,8 +13,8 @@ public abstract class AbstractKafkaTest extends BaseCanalClientTest {
public static String topic = "example";
public static Integer partition = null;
public static String groupId = "g4";
public static String servers = "slave1:6667,slave2:6667,slave3:6667";
public static String zkServers = "slave1:2181,slave2:2181,slave3:2181";
public static String servers = "127.0.0.1:9092";
public static String zkServers = "127.0.0.1:2181";
public void sleep(long time) {
try {
......
......@@ -4,12 +4,12 @@ import com.alibaba.otter.canal.example.BaseCanalClientTest;
public abstract class AbstractRocektMQTest extends BaseCanalClientTest {
public static String topic = "example";
public static String groupId = "group";
public static String nameServers = "localhost:9876";
public static String accessKey = "";
public static String secretKey = "";
public static String topic = "example";
public static String groupId = "group";
public static String nameServers = "127.0.0.1:9876";
public static String accessKey = "";
public static String secretKey = "";
public static boolean enableMessageTrace = false;
public static String accessChannel = "local";
public static String namespace = "";
public static String accessChannel = "local";
public static String namespace = "";
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册