Skip to content

Update warning messages when approaching guardrails limits: show current and throw values - #90438

Merged
fm4v merged 13 commits into
masterfrom
update-limits-warning-message
Nov 24, 2025
Merged

fm4v merged 13 commits into
masterfrom
update-limits-warning-message

Conversation

@fm4v

@fm4v fm4v commented Nov 19, 2025 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

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

Update warning messages when approaching guardrails limits: show current and throw values

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@clickhouse-gh

clickhouse-gh Bot commented Nov 19, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [a8ebe14]

Summary: ❌

job_name test_name status info comment
Integration tests (arm_binary, distributed plan, 1/4) failure
test_restore_db_replica/test.py::test_restore_db_replica_with_diffrent_table_metadata[restore node2-node1] FAIL cidb, flaky
test_acme_tls/test_multi_node.py::test_coordinated_acme_authorization FAIL cidb
Integration tests (arm_binary, distributed plan, 4/4) failure
test_refreshable_mat_view_replicated/test.py::test_real_wait_refresh[to_clause0-True-False] FAIL cidb, flaky
Stress test (arm_asan, s3) failure
Server died FAIL cidb
Hung check failed, possible deadlock found (see hung_check.log) FAIL cidb
Killed by signal (in clickhouse-server.log) FAIL cidb
Fatal message in clickhouse-server.log (see fatal_messages.txt) FAIL cidb
Killed by signal (output files) FAIL cidb
BuzzHouse (amd_debug) failure
Logical error: 'Inconsistent AST formatting: the query: FAIL cidb
BuzzHouse (arm_asan) failure
Received signal 17 FAIL cidb

@clickhouse-gh clickhouse-gh Bot added the pr-improvement Pull request with some product improvements label Nov 19, 2025
@fm4v
fm4v force-pushed the update-limits-warning-message branch from 0039b80 to 14be8ab Compare November 20, 2025 09:22
@fm4v

fm4v commented Nov 21, 2025

Copy link
Copy Markdown
Member Author

Now I should fix a bug...

test_table_db_num_limit/test.py::test_named_collection_limit[1-3]	0.00
File: test_table_db_num_limit/test.py:241 - in test_named_collection_limit
    node.query(f"CREATE NAMED COLLECTION nc_{i} AS key=1")
File: helpers/cluster.py:4388 - in query
    return self.client.query(
File: helpers/client.py:40 - in wrap
    return func(self, *args, **kwargs)
File: helpers/client.py:80 - in query
    ).get_answer()
File: helpers/client.py:248 - in get_answer
    raise QueryRuntimeException(
E   helpers.client.QueryRuntimeException: Client failed! Return code: 246, stderr: Received exception from server (version 25.11.1):
E   Code: 758. DB::Exception: Received from 172.16.1.10:9000. DB::Exception: Too many named collections. The limit (server configuration parameter `max_named_collection_num_to_throw`) is set to 10, the current number is 18446744073709551604. Stack trace:
E   
E   0. ./contrib/llvm-project/libcxx/include/__exception/exception.h:113: Poco::Exception::Exception(String const&, int) @ 0x000000004ed320f1
E   1. ./ci/tmp/build/./src/Common/Exception.cpp:129: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000002489dbb3
E   2. DB::Exception::Exception(String&&, int, String, bool) @ 0x000000000e8f4937
E   3. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000e8f3a67
E   4. DB::Exception::Exception<unsigned long&, unsigned long&>(int, FormatStringHelperImpl<std::type_identity<unsigned long&>::type, std::type_identity<unsigned long&>::type>, unsigned long&, unsigned long&) @ 0x00000000119df03e
E   5. ./ci/tmp/build/./src/Interpreters/InterpreterCreateNamedCollectionQuery.cpp:42: DB::InterpreterCreateNamedCollectionQuery::execute() @ 0x0000000035e75e9a
E   6. ./ci/tmp/build/./src/Interpreters/executeQuery.cpp:1703: DB::executeQueryImpl(char const*, char const*, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum, std::unique_ptr<DB::ReadBuffer, std::default_delete<DB::ReadBuffer>>&, std::shared_ptr<DB::IAST>&, std::shared_ptr<DB::ImplicitTransactionControlExecutor>, std::function<void ()>, DB::QueryResultDetails&) @ 0x0000000035d54a32
E   7. ./ci/tmp/build/./src/Interpreters/executeQuery.cpp:1925: DB::executeQuery(String const&, std::shared_ptr<DB::Context>, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000035d4ad83
E   8. ./ci/tmp/build/./src/Server/TCPHandler.cpp:765: DB::TCPHandler::runImpl() @ 0x00000000406c8684
E   9. ./ci/tmp/build/./src/Server/TCPHandler.cpp:2861: DB::TCPHandler::run() @ 0x000000004070b95c
E   10. ./ci/tmp/build/./base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x000000004ef2c8ef
E   11. ./ci/tmp/build/./base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000004ef2d617
E   12. ./ci/tmp/build/./base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x000000004ee2346b
E   13. ./base/poco/Foundation/src/Thread_POSIX.cpp:341: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000004ee1cd08
E   14. asan_thread_start(void*) @ 0x000000000e8a0127
E   15. ? @ 0x0000000000094ac3
E   16. ? @ 0x00000000001268c0
E   . (TOO_MANY_NAMED_COLLECTIONS)
E   (query: CREATE NAMED COLLECTION nc_0 AS key=1)

@fm4v

fm4v commented Nov 22, 2025 •

Copy link
Copy Markdown
Member Author

I'm going to ignore this error for now and ask someone to fix it in a separate PR. (FIXED in this pr)
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=90438&sha=7a44a97dbff833e4e962a39ce7cc64a2ae363ff3&name_0=PR&name_1=Fast%20test

2025-11-22 11:14:20 Code: 49. DB::Exception: Received from localhost:9000. DB::Exception: CurrentMetrics::NamedCollection <= 0 when trying to drop a named collection (0). (LOGICAL_ERROR)
2025-11-22 11:14:20 (query: DROP NAMED COLLECTION IF EXISTS 02883_named_collections_override_test_klme0mqc_collection1;)

Also reproduced by this test

def test_named_collection_limit(started_cluster):

@fm4v
fm4v added this pull request to the merge queue Nov 24, 2025
Merged via the queue into master with commit 9b7de14 Nov 24, 2025
@fm4v
fm4v deleted the update-limits-warning-message branch November 24, 2025 14:03
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Nov 24, 2025
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 24, 2025
robot-clickhouse added a commit that referenced this pull request Nov 24, 2025
…ardrails limits: show current and throw values
robot-clickhouse added a commit that referenced this pull request Nov 24, 2025
…ardrails limits: show current and throw values
clickhouse-gh Bot added a commit that referenced this pull request Nov 24, 2025
Backport #90438 to 25.10: Update warning messages when approaching guardrails limits: show current and throw values
clickhouse-gh Bot added a commit that referenced this pull request Nov 24, 2025
Backport #90438 to 25.11: Update warning messages when approaching guardrails limits: show current and throw values
robot-clickhouse added a commit that referenced this pull request Nov 24, 2025
…rdrails limits: show current and throw values
robot-clickhouse added a commit that referenced this pull request Nov 24, 2025
…rdrails limits: show current and throw values
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Nov 24, 2025
clickhouse-gh Bot added a commit that referenced this pull request Nov 25, 2025
Backport #90438 to 25.9: Update warning messages when approaching guardrails limits: show current and throw values
clickhouse-gh Bot added a commit that referenced this pull request Nov 25, 2025
Backport #90438 to 25.8: Update warning messages when approaching guardrails limits: show current and throw values
@fm4v fm4v self-assigned this Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-improvement Pull request with some product improvements pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR 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.

5 participants