Skip to content

HashJoinStream memory tracking insufficient #7848

Closed
@crepererum

Description

@crepererum

Describe the bug

Using a hash join may lead to OOM kills / very large memory consumption even when a memory limit is set.

To Reproduce

No reproduction steps yet.

We have a flame graph from a prod environment though:

flame

Expected behavior

Memory manager report "out of memory", the query fails.

Additional context

I think the code only tracks HashJoinStream::visited_left_side but build_equal_condition_join_indices is completely untracked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions