GBase 8a
其他
文章

列类型为binary导致表重分布失败

发表于2024-06-06 13:39:4357次浏览1个评论

标题:列类型为binary导致重分布失败

产品线:Gbase8a MPP cluster   版本: 9.5.3.27.17

问题现象:表重分布时,任务进度一直在10%没有进展,通过show processlist查看,重分布任务处理回滚状态,查看express日志显示报错信息reason: pata too long for column 'htmldata' 

原因分析:根据报错信息查看表该表的创建语句,显示该htmldata列为binary(1)类型,手动查询该列信息报错,提示DETAIL: (GBA-01EX-700) Gbase general error: should be ‘this->len <= len’,初步判定是该列数据异常导致

处理过程:1、取消异常表的分布任务

                           gbase>cancel rebalance table  tbname;

                         2、将该列数据进行转存

                        # gbase> alter table test2 add b varchar(200); 

                           gbase> update test2 set b=htmldata;

                           gbase> alter table test2 drop htmldata;

                           gbase> ALTER TABLE test2 CHANGE  b htmldata  varchar(200);

                     3、从新对该表进行数据重分布。

评论

登录后才可以发表评论
用户头像
levvel发表于 6个月前
感谢分享