Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flink] Fix read partitioned table throw LogScanner is not subscribed any bucket #285

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

luoyuxia
Copy link
Collaborator

@luoyuxia luoyuxia commented Dec 27, 2024

Purpose

Linked issue: close #164

Fix read partitioned table throw LogScanner is not subscribed any bucket.

  1. In FlinkSourceEnumerator, duplicate the partition of assigned partitions and pendingSplitAssignment to avoid handle the same partitions more than once which will cause one partition still in pending assignment to be removed.
  2. In Flink split source reader, when no any subscribed bucket, not call Scanner#poll method, just return empty records directly

FlinkSourceEnumeratorTest#testDiscoverPartitionsPeriodically
FlinkSourceSplitReaderTest#testNoSubscribedBucket

Documentation

N/A

@luoyuxia luoyuxia force-pushed the fix-partitioned-table branch 4 times, most recently from 2f8484e to 428da40 Compare January 2, 2025 06:25
@luoyuxia luoyuxia force-pushed the fix-partitioned-table branch from 428da40 to 73924af Compare January 2, 2025 08:19
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.

[Bug] Flink reads partitioned table throw exception ”LogScanner is not subscribed any bucket"
1 participant