Skip to content

Flink: Forward watermarks in EqualityConvertCommitter with no active cycle - #18439

Open
developer-rpai wants to merge 1 commit into
apache:mainfrom
developer-rpai:fix-18435-flink-lock-watermark
Open

developer-rpai wants to merge 1 commit into
apache:mainfrom
developer-rpai:fix-18435-flink-lock-watermark

Conversation

@developer-rpai

@developer-rpai developer-rpai commented Oct 9, 2026 •

Copy link
Copy Markdown

When ConvertEqualityDeletes shares the Flink-maintained lock with another maintenance task, the lock is never released: EqualityConvertCommitter.processWatermark drops watermarks while planResult == null, stalling the unioned watermark that LockRemoverOperator needs to emit the lock release. The fix forwards watermarks when no conversion cycle is active and keeps the hold-back behavior mid-cycle. Fixes #18435.

Test plan: new forwardsWatermarkWithoutActiveCycle unit test asserts a watermark is forwarded with no plan received; existing holdsBackWatermarkUntilCommit still covers the mid-cycle hold-back. Note: the same pattern exists in flink/v1.20 and flink/v2.2 — left for a follow-up to keep this minimal. Could not compile locally (no JDK on this machine); relying on CI.

@github-actions github-actions Bot added the flink label Oct 9, 2026
@developer-rpai
developer-rpai force-pushed the fix-18435-flink-lock-watermark branch from 2784848 to 68bc0b0 Compare October 9, 2026 23:05

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flink: ConvertEqualityDeletes never releases the maintenance lock when combined with another maintenance task

1 participant