GBase 8a扩容完成后refreshnodedatamap drop报错:Can not drop nodedatamap ,Some table are using it.

refreshnodedatamap drop报错

本文介绍在GBase 8a数据库集群扩容或缩容操作时,删除老的数据分布策略refreshnodedatamap drop时报错,Can not drop nodedatamap ,Some table are using it. 的处理方案,将使用中的表手工重分布后可以解决。

报错样例

原因

有表还在用指定的ID, 可以通过如下SQL查询到

select * from gbase.table_distribution where data_distribution_id=XXXX

更多信息,请参考

GBase 8a 扩容操作意外处理方案

解决方案

参考如上文章的内容,手工进行重分布使用中的表即可。

 rebalance table 库名.表名

其中库名和表名,来自于前面查看使用老的Id的SQL命令的DBName和TbName