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

Excessive memory usage in Iceberg connector since version 468 #25077

Open
vburenin opened this issue Feb 19, 2025 · 7 comments
Open

Excessive memory usage in Iceberg connector since version 468 #25077

vburenin opened this issue Feb 19, 2025 · 7 comments

Comments

@vburenin
Copy link

I just recently did an upgrade from Trino 466 to 470 and operation like 'show columns from' or 'show create table' for Iceberg table started to fail miserably.
The table itself has just several top level fields and one of the fields is a deeply nested data structure with around 7k projected fields.

After digging deeper, I discovered an excessive memory usage in Iceberg module:

Image

It appears there is an array with 7k record where each record is 2.5MB on average.

I can't share a data structure details due to the sensitivity of the content, however, I hope there is something obvious.
This is a critical bug for us as it makes Trino cluster fully unusable.

@ebyhr
Copy link
Member

ebyhr commented Feb 19, 2025

@vburenin Can you confirm the behavior on 467, 468 and 469? We want to know the exact version we introduced the issue.

@ebyhr ebyhr changed the title Excessive memory usage Excessive memory usage in Iceberg connector Feb 19, 2025
@vburenin
Copy link
Author

Trino 468 has this issue.

@vburenin
Copy link
Author

vburenin commented Feb 19, 2025

467 does not. So, Trino 468 it is where the issue starts to happen. And it seems like it is iteratively got worse at 470.

@vburenin
Copy link
Author

vburenin commented Feb 19, 2025

The notable change in Trino 468 is Iceberg Upgrade to 1.7.1 from 1.7.0

@vburenin
Copy link
Author

Downgraded Iceberg to 1.7.0 in Trino 470. The problem didn't go away.

@vburenin
Copy link
Author

I have set iceberg.bucket-execution to false and the problem seems to be gone.

@ebyhr
Copy link
Member

ebyhr commented Feb 19, 2025

cc: @dain @raunaqmorarka

@ebyhr ebyhr changed the title Excessive memory usage in Iceberg connector Excessive memory usage in Iceberg connector since version 468 Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants