Skip to content

[flink] Fix asynchronous partition refresh generation race - #9318

Open
QuakeWang wants to merge 1 commit into
apache:masterfrom
QuakeWang:partition-refresh-race
Open

[flink] Fix asynchronous partition refresh generation race#9318
QuakeWang wants to merge 1 commit into
apache:masterfrom
QuakeWang:partition-refresh-race

Conversation

@QuakeWang

Copy link
Copy Markdown
Member

Purpose

Async partition refresh previously published the lookup table separately from its partitions and temporary path. A completed table could therefore be paired with state from a newer refresh generation.

Publish the lookup table, partitions, and path as one atomic refresh result, and close superseded unconsumed tables.

Tests

  • PartitionRefresherTest with Flink 1 and Flink 2
  • LookupJoinITCase#testAsyncPartitionRefresh with Flink 1

Publish each lookup table together with its partitions and temporary path.

Close superseded unconsumed tables to avoid leaking their cache state.

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.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.

1 participant