[#36671] YSQL: Fix testCancelledFirstListenLeavesOnePoller, whose LISTEN was never cancelled #36752
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 142 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.297
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #36752"
general
weight: 0.35
arpang
Summary
TestPgListenNotify#testCancelledFirstListenLeavesOnePoller, added in #35664, fails on every lane (#36671) because its first LISTEN is never cancelled. The test cancelled that LISTEN withstatement_timeoutwhile it waited for its notifications poller to initialize. That wait happens at commit, inPreCommit_Notify, andfinish_xact_commanddisables the statement timeout before committing.The test now cancels the LISTEN with
pg_cancel_backendfrom a second session on the same node. It does this once a poller has started after the LISTEN began, by which point the LISTEN has published the poller's handle. The rest of the test is unchanged. This is a test-only change.Test plan
./yb_build.sh --java-test 'org.yb.pgsql.TestPgListenNotify#testCancelledFirstListenLeavesOnePoller' -n 10./yb_build.sh fastdebug --gcc15 YB_TEST_YB_CONTROLLER=0 YB_ENABLE_YSQL_CONN_MGR_IN_JAVA_TESTS=true --java-test 'org.yb.pgsql.TestPgListenNotify#testCancelledFirstListenLeavesOnePoller' -n 10(the lane from #36671, with connection manager)Jenkins: test regex: .testCancelledFirstListenLeavesOnePoller.