fixed issue #482 , retry for getTableMetaByDB

This commit is contained in:
agapple
2018-01-10 13:49:25 +08:00
parent 2d31e6bf91
commit 9316a3df6d

View File

@@ -53,7 +53,7 @@ public class TableMetaCache {
public TableMeta load(String name) throws Exception { public TableMeta load(String name) throws Exception {
try { try {
return getTableMetaByDB(name); return getTableMetaByDB(name);
} catch (CanalParseException e) { } catch (Throwable e) {
// 尝试做一次retry操作 // 尝试做一次retry操作
try { try {
connection.reconnect(); connection.reconnect();