Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find big allocations without memory limits checks #48401

Merged
merged 3 commits into from
Apr 5, 2023

Conversation

tavplubix
Copy link
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
Collaborator

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
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
Member Author

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

@tavplubix tavplubix merged commit a154fa7 into master Apr 5, 2023
121 of 137 checks passed
@tavplubix tavplubix deleted the fix_00002_log_messages branch April 5, 2023 20:52
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