Skip to content

[tiering] fail tiering job when readers exceed max duration - #3810

Open
zuston wants to merge 2 commits into
apache:mainfrom
zuston:fixtieringhang
Open

[tiering] fail tiering job when readers exceed max duration#3810
zuston wants to merge 2 commits into
apache:mainfrom
zuston:fixtieringhang

Conversation

@zuston

@zuston zuston commented Jul 30, 2026

Copy link
Copy Markdown
Member

Purpose

When a table reaches its max tiering duration (datalake.freshness), the tiering enumerator already force-completes in-flight work by notifying source readers via TieringReachMaxDurationEvent. In some cases, however, readers remain stuck and never acknowledge completion (FinishedTieringEvent), leaving the tiering job hanging indefinitely.

This change adds a fast-fail safeguard in TieringSourceEnumerator: after max duration is reached, if the table is still active after another maxTieringDurationMs window, the coordinator fails the Flink tiering job with a FlinkRuntimeException. This allows Flink to restart/recover the stuck source readers instead of leaving the job running forever.

Brief change log

Tests

API and Format

Documentation

@zuston

zuston commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

cc @luoyuxia

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.

1 participant