鲲鹏社区首页
中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

Greenplum运行SQL时提示Unexpected internal error (tuplestorenew.c:407)

问题现象描述

使能KAEzip之前,Greenplum运行SQL时提示“Unexpected internal error (tuplestorenew.c:407)”、“HINT: Process x will wait for gpdebuglinger=120 seconds before termination”和“Note that its locks and other resources will not be released until then”。

关键过程、根本原因分析

可能有以下原因:

  • 资源不足,需要检查系统资源(如内存、CPU、磁盘IO等),并根据需要进行调整。
  • 外部因素干扰,比如网络问题,需要优化网络。

结论、解决方案及效果

  • 如果是资源不足原因导致,请使用如下方案。
    1. 尝试同时关闭Greenplum的“resource_scheduler”“gp_resqueue_priority”参数。
      1
      2
      gpconfig -c resource_scheduler -v off
      gpconfig -c gp_resqueue_priority -v off
      
    2. 再次运行SQL。
    3. 如果还是没有解决问题,尝试打开Greenplum的死锁检测参数“gp_enable_global_deadlock_detector”
      1
      gpconfig -c gp_enable_global_deadlock_detector -v on
      
    4. 再次运行SQL。
  • 如果是网络问题原因导致,请使用如下方案。
    1. 使用速度比较大的网卡,一般需要25000MB/s或以上。
    2. 再次运行SQL。