Skip to content

Fix Cannot start clickhouse-server in stress tests caused by 05315_mongodb_connection_options_secrets - #123632

Merged
alexey-milovidov merged 1 commit into
masterfrom
fix-05315-mongodb-named-collection-cleanup
Oct 3, 2026
Merged

alexey-milovidov merged 1 commit into
masterfrom
fix-05315-mongodb-named-collection-cleanup

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Related: #123240
Related: #121519

05315_mongodb_connection_options_secrets dropped its named collections while the tables e06 and e08 (created with ENGINE = MongoDB(<named collection>, ...)) still existed. In the stress test, the database outlives the test. After the server restarts, these tables cannot be attached (NAMED_COLLECTION_DOESNT_EXIST), so the server fails all start attempts: Cannot start clickhouse-server.

The test now drops the objects that use the named collections before dropping the collections. Checked locally: the test passes, and the server restarts with the test database still in place.

The underlying server behavior is tracked in #121519: DROP NAMED COLLECTION succeeds while a table still depends on the collection.

CI reports:

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fix the stress test failing with Cannot start clickhouse-server after 05315_mongodb_connection_options_secrets.

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/123632]

Version info

  • Merged into: 26.10.1.1424-master (included in 26.10 and later)

@clickhouse-gh

clickhouse-gh Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [ce46692]

Summary: ✅


AI Review

Summary

This PR fixes the cleanup path in tests/queries/0_stateless/05315_mongodb_connection_options_secrets.sh so the objects that still reference ${NC} or ${NC2} are dropped before the named collections themselves. I checked the full script, the current diff, and the existing PR discussion: the new cleanup covers every object in this test that uses those named collections, it does not change the expected output surface, and I do not see a remaining correctness or CI-risk issue in the current patch.

Final Verdict

Status: ✅ Approve

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Oct 3, 2026
Merged via the queue into master with commit 45d7c0e Oct 3, 2026
149 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-05315-mongodb-named-collection-cleanup branch October 3, 2026 18:59
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 3, 2026
@groeneai groeneai mentioned this pull request Oct 5, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocker This issue / pr blocks a new release comp-foreign-db Connectivity to external databases (ODBC/JDBC, MySQL, PostgreSQL, etc.). pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants