Skip to content

Find big allocations without memory limits checks #48401

Merged
tavplubix merged 3 commits intomasterfrom
fix_00002_log_messages
Apr 5, 2023
Merged

Find big allocations without memory limits checks #48401
tavplubix merged 3 commits intomasterfrom
fix_00002_log_messages

Conversation

@tavplubix
Copy link
Copy Markdown
Member

@tavplubix tavplubix commented Apr 4, 2023

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

About big allocations and OOMs: #48178 (comment)

Also it fixes 00002_log_and_exception_messages_formatting: https://s3.amazonaws.com/clickhouse-test-reports/0/d0ba1e76bfdef462ae5fd7b652105b4abf780251/stateless_tests__release_.html
(the test has found non-informative exception messages added in #43858 (comment), but it was impossible to understand from the test output, let's improve it)

Fixes #48441

@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Apr 4, 2023
@novikd novikd self-assigned this Apr 4, 2023

MemoryTrackerBlockerInThread blocker;
LOG_TRACE(&Poco::Logger::get("MemoryTracker"), "Too big allocation ({} bytes) without checking memory limits, "
"it may lead to OOM. Stack trace: {}", size, StackTrace().toString());
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.

Interesting idea! Maybe it also worth to add a check to {stateless/stress}/run.sh for this pattern?

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.

We should fix known issues first:

rg -Faz "Too big allocation" clickhouse-server.log.zst | wc
   1484   46004  462441

@tavplubix
Copy link
Copy Markdown
Member Author

Integration tests (asan) [4/6] - #45435
Stateless tests flaky check (asan) - it's okay, not enough statistics for the test

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

00002_log_and_exception_messages_formatting is flaky

5 participants