【问题详细描述】
spark postgresql 下,并行执行大量的删除、插入操作报 errorCode:-104
比如:
{
delete from testcs.testcl where id = '1';
insert into testcl select a,b,c from testcl_source where id = '1';
}
{
delete from testcs.testcl where id = '2';
insert into testcl select a,b,c from testcl_source where id = '3';
}
数据量才百万而已,多个并行就容易报错。
【版本信息】
SequoiaDB shell version: 1.12.5
Release: 22138
【解决办法】
-104:Node is not primary,说明当前组内无主节点,此时对表做插入操作则会报-104错误。
请检查所有节点是否健康运行,及数据组是否存在主节点。
【参考链接】
错误码
常见错误处理指南