Skip to content

[FLINK-39916][mysql] Fix MySQL batch startup option validation error#4441

Merged
lvyanquan merged 2 commits into
apache:masterfrom
llphxd:FLINK-39916-fix-mysql-startup-option-message
Jul 3, 2026
Merged

[FLINK-39916][mysql] Fix MySQL batch startup option validation error#4441
lvyanquan merged 2 commits into
apache:masterfrom
llphxd:FLINK-39916-fix-mysql-startup-option-message

Conversation

@llphxd

@llphxd llphxd commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

What is the purpose of the change

This PR fixes an incorrect placeholder used in the MySQL Pipeline Connector batch startup option validation error.

JIRA

FLINK-39916

Change log

  • Replace the SLF4J-style {} placeholder with the Java String.format placeholder %s in MySqlDataSourceFactory.java, so the actual startup option can be rendered correctly in the thrown IllegalArgumentException.

  • Additional Cleanup: Remove an unused DOT_PLACEHOLDER constant from MySqlDataSourceFactory.java.

Verifying this change

This is a small validation error output fix with no test coverage added.

Why are the changes needed?

  • This avoids showing an unresolved {} placeholder when an unsupported MySQL startup option is used in BATCH pipeline mode.

How was this patch tested?

  • Ran the related unit test locally.

@llphxd llphxd changed the title [FLINK-39916][bug] Fix MySQL batch startup option validation error [FLINK-39916][mysql] Fix MySQL batch startup option validation error Jun 12, 2026
Signed-off-by: huanxiaodong <llphxdgg@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an incorrect placeholder in a MySQL pipeline connector validation error so the actual startup option is rendered correctly when running in BATCH mode.

Changes:

  • Replace SLF4J-style {} with String.format’s %s in the BATCH startup option validation error message.
  • Remove an unused private constant (DOT_PLACEHOLDER) from MySqlDataSourceFactory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@haruki-830 haruki-830 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1.

@lvyanquan lvyanquan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1.

@lvyanquan lvyanquan merged commit 6914d70 into apache:master Jul 3, 2026
35 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants