[FLINK-36772][mysql][cdc-base] Fix error placeholder for errorMessageTemplate of Preconditions

This closes  #3754
pull/3760/head
Xin Gong 2 months ago committed by GitHub
parent d0b2fe38a2
commit 1d4e366969
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -428,7 +428,7 @@ public class SnapshotSplitAssigner<C extends SourceConfig> implements SplitAssig
@Override
public void startAssignNewlyAddedTables() {
Preconditions.checkState(
isAssigningFinished(assignerStatus), "Invalid assigner status {}", assignerStatus);
isAssigningFinished(assignerStatus), "Invalid assigner status %s", assignerStatus);
assignerStatus = assignerStatus.startAssignNewlyTables();
}
@ -436,7 +436,7 @@ public class SnapshotSplitAssigner<C extends SourceConfig> implements SplitAssig
public void onStreamSplitUpdated() {
Preconditions.checkState(
isNewlyAddedAssigningSnapshotFinished(assignerStatus),
"Invalid assigner status {}",
"Invalid assigner status %s",
assignerStatus);
assignerStatus = assignerStatus.onStreamSplitUpdated();
}

@ -471,7 +471,7 @@ public class MySqlSnapshotSplitAssigner implements MySqlSplitAssigner {
public void startAssignNewlyAddedTables() {
Preconditions.checkState(
AssignerStatus.isAssigningFinished(assignerStatus),
"Invalid assigner status {}",
"Invalid assigner status %s",
assignerStatus);
assignerStatus = assignerStatus.startAssignNewlyTables();
}
@ -480,7 +480,7 @@ public class MySqlSnapshotSplitAssigner implements MySqlSplitAssigner {
public void onBinlogSplitUpdated() {
Preconditions.checkState(
AssignerStatus.isNewlyAddedAssigningSnapshotFinished(assignerStatus),
"Invalid assigner status {}",
"Invalid assigner status %s",
assignerStatus);
assignerStatus = assignerStatus.onBinlogSplitUpdated();
}

Loading…
Cancel
Save