Repository navigation
Ignore benign PostgreSQL background-reconnection errors in the upgrade check - #108998
Merged
alexey-milovidov merged 1 commit intoJul 1, 2026
Merged
Conversation
…e check
The upgrade check (`tests/docker_scripts/upgrade_runner.sh`) scans the
post-upgrade server log for `<Error>` lines and fails on anything not in its
allow-list. It intermittently fails with:
<Error> PostgreSQLConnectionPool: Connection error: connection to server at "192.0.2.1", port 5432 failed: timeout expired
<Error> void DB::DatabasePostgreSQL::removeOutdatedTables(): Code: 614. DB::Exception: Try 2. Connection to `192.0.2.1:5432` failed ...
These come from a leftover `DatabasePostgreSQL` engine created by
`04210_show_remote_databases_in_system_tables`, which points at the RFC 5737
documentation IP `192.0.2.1` (intentionally unreachable). The stress phase runs
the stateless tests under a global time limit and can interrupt that test
between its `CREATE DATABASE ... ENGINE = PostgreSQL('192.0.2.1:5432', ...)` and
the final `DROP DATABASE`, leaving the database in metadata. After the upgrade
restart, `DatabasePostgreSQL::startup` unconditionally activates the
`PostgreSQLCleanerTask`, whose `removeOutdatedTables` tries to connect and the
connection pool logs `<Error>` for each retry.
This is the same class of benign background-reconnection-after-restart noise
already allow-listed for Kafka (`rdk:FAIL`/`StorageKafka2`), Azure DNS, and
NuRaft. Add two regex filters in the secondary pipe that require the PostgreSQL
connection-pool / cleaner-task context together with the connection-failure
symptom, so real PostgreSQL regressions (auth, protocol, query errors) are not
masked.
CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=108939&sha=27734f50667a6b77ca59b768e605b4d843acde3c&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29
Related: #108939
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [8b3cf74] Summary: ✅ AI ReviewSummaryThis PR adds upgrade-log allow-list entries for benign Findings
Final VerdictStatus: Minimum required action: narrow the two |
1 task done
1 task done
This was referenced Jul 1, 2026
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…k-postgresql-bg-reconnect Ignore benign PostgreSQL background-reconnection errors in the upgrade check
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.
Related: #108939
What & why
The upgrade check (
tests/docker_scripts/upgrade_runner.sh) scans the post-upgrade server log for<Error>lines and fails on anything not in its allow-list. It intermittently fails with:These come from a leftover
DatabasePostgreSQLengine created by04210_show_remote_databases_in_system_tables, which points at the RFC 5737 documentation IP192.0.2.1(intentionally unreachable). The stress phase runs the stateless tests under a global time limit and can interrupt that test between itsCREATE DATABASE ... ENGINE = PostgreSQL('192.0.2.1:5432', ...)and the finalDROP DATABASE, leaving the database in metadata. After the upgrade restart,DatabasePostgreSQL::startupunconditionally activates thePostgreSQLCleanerTask, whoseremoveOutdatedTablestries to connect and the connection pool logs<Error>for each retry.This
Error message in clickhouse-server.logsubcheck has tripped on ~89 distinct PRs in the last 7 days; it is environmental, not a compatibility regression.Fix
This is the same class of benign background-reconnection-after-restart noise already allow-listed for Kafka (
rdk:FAIL/StorageKafka2), Azure DNS, and NuRaft. Two regex filters are added to the secondary pipe, each requiring the PostgreSQL connection-pool / cleaner-task context together with the connection-failure symptom, so real PostgreSQL regressions (auth, protocol, query errors) are not masked:Verified locally that both benign lines are suppressed while a real PostgreSQL auth/query error and an unrelated
DatabasePostgreSQLerror still surface.CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=108939&sha=27734f50667a6b77ca59b768e605b4d843acde3c&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not for changelog.
Documentation entry for user-facing changes
Not applicable — CI test infrastructure only.
Version info
26.7.1.317(included in26.7and later)