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

Funnel query Memory limit exceeded #5391

Closed
sentry-io bot opened this issue Jul 30, 2021 · 2 comments
Closed

Funnel query Memory limit exceeded #5391

sentry-io bot opened this issue Jul 30, 2021 · 2 comments
Labels
bug Something isn't working right feature/funnels Feature Tag: Funnels performance Has to do with performance. For PRs, runs the clickhouse query performance suite

Comments

@sentry-io
Copy link

sentry-io bot commented Jul 30, 2021

Sentry Issue: POSTHOG-3A0

ServerException: Code: 241.
DB::Exception: Memory limit (for query) exceeded: would use 9.32 GiB (attempt to allocate chunk of 4375383 bytes), maximum: 9.31 GiB: While executing MergeTreeThread. Stack trace:

0. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse
1. DB::Exception::Exception<char const*, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, long&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*&&, char const*&&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&, long&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&) @ 0x8b81a29 in /usr/bin/clickhouse
2. MemoryTracker::alloc(long) @ 0x8b8137d in /usr/bin/clickhouse
3. MemoryTracker::alloc(long) @ 0x8b810e4 in /usr/bin/clickhouse
4. ? @ 0xfda495a in /usr/bin/clickhouse
5. void DB::filterArraysImpl<char8_t>(DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 15ul, 16ul> const&, DB::PODArray<unsigned long, 4096ul, Allocator<false, false>, 15ul, 16ul> const&, DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 15ul, 16ul>&, DB::PODArray<unsigned long, 4096ul, Allocator<false, false>, 15ul, 16ul>&, DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 15ul, 16ul> const&, long) @ 0xfd9bde6 in /usr/bin/clickhouse
6. DB::ColumnString::filter(DB::PODArray<char8_t, 4096ul, Allocator<false, false>, 15ul, 16ul> const&, long) const @ 0xfce9913 in /usr/bin/clickhouse
7. ? @ 0x106aa06d in /usr/bin/clickhouse
8. DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) @ 0x106ab659 in /usr/bin/clickhouse
9. DB::MergeTreeRangeReader::read(unsigned long, std::__1::deque<DB::MarkRange, std::__1::allocator<DB::MarkRange> >&) @ 0x106a8da4 in /usr/bin/clickhouse
10. DB::MergeTreeRangeReader::read(unsigned long, std::__1::deque<DB::MarkRange, std::__1::allocator<DB::MarkRange> >&) @ 0x106a8be3 in /usr/bin/clickhouse
11. DB::MergeTreeBaseSelectProcessor::readFromPartImpl() @ 0x106a1513 in /usr/bin/clickhouse
12. DB::MergeTreeBaseSelectProcessor::readFromPart() @ 0x106a21ed in /usr/bin/clickhouse
13. DB::MergeTreeBaseSelectProcessor::generate() @ 0x106a09cb in /usr/bin/clickhouse
14. DB::ISource::tryGenerate() @ 0x1046f555 in /usr/bin/clickhouse
15. DB::ISource::work() @ 0x1046f13a in /usr/bin/clickhouse
16. DB::SourceWithProgress::work() @ 0x1062ee2a in /usr/bin/clickhouse
17. ? @ 0x104aa3dd in /usr/bin/clickhouse
18. DB::PipelineExecutor::executeStepImpl(unsigned long, unsigned long, std::__1::atomic<bool>*) @ 0x104a6f71 in /usr/bin/clickhouse
19. ? @ 0x104ab9f6 in /usr/bin/clickhouse
20. ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x8bacedf in /usr/bin/clickhouse
21. ? @ 0x8bb0403 in /usr/bin/clickhouse
22. start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
23. __clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so

(9 additional frame(s) were not displayed)
...
  File "clickhouse_driver/client.py", line 453, in process_ordinary_query
    return self.receive_result(with_column_types=with_column_types,
  File "clickhouse_driver/client.py", line 117, in receive_result
    return result.get_result()
  File "clickhouse_driver/result.py", line 50, in get_result
    for packet in self.packet_generator:
  File "clickhouse_driver/client.py", line 133, in packet_generator
    packet = self.receive_packet()
  File "clickhouse_driver/client.py", line 150, in receive_packet
    raise packet.exception
@macobo macobo added bug Something isn't working right feature/funnels Feature Tag: Funnels performance Has to do with performance. For PRs, runs the clickhouse query performance suite labels Jul 30, 2021
@macobo
Copy link
Contributor

macobo commented Jul 30, 2021

Related: #5244

@Twixes
Copy link
Member

Twixes commented Mar 9, 2022

The Sentry issue no longer is accessible.

@Twixes Twixes closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right feature/funnels Feature Tag: Funnels performance Has to do with performance. For PRs, runs the clickhouse query performance suite
Projects
None yet
Development

No branches or pull requests

2 participants