mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
very very major:Adapter rdb bug fix (#4742)
* 异常点描述1 * 问题描述 * bug fix rdb yml文件 编码格式问题,导致所有outerAdapter初始化失败; kafka消息空跑,数据全都丢失 问题 fix
This commit is contained in:
@@ -84,6 +84,7 @@ public class RdbAdapter implements OuterAdapter {
|
||||
// 从jdbc url获取db类型
|
||||
Map<String, String> properties = configuration.getProperties();
|
||||
String dbType = JdbcUtils.getDbType(properties.get("jdbc.url"), null);
|
||||
// 当.yml文件编码格式存在问题,此处rdb yml文件构建 可能会抛出异常
|
||||
Map<String, MappingConfig> rdbMappingTmp = ConfigLoader.load(envProperties);
|
||||
// 过滤不匹配的key的配置
|
||||
rdbMappingTmp.forEach((key, config) -> {
|
||||
|
||||
Reference in New Issue
Block a user