Debezium 采坑2

原创
2019/11/06 20:49
阅读数 2K
文档中没有写的一个参数,snapshot.new.tables 可以新增snapshot表
    public static final Field SNAPSHOT_NEW_TABLES = Field.create("snapshot.new.tables")
                                                       .withDisplayName("Snapshot newly added tables")
                                                       .withEnum(SnapshotNewTables.class, SnapshotNewTables.OFF)
                                                       .withWidth(Width.SHORT)
                                                       .withImportance(Importance.LOW)
                                                       .withDescription("BETA FEATURE: On connector restart, the connector will check if there have been any new tables added to the configuration, "
                                                           + "and snapshot them. There is presently only two options:"
                                                           + "'off': Default behavior. Do not snapshot new tables."
                                                           + "'parallel': The snapshot of the new tables will occur in parallel to the continued binlog reading of the old tables. When the snapshot "
                                                           + "completes, an independent binlog reader will begin reading the events for the new tables until it catches up to present time. At this "
                                                           + "point, both old and new binlog readers will be momentarily halted and new binlog reader will start that will read the binlog for all "
                                                           + "configured tables. The parallel binlog reader will have a configured server id of 10000 + the primary binlog reader's server id.");

 

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部