-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Fix] Fix MultiTableSink restore failed when add new table #5746
Conversation
@@ -217,13 +217,13 @@ public SnapshotPhaseState snapshotState(long checkpointId) { | |||
new SnapshotPhaseState( | |||
alreadyProcessedTables, | |||
remainingSplits.isEmpty() | |||
? Collections.emptyList() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use unmutable list will throw exception when restore with add new table. So I think we should use mutable list for now. cc @hailin0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good
@@ -217,13 +217,13 @@ public SnapshotPhaseState snapshotState(long checkpointId) { | |||
new SnapshotPhaseState( | |||
alreadyProcessedTables, | |||
remainingSplits.isEmpty() | |||
? Collections.emptyList() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Purpose of this pull request
This PR fix MultiTableSink restore failed when add new table in source side.
Does this PR introduce any user-facing change?
no
How was this patch tested?
add new test.
Check list
New License Guide
release-note
.