From 8ce120631ffb0f2ec6d9c6b6c996bf67ed13dcc7 Mon Sep 17 00:00:00 2001 From: wangbo Date: Fri, 31 Jul 2026 04:07:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(acceptance):=20=E4=BB=85=E5=9C=A8=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E6=B1=A0=E6=8C=81=E7=BB=AD=E6=BB=A1=E8=BD=BD=E6=97=B6?= =?UTF-8?q?=E9=98=BB=E6=96=AD=E9=AA=8C=E6=94=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 验收压力采样仍记录连接获取取消计数,但单次上下文取消不再被误判为池饱和。继续对连续六个采样周期满池、租约错误、数据库连接、节点内存和 Pod RSS 执行硬门禁。\n\n验证:bash -n、ShellCheck、真实 P24 压力报告回归。 --- scripts/cluster/run-production-acceptance.sh | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/scripts/cluster/run-production-acceptance.sh b/scripts/cluster/run-production-acceptance.sh index 5db5740..82c1a98 100755 --- a/scripts/cluster/run-production-acceptance.sh +++ b/scripts/cluster/run-production-acceptance.sh @@ -1233,17 +1233,7 @@ verify_pressure_report() { NR == 1 { next } { samples++ - if (samples == 1) { - first_empty=$12 - first_canceled=$13 - first_lease_failure=$14 - first_lease_lost=$15 - } - last_empty=$12 - last_canceled=$13 - last_lease_failure=$14 - last_lease_lost=$15 - if ($13 > first_canceled || $14 > first_lease_failure || $15 > first_lease_lost) { + if ($14 > 0 || $15 > 0) { failed=1 } if ($9 >= $10 && $11 == 0) { @@ -1257,12 +1247,6 @@ verify_pressure_report() { } } END { - if (last_canceled > first_canceled || - last_lease_failure > first_lease_failure || - last_lease_lost > first_lease_lost || - (last_empty > first_empty && saturated >= 6)) { - failed=1 - } exit !(samples > 0 && failed == 0) } ' slots="$expected_slots" "$report_path"