Repository navigation
Fix flaky resource_queue_terminate, gp_relsizes_stats, ic and memoize tests - #2234
Open
chenjinbao1989 wants to merge 7 commits into
Open
chenjinbao1989 wants to merge 7 commits into
chenjinbao1989 wants to merge 7 commits into
Conversation
chenjinbao1989
force-pushed
the
test_flaky2
branch
from
November 3, 2026 21:18
346d2d3 to
0d36af0
Compare
fairyfar
self-requested a review
November 4, 2026 08:01
Collaborator
|
LGTM |
fairyfar
approved these changes
Nov 4, 2026
chenjinbao1989
force-pushed
the
test_flaky2
branch
from
November 5, 2026 15:43
94538b8 to
d63f814
Compare
lss602726449
approved these changes
Nov 6, 2026
chenjinbao1989
force-pushed
the
test_flaky2
branch
2 times, most recently
from
November 9, 2026 16:36
5e8e863 to
681b6ea
Compare
The test checked only once that the mirror of content 0 was in sync before stopping the primary. After the large insert into seg0 the mirror may still be catching up (mode 'n'). FTS does not promote a mirror that is not in sync, so content 0 was left without a primary and the rest of the test failed. Wait for content 0 to be synchronized before stopping the primary.
When verify_cpu_usage() fails, the diff only shows 'f'. The samples normally read 10.0-10.2 for a 10% cap, so a miss of the +/-3 tolerance means something went systematically wrong, not sampling noise. Emit a warning with the average, the expected range and the raw samples when the check fails, so the next failure shows which way it missed. The output of a passing run is unchanged.
Apply the fix that vacuum_progress_row got earlier to the mirror-down case of vacuum_progress_column. FTS releases the syncrep wait as soon as it has marked seg1's mirror down, but only bumps the FTS version at the end of the probe cycle. If the coordinator starts the post-cleanup phase before that, it sees the old version and reuses the old vacuum workers, so vacuum_worker_changed is never hit and the test waits ten minutes for it to trigger. Hold the coordinator at vacuum_rel_finished_one_relation after the compact phase, and release it only after a full FTS probe cycle. Also wait for the mirrors to be in sync first, since the worker only changes if the compact phase commit blocks on syncrep.
Since 0b2d681 the mirror-down case reliably gets a new vacuum worker for the post-cleanup phase. That worker starts from fresh progress counters, so num_dead_tuples from the compact phase is still zero as the test expects, but it now reports the work post-cleanup itself did: two index vacuums and the truncated segfile blocks. The old expected output had all zeros, which only matched when the phase did nothing. vacuum_progress_row was updated the same way.
pg_basebackup() returns as soon as the client is done, but the walsender that served the backup may still be exiting. The following check of pg_stat_replication then sometimes saw an extra "pg_basebackup | backup" row. Wait until that walsender is gone before checking. Apply the same change to the isolation2 and singlenode_isolation2 copies of the test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The throttled SELECT sometimes finished at once instead of waiting for syncrep. The test runs with autovacuum on, and an auto-vacuum or auto-analyze that reads select_throttle first sets the hint bits, so the SELECT generates no WAL and has nothing to be throttled on. Disable autovacuum on both test tables. Also wait for the wal_sender_loop fault to trigger before running the throttled SELECT. The suspend only takes effect the next time the walsender goes round its loop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chenjinbao1989
force-pushed
the
test_flaky2
branch
from
November 10, 2026 02:12
681b6ea to
e8ce7b6
Compare
Collaborator
|
The multiple commits are all modifications to the CI test. It is recommended to rebase them into one commit and change the title of commit message to "CI: ...". It is not recommended to use "Fix" in the title. Generally, "Fix" is used to fix bug for codes. Just MY OPINION. Do others agree? @leborchuk @my-ship-it @lss602726449 |
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.
resource_queue_terminate (isolation2):
gp_relsizes_stats:
ic (regress and pax):
memoize:
Fixes #ISSUE_Number
What does this PR do?
Type of Change
Breaking Changes
Test Plan
make installcheckmake -C src/test installcheck-cbdb-parallelImpact
Performance:
User-facing changes:
Dependencies:
Checklist
Additional Context
CI Skip Instructions