Skip to content

Use executor service for iceberg scan planning system tables#24396

Merged
raunaqmorarka merged 1 commit into
trinodb:masterfrom
tbaeg:system-table-threads
Dec 13, 2024
Merged

Use executor service for iceberg scan planning system tables#24396
raunaqmorarka merged 1 commit into
trinodb:masterfrom
tbaeg:system-table-threads

Conversation

@tbaeg
Copy link
Copy Markdown
Member

@tbaeg tbaeg commented Dec 6, 2024

Description

Use existing executor service for scans on system tables in iceberg to prevent excessive cpu/heap usage.
This is especially prevalent for system with high core count.
The existing code was using the threadpool of iceberg library for system tables and another threadpool provided by Trino for normal table scans.

Additional context and related issues

https://trinodb.slack.com/archives/CJ6UC075E/p1733411820070579

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:

## Iceberg
* Avoid excessive resource usage on coordinator from iceberg system table scans. ({issue}`24396`)

@cla-bot cla-bot Bot added the cla-signed label Dec 6, 2024
@github-actions github-actions Bot added the iceberg Iceberg connector label Dec 6, 2024
@tbaeg tbaeg force-pushed the system-table-threads branch from 32cf9ea to 1dc5b27 Compare December 6, 2024 21:36
Comment thread plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/PartitionsTable.java Outdated
Comment thread plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergModule.java Outdated
@tbaeg tbaeg force-pushed the system-table-threads branch 3 times, most recently from faa7f35 to 6ab0aea Compare December 12, 2024 05:20
@tbaeg tbaeg changed the title Add separate executor service for iceberg scan planning system tables Add use executor service for iceberg scan planning system tables Dec 12, 2024
@tbaeg tbaeg changed the title Add use executor service for iceberg scan planning system tables Use executor service for iceberg scan planning system tables Dec 12, 2024
@tbaeg tbaeg force-pushed the system-table-threads branch from 6ab0aea to 5d8cafd Compare December 12, 2024 05:23
Copy link
Copy Markdown
Member

@raunaqmorarka raunaqmorarka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm % minor comment

Comment thread plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/AllManifestsTable.java Outdated
@tbaeg tbaeg force-pushed the system-table-threads branch from 5d8cafd to 30df813 Compare December 12, 2024 13:29
@raunaqmorarka raunaqmorarka merged commit 5917549 into trinodb:master Dec 13, 2024
@github-actions github-actions Bot added this to the 468 milestone Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed iceberg Iceberg connector

Development

Successfully merging this pull request may close these issues.

3 participants