You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Xin Gong (Jira)" <ji...@apache.org> on 2024/11/22 04:36:00 UTC
[jira] [Created] (FLINK-36772) Fix Preconditions errorMessageTemplate is error
Xin Gong created FLINK-36772:
--------------------------------
Summary: Fix Preconditions errorMessageTemplate is error
Key: FLINK-36772
URL: https://issues.apache.org/jira/browse/FLINK-36772
Project: Flink
Issue Type: Bug
Components: Flink CDC
Affects Versions: cdc-3.2.0
Reporter: Xin Gong
Fix For: cdc-3.3.0
Preconditions.checkState(boolean condition, @Nullable String errorMessageTemplate, @Nullable Object... errorMessageArgs)
errorMessageTemplate should use %s as placeholder.
Flink cdc have many error usage. For example
{code:java}
@Override
public void onBinlogSplitUpdated() {
Preconditions.checkState(
AssignerStatus.isNewlyAddedAssigningSnapshotFinished(assignerStatus),
"Invalid assigner status {}",
assignerStatus);
assignerStatus = assignerStatus.onBinlogSplitUpdated();
} {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)