Skip to content

More insistent compression in StorageMemory - #72770

Merged
nickitat merged 1 commit into
masterfrom
more_insistent_compress_in_memory_eng
Dec 4, 2024
Merged

nickitat merged 1 commit into
masterfrom
more_insistent_compress_in_memory_eng

Conversation

@nickitat

@nickitat nickitat commented Dec 3, 2024

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Dec 3, 2024
@robot-clickhouse-ci-2

robot-clickhouse-ci-2 commented Dec 3, 2024 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit a71c000 with description of existing statuses. It's updated for the latest CI running

❌ Click here to open a full report in a separate page

Check nameDescriptionStatus
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc❌ failure
Successful checks
Check nameDescriptionStatus
AST fuzzerRuns randomly generated queries to catch program errors. The build type is optionally given in parenthesis. If it fails, ask a maintainer for help✅ success
BuildsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
ClickBenchRuns [ClickBench](https://github.com/ClickHouse/ClickBench/) with instant-attach table✅ success
Compatibility checkChecks that clickhouse binary runs on distributions with old libc versions. If it fails, ask a maintainer for help✅ success
Docker keeper imageThe check to build and optionally push the mentioned image to docker hub✅ success
Docker server imageThe check to build and optionally push the mentioned image to docker hub✅ success
Docs checkBuilds and tests the documentation✅ success
Fast testNormally this is the first check that is ran for a PR. It builds ClickHouse and runs most of stateless functional tests, omitting some. If it fails, further checks are not started until it is fixed. Look at the report to see which tests fail, then reproduce the failure locally as described here✅ success
Flaky testsChecks if new added or modified tests are flaky by running them repeatedly, in parallel, with more randomization. Functional tests are run 100 times with address sanitizer, and additional randomization of thread scheduling. Integration tests are run up to 10 times. If at least once a new test has failed, or was too long, this check will be red. We don't allow flaky tests, read the doc✅ success
Install packagesChecks that the built packages are installable in a clear environment✅ success
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests✅ success
Performance ComparisonMeasure changes in query performance. The performance test report is described in detail here. In square brackets are the optional part/total tests✅ success
Stateful testsRuns stateful functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc✅ success
Stress testRuns stateless functional tests concurrently from several clients to detect concurrency-related errors✅ success
Style checkRuns a set of checks to keep the code style clean. If some of tests failed, see the related log from the report✅ success
Unit testsRuns the unit tests for different release types✅ success
Upgrade checkRuns stress tests on server version from last release and then tries to upgrade it to the version from the PR. It checks if the new server can successfully startup without any errors, crashes or sanitizer asserts✅ success

@yariks5s yariks5s self-assigned this Dec 3, 2024
- `max_rows_to_keep` — Maximum rows to keep within memory table where oldest rows are deleted on each insertion (i.e circular buffer). Max rows can exceed the stated limit if the oldest batch of rows to remove falls under the `min_rows_to_keep` limit when adding a large block.
- Default value: `0`
- `compress` - Whether to compress data in memory.
- Default value: `false`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is it bool and not codec?

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.

what i can say, because it was implemented this way. prob it was seen as a bit of overkill and given that Memory is not a real storage but just an in-memory buffer maybe it really is.

@nickitat

nickitat commented Dec 4, 2024

Copy link
Copy Markdown
Member Author

Stateless tests (debug) [2/2] - #72794

@nickitat
nickitat added this pull request to the merge queue Dec 4, 2024
Merged via the queue into master with commit b0454ac Dec 4, 2024
@nickitat
nickitat deleted the more_insistent_compress_in_memory_eng branch December 4, 2024 13:18
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Dec 4, 2024
@Algunenano

Copy link
Copy Markdown
Member

Many crashes in master that look related: https://s3.amazonaws.com/clickhouse-test-reports/0/1ca206a09b3d7101741aa0ca6b4cce7c7b899042/stress_test__debug_.html

 [ 6668 ] {} <Fatal> BaseDaemon: ########## Short fault info ############
 [ 6668 ] {} <Fatal> BaseDaemon: (version 24.12.1.927 (official build), build id: B9707C05DFCC86ED714E8589B9FF5C265EE40AF2, git hash: 1ca206a09b3d7101741aa0ca6b4cce7c7b899042, architecture: x86_64) (from thread 3841) Received signal 11
 [ 6668 ] {} <Fatal> BaseDaemon: Signal description: Segmentation fault
 [ 6668 ] {} <Fatal> BaseDaemon: Address: 0x8. Access: read. Address not mapped to object.
 [ 6668 ] {} <Fatal> BaseDaemon: Stack trace: 0x000000000cd0ca68 0x000000000cf66554 0x00007f91ee5e8520 0x00000000133ae407 0x0000000012b40ee7 0x0000000012a7ffc0 0x00000000119bf6e2 0x0000000014197a33 0x00000000141ae979 0x0000000017b03c47 0x0000000017b0411e 0x0000000017aac412 0x0000000017aaa103 0x00007
 [ 6668 ] {} <Fatal> BaseDaemon: ########################################
 [ 6668 ] {} <Fatal> BaseDaemon: (version 24.12.1.927 (official build), build id: B9707C05DFCC86ED714E8589B9FF5C265EE40AF2, git hash: 1ca206a09b3d7101741aa0ca6b4cce7c7b899042) (from thread 3841) (query_id: 4f70f7ae-3e56-4280-9d0e-73da65aa6558) (query: select \'create table test (x \' || repeat(\'Array(
 [ 6668 ] {} <Fatal> BaseDaemon: Address: 0x8. Access: read. Address not mapped to object.
 [ 6668 ] {} <Fatal> BaseDaemon: Stack trace: 0x000000000cd0ca68 0x000000000cf66554 0x00007f91ee5e8520 0x00000000133ae407 0x0000000012b40ee7 0x0000000012a7ffc0 0x00000000119bf6e2 0x0000000014197a33 0x00000000141ae979 0x0000000017b03c47 0x0000000017b0411e 0x0000000017aac412 0x0000000017aaa103 0x00007
 [ 6668 ] {} <Fatal> BaseDaemon: 0.0. inlined from /build/src/Common/StackTrace.cpp:380: StackTrace::tryCapture()
 [ 6668 ] {} <Fatal> BaseDaemon: 0. /build/src/Common/StackTrace.cpp:349: StackTrace::StackTrace(ucontext_t const&) @ 0x000000000cd0ca68
 [ 6668 ] {} <Fatal> BaseDaemon: 1. /build/src/Common/SignalHandlers.cpp:100: signalHandler(int, siginfo_t*, void*) @ 0x000000000cf66554
 [ 6668 ] {} <Fatal> BaseDaemon: 2. ? @ 0x00007f91ee5e8520
 [ 6668 ] {} <Fatal> BaseDaemon: 3.0. inlined from /build/src/IO/BufferWithOwnMemory.h:76: DB::Memory<Allocator<false, false>>::size() const
 [ 6668 ] {} <Fatal> BaseDaemon: 3. /build/src/Columns/ColumnString.cpp:649: DB::ColumnString::compress(bool) const @ 0x00000000133ae407
 [ 6668 ] {} <Fatal> BaseDaemon: 4. /build/src/Interpreters/Cache/QueryCache.cpp:472: DB::QueryCache::Writer::finalizeWrite() @ 0x0000000012b40ee7
 [ 6668 ] {} <Fatal> BaseDaemon: 5.0. inlined from /build/src/Interpreters/executeQuery.cpp:1482: operator()
 [ 6668 ] {} <Fatal> BaseDaemon: 5.1. inlined from /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: ?
 [ 6668 ] {} <Fatal> BaseDaemon: 5.2. inlined from /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:479: ?
 [ 6668 ] {} <Fatal> BaseDaemon: 5.3. inlined from /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: ?
 [ 6668 ] {} <Fatal> BaseDaemon: 5. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: ? @ 0x0000000012a7ffc0
 [ 6668 ] {} <Fatal> BaseDaemon: 6.0. inlined from /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: ?
 [ 6668 ] {} <Fatal> BaseDaemon: 6.1. inlined from /build/contrib/llvm-project/libcxx/include/__functional/function.h:1197: ?
 [ 6668 ] {} <Fatal> BaseDaemon: 6. /build/src/QueryPipeline/BlockIO.cpp:52: DB::BlockIO::onFinish() @ 0x00000000119bf6e2
 [ 6668 ] {} <Fatal> BaseDaemon: 7. /build/src/Server/TCPHandler.cpp:0: DB::TCPHandler::runImpl() @ 0x0000000014197a33
 [ 6668 ] {} <Fatal> BaseDaemon: 8. /build/src/Server/TCPHandler.cpp:2598: DB::TCPHandler::run() @ 0x00000000141ae979
 [ 6668 ] {} <Fatal> BaseDaemon: 9. /build/base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000017b03c47
 [ 6668 ] {} <Fatal> BaseDaemon: 10. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000017b0411e
 [ 6668 ] {} <Fatal> BaseDaemon: 11. /build/base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000017aac412
 [ 6668 ] {} <Fatal> BaseDaemon: 12. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000017aaa103
 [ 6668 ] {} <Fatal> BaseDaemon: 13. ? @ 0x00007f91ee63aac3
 [ 6668 ] {} <Fatal> BaseDaemon: 14. ? @ 0x00007f91ee6cc850
 [ 6668 ] {} <Fatal> BaseDaemon: Integrity check of the executable successfully passed (checksum: D8F0610B3444A59A2BDCDD66FFA1E32B)
 [ 6668 ] {} <Fatal> BaseDaemon: Report this error to https://github.com/ClickHouse/ClickHouse/issues
 [ 6668 ] {} <Fatal> BaseDaemon: Changed settings: min_compress_block_size = 1092287, max_compress_block_size = 513261, max_block_size = 42469, min_external_table_block_size_bytes = 0, max_joined_block_size_rows = 18001, max_insert_threads = 3, max_threads = 1, max_parsing_threads = 10, max_read_buf
 [ 3830 ] {} <Fatal> Application: Child process was terminated by signal 11.
 [ 6668 ] {} <Fatal> BaseDaemon: ########## Short fault info ############
 [ 6668 ] {} <Fatal> BaseDaemon: (version 24.12.1.927 (official build), build id: B9707C05DFCC86ED714E8589B9FF5C265EE40AF2, git hash: 1ca206a09b3d7101741aa0ca6b4cce7c7b899042, architecture: x86_64) (from thread 3841) Received signal 11
 [ 6668 ] {} <Fatal> BaseDaemon: Signal description: Segmentation fault
 [ 6668 ] {} <Fatal> BaseDaemon: Address: 0x8. Access: read. Address not mapped to object.
 [ 6668 ] {} <Fatal> BaseDaemon: Stack trace: 0x000000000cd0ca68 0x000000000cf66554 0x00007f91ee5e8520 0x00000000133ae407 0x0000000012b40ee7 0x0000000012a7ffc0 0x00000000119bf6e2 0x0000000014197a33 0x00000000141ae979 0x0000000017b03c47 0x0000000017b0411e 0x0000000017aac412 0x0000000017aaa103 0x00007
 [ 6668 ] {} <Fatal> BaseDaemon: ########################################
 [ 6668 ] {} <Fatal> BaseDaemon: (version 24.12.1.927 (official build), build id: B9707C05DFCC86ED714E8589B9FF5C265EE40AF2, git hash: 1ca206a09b3d7101741aa0ca6b4cce7c7b899042) (from thread 3841) (query_id: 4f70f7ae-3e56-4280-9d0e-73da65aa6558) (query: select \'create table test (x \' || repeat(\'Array(
 [ 6668 ] {} <Fatal> BaseDaemon: Address: 0x8. Access: read. Address not mapped to object.
 [ 6668 ] {} <Fatal> BaseDaemon: Stack trace: 0x000000000cd0ca68 0x000000000cf66554 0x00007f91ee5e8520 0x00000000133ae407 0x0000000012b40ee7 0x0000000012a7ffc0 0x00000000119bf6e2 0x0000000014197a33 0x00000000141ae979 0x0000000017b03c47 0x0000000017b0411e 0x0000000017aac412 0x0000000017aaa103 0x00007
 [ 6668 ] {} <Fatal> BaseDaemon: 0.0. inlined from /build/src/Common/StackTrace.cpp:380: StackTrace::tryCapture()
 [ 6668 ] {} <Fatal> BaseDaemon: 0. /build/src/Common/StackTrace.cpp:349: StackTrace::StackTrace(ucontext_t const&) @ 0x000000000cd0ca68
 [ 6668 ] {} <Fatal> BaseDaemon: 1. /build/src/Common/SignalHandlers.cpp:100: signalHandler(int, siginfo_t*, void*) @ 0x000000000cf66554
 [ 6668 ] {} <Fatal> BaseDaemon: 2. ? @ 0x00007f91ee5e8520
 [ 6668 ] {} <Fatal> BaseDaemon: 3.0. inlined from /build/src/IO/BufferWithOwnMemory.h:76: DB::Memory<Allocator<false, false>>::size() const
 [ 6668 ] {} <Fatal> BaseDaemon: 3. /build/src/Columns/ColumnString.cpp:649: DB::ColumnString::compress(bool) const @ 0x00000000133ae407
 [ 6668 ] {} <Fatal> BaseDaemon: 4. /build/src/Interpreters/Cache/QueryCache.cpp:472: DB::QueryCache::Writer::finalizeWrite() @ 0x0000000012b40ee7
 [ 6668 ] {} <Fatal> BaseDaemon: 5.0. inlined from /build/src/Interpreters/executeQuery.cpp:1482: operator()
 [ 6668 ] {} <Fatal> BaseDaemon: 5.1. inlined from /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: ?
 [ 6668 ] {} <Fatal> BaseDaemon: 5.2. inlined from /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:479: ?
 [ 6668 ] {} <Fatal> BaseDaemon: 5.3. inlined from /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: ?
 [ 6668 ] {} <Fatal> BaseDaemon: 5. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: ? @ 0x0000000012a7ffc0
 [ 6668 ] {} <Fatal> BaseDaemon: 6.0. inlined from /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: ?
 [ 6668 ] {} <Fatal> BaseDaemon: 6.1. inlined from /build/contrib/llvm-project/libcxx/include/__functional/function.h:1197: ?
 [ 6668 ] {} <Fatal> BaseDaemon: 6. /build/src/QueryPipeline/BlockIO.cpp:52: DB::BlockIO::onFinish() @ 0x00000000119bf6e2
 [ 6668 ] {} <Fatal> BaseDaemon: 7. /build/src/Server/TCPHandler.cpp:0: DB::TCPHandler::runImpl() @ 0x0000000014197a33
 [ 6668 ] {} <Fatal> BaseDaemon: 8. /build/src/Server/TCPHandler.cpp:2598: DB::TCPHandler::run() @ 0x00000000141ae979
 [ 6668 ] {} <Fatal> BaseDaemon: 9. /build/base/poco/Net/src/TCPServerConnection.cpp:40: Poco::Net::TCPServerConnection::start() @ 0x0000000017b03c47
 [ 6668 ] {} <Fatal> BaseDaemon: 10. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x0000000017b0411e
 [ 6668 ] {} <Fatal> BaseDaemon: 11. /build/base/poco/Foundation/src/ThreadPool.cpp:205: Poco::PooledThread::run() @ 0x0000000017aac412
 [ 6668 ] {} <Fatal> BaseDaemon: 12. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000017aaa103
 [ 6668 ] {} <Fatal> BaseDaemon: 13. ? @ 0x00007f91ee63aac3
 [ 6668 ] {} <Fatal> BaseDaemon: 14. ? @ 0x00007f91ee6cc850
 [ 6668 ] {} <Fatal> BaseDaemon: Integrity check of the executable successfully passed (checksum: D8F0610B3444A59A2BDCDD66FFA1E32B)
 [ 6668 ] {} <Fatal> BaseDaemon: Report this error to https://github.com/ClickHouse/ClickHouse/issues
 [ 6668 ] {} <Fatal> BaseDaemon: Changed settings: min_compress_block_size = 1092287, max_compress_block_size = 513261, max_block_size = 42469, min_external_table_block_size_bytes = 0, max_joined_block_size_rows = 18001, max_insert_threads = 3, max_threads = 1, max_parsing_threads = 10, max_read_buf
 [ 3830 ] {} <Fatal> Application: Child process was terminated by signal 11.

Let's revert

@nickitat

Copy link
Copy Markdown
Member Author

merged back #72895

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog 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.

7 participants