Stabilize single-node remote command regression output - #8752
Open
ibrahim halatci (ihalatci) with Copilot wants to merge 3 commits into
Open
Stabilize single-node remote command regression output#8752ibrahim halatci (ihalatci) with Copilot wants to merge 3 commits into
ibrahim halatci (ihalatci) with Copilot wants to merge 3 commits into
Conversation
Co-authored-by: ihalatci <10450368+ihalatci@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix nightly cassert failures from 2026-08-12
Stabilize single-node remote command regression output
Aug 12, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8752 +/- ##
=======================================
Coverage 88.70% 88.70%
=======================================
Files 289 289
Lines 64888 64889 +1
Branches 8181 8180 -1
=======================================
+ Hits 57558 57559 +1
- Misses 4965 4967 +2
+ Partials 2365 2363 -2 🚀 New features to boost your workflow:
|
This was referenced Aug 20, 2026
ibrahim halatci (ihalatci)
marked this pull request as ready for review
August 22, 2026 08:05
ibrahim halatci (ihalatci)
enabled auto-merge (squash)
August 22, 2026 08:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIPTION: Stabilize single-node remote command regression output
single_node_enterpriseasserts on the exact set ofNOTICE: issuing ...lines produced by a6-shard multi-shard SELECT. That output is racy by design.
Why
CalculateNewConnectionCount()(adaptive_executor.c:2734) decides on the executor's first cycle toopen 3 additional connections beyond the first:
maxNewConnectionCount = targetPoolSize - initiatedConnectionCount(:2772)newConnectionsForReadyTasks = Max(0, readyTaskCount - usableConnectionCount)(:2781):2784is insideif (ExecutorSlowStartInterval != SLOW_START_DISABLED), andthe regression harness sets
citus.executor_slow_start_interval = 0ms(
pg_regress_multi.pl:641), so it is skippedMin(4, 3) = 3at:2794:2843cannot fire on the first cycleSo 3 extra connections are started on every run, including every green one. The decision is
deterministic; what is not deterministic is whether any of those connections completes TCP connect
plus authentication before the 6 very small sequential queries have already drained. When one wins,
its
BEGINis emitted into the notice stream and the diff appears.Because there is exactly one last task, a winning connection can insert its
BEGINin exactly oneplace — which is why every observed failure diff is byte-identical. That is the signature of this
race, not evidence against one.
Fix
Pin
citus.max_adaptive_executor_pool_sizeto 1 for the duration of the block, so no extraconnection is ever started and the notice stream is fully determined. The
SET LOCALis placedbefore
citus.log_remote_commandsis enabled, so it emits no notice of its own.+2/−0, zero deletions. The zero-deletion count is the load-bearing verification: if pinning the
pool had altered execution in any way, existing
NOTICE: issuing ...lines would have had to change.They did not. No baseline was re-recorded to make this pass.
The test occupies its own
test:line in bothenterprise_minimal_scheduleandenterprise_schedule, and there is no parallel-schedule variant, so only external load can win therace — consistent with it being seen on shared CI runners and rarely locally.
History
This has been failing intermittently for two years. #7671 reports it with the identical hunk header
@@ -465,28 +465,30 @@, and #8348 lists it as item 2 of the unstable-test tracker.Fixes #7671
Refs #8348 (unstable test list, item 2)
Refs #8776