Skip to content

[lake/tiering] fallback to Flink's io.tmp.dir when client.scanner.io.tmpdir is not set#2859

Merged
luoyuxia merged 1 commit into
apache:mainfrom
zuston:fixtmpdir
Mar 13, 2026
Merged

[lake/tiering] fallback to Flink's io.tmp.dir when client.scanner.io.tmpdir is not set#2859
luoyuxia merged 1 commit into
apache:mainfrom
zuston:fixtmpdir

Conversation

@zuston

@zuston zuston commented Mar 13, 2026

Copy link
Copy Markdown
Member

Purpose

To avoid downloading remote logs into the /tmp directory when tiering Flink jobs run on YARN, which could cause uncontrolled disk usage.

Brief change log

Tests

API and Format

Documentation

@zuston

zuston commented Mar 13, 2026

Copy link
Copy Markdown
Member Author

PTAL @luoyuxia @wuchong

@luoyuxia luoyuxia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Flink tiering source to populate Fluss’ client.scanner.io.tmpdir from Flink runtime configuration when the Fluss config doesn’t explicitly set it, so remote-log downloads don’t default to /tmp in YARN deployments.

Changes:

  • Set CLIENT_SCANNER_IO_TMP_DIR in TieringSource#createReader using FlinkConnectorOptionsUtils.getClientScannerIoTmpDir(...).
  • Add static imports to support the above.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +115 to +117
flussConf.set(
CLIENT_SCANNER_IO_TMP_DIR,
getClientScannerIoTmpDir(flussConf, sourceReaderContext.getConfiguration()));
@luoyuxia luoyuxia merged commit acd9632 into apache:main Mar 13, 2026
14 of 15 checks passed
hemanthsavasere pushed a commit to hemanthsavasere/fluss that referenced this pull request Mar 14, 2026
…io.tmpdir` is not set. (apache#2859)

Co-authored-by: Junfan Zhang <zhangjunfan@qiyi.com>
wxplovecc pushed a commit to tongcheng-elong/fluss that referenced this pull request Apr 17, 2026
…io.tmpdir` is not set. (apache#2859)

Co-authored-by: Junfan Zhang <zhangjunfan@qiyi.com>
wxplovecc pushed a commit to tongcheng-elong/fluss that referenced this pull request Apr 20, 2026
…io.tmpdir` is not set. (apache#2859)

Co-authored-by: Junfan Zhang <zhangjunfan@qiyi.com>
Ugbot pushed a commit to Ugbot/fluss that referenced this pull request Apr 26, 2026
…io.tmpdir` is not set. (apache#2859)

Co-authored-by: Junfan Zhang <zhangjunfan@qiyi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants