fix(acceptance): 仅在连接池持续满载时阻断验收
验收压力采样仍记录连接获取取消计数,但单次上下文取消不再被误判为池饱和。继续对连续六个采样周期满池、租约错误、数据库连接、节点内存和 Pod RSS 执行硬门禁。\n\n验证:bash -n、ShellCheck、真实 P24 压力报告回归。
This commit is contained in:
@@ -1233,17 +1233,7 @@ verify_pressure_report() {
|
|||||||
NR == 1 { next }
|
NR == 1 { next }
|
||||||
{
|
{
|
||||||
samples++
|
samples++
|
||||||
if (samples == 1) {
|
if ($14 > 0 || $15 > 0) {
|
||||||
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) {
|
|
||||||
failed=1
|
failed=1
|
||||||
}
|
}
|
||||||
if ($9 >= $10 && $11 == 0) {
|
if ($9 >= $10 && $11 == 0) {
|
||||||
@@ -1257,12 +1247,6 @@ verify_pressure_report() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
END {
|
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)
|
exit !(samples > 0 && failed == 0)
|
||||||
}
|
}
|
||||||
' slots="$expected_slots" "$report_path"
|
' slots="$expected_slots" "$report_path"
|
||||||
|
|||||||
Reference in New Issue
Block a user