瀏覽代碼

fixed issue #321 , process TableIdNotFoundException

agapple 7 年之前
父節點
當前提交
3e5b3e1467
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      parse/src/main/java/com/alibaba/otter/canal/parse/inbound/AbstractEventParser.java

+ 3 - 0
parse/src/main/java/com/alibaba/otter/canal/parse/inbound/AbstractEventParser.java

@@ -191,6 +191,9 @@ public abstract class AbstractEventParser<EVENT> extends AbstractCanalLifeCycle
                                 } catch (TableIdNotFoundException e) {
                                     throw e;
                                 } catch (Throwable e) {
+                                    if (e.getCause() instanceof TableIdNotFoundException) {
+                                        throw (TableIdNotFoundException) e.getCause();
+                                    }
                                     // 记录一下,出错的位点信息
                                     processSinkError(e,
                                         this.lastPosition,