本文为您介绍迁移 OBKV 的增量数据时,报错处理非全列日志失败(handle_non_full_columns_)的原因和解决方法。
适用版本
适用于 OceanBase 迁移服务(OceanBase Migration Service,OMS)社区版 V4.2.4-CE 及之后版本。
问题描述
通过 OMS 进行 OBKV 增量同步任务时,报错:STORE-OCEANBASE-MODEL-EXTRA-004007。
增量拉取日志报错:[ERROR] [ob2storeMod.cpp:64 427671,1920923392] Oblog report error level 1 code -4007 msg formatter thread exits, thread_index=0, err=-4007。
进入 /home/ds/store/store7100/log/ libobcdc.log,存在报错:EDIAG [TLOG.FORMATTER] handle_non_full_columns_ (ob_log_formatter.cpp:807) [427967][Formatter_0][T0][Y869xxxxx-000000xxxxx-0-0] [lt=859][errcode=-4016] row data is not full recorded。
问题原因
日志归档期间修改过 binlog_row_image 模式,由非全列日志 MINIMAL 修改为全列日志 FULL。
解决方法
OMS Store 组件增量拉取配置 liboblog.skip_dirty_data=1,可以支持跳过全列日志检查。
如果是 HBase 模式的表,需要额外增加 liboblog.enable_hbase_mode=1 参数。
您可以查询表结构,如果表中只有 K/Q/T/V 四列,则说明是 HBase 模式的表。
