---
title: Greenplum运行SQL时提示Unexpected internal error (tuplestorenew.c:407)
description: "使能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”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdbs/ecosystemEnable/Greenplum/kunpenggreenplum_kae_03_0025.html
sourcePath: /source/zh/kunpengdbs/ecosystemEnable/Greenplum/kunpenggreenplum_kae_03_0025.html
indexId: 60ac889706644717de988dcfd5e1ba98e22b92a88d82fe2938f9d1d03ddf457881
---
# 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。
