You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "jx2lee (via GitHub)" <gi...@apache.org> on 2026/08/01 08:39:48 UTC

[PR] [FLINK-40274][cdc-cli] Remove unsupported kubernetes-session from target option help message [flink-cdc]

jx2lee opened a new pull request, #4493:
URL: https://github.com/apache/flink-cdc/pull/4493

   ## What is the purpose of this pull request?
   
   This PR corrects the Flink CDC CLI help text for the `--target` option.
   
   The help message listed `kubernetes-session` as a supported deployment target, but
   Flink CDC currently supports `kubernetes-application` only for Kubernetes-specific
   submission. Kubernetes session clusters can still be used by starting the Flink
   session cluster separately and submitting through the existing `remote` target.
   
   ## Brief change log
   
   - Removed the unsupported `kubernetes-session` value from the `--target` help text.
   - Kept the help message aligned with the deployment targets defined by `ComposeDeployment`.
   
   ---
   
   ## Verifying this change
   
   This change can be verified as follows:
   
   - Run `mvn --batch-mode --no-transfer-progress -pl flink-cdc-cli -am test`
   - Check `flink-cdc.sh --help` and confirm that the `--target` option no longer lists `kubernetes-session`.
   
   ## Documentation
   
   - Does this pull request introduce a new feature? no
   - If yes, how is the feature documented? not applicable
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (OpenAI Codex)
   
   Generated-by: OpenAI Codex
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-40274][cdc-cli] Remove unsupported kubernetes-session from target option help message [flink-cdc]

Posted by "yuxiqian (via GitHub)" <gi...@apache.org>.
yuxiqian merged PR #4493:
URL: https://github.com/apache/flink-cdc/pull/4493


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-40274][cdc-cli] Remove unsupported kubernetes-session from target option help message [flink-cdc]

Posted by "yuxiqian (via GitHub)" <gi...@apache.org>.
yuxiqian commented on code in PR #4493:
URL: https://github.com/apache/flink-cdc/pull/4493#discussion_r3709883017


##########
flink-cdc-cli/src/main/java/org/apache/flink/cdc/cli/CliFrontendOptions.java:
##########
@@ -52,8 +52,7 @@ public class CliFrontendOptions {
                     .hasArg()
                     .desc(
                             "The deployment target for the execution. This can take one of the following values "

Review Comment:
   Shall we re-organize the description message with manual line breaking and ListElements?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-40274][cdc-cli] Remove unsupported kubernetes-session from target option help message [flink-cdc]

Posted by "jx2lee (via GitHub)" <gi...@apache.org>.
jx2lee commented on code in PR #4493:
URL: https://github.com/apache/flink-cdc/pull/4493#discussion_r3711415267


##########
flink-cdc-cli/src/main/java/org/apache/flink/cdc/cli/CliFrontendOptions.java:
##########
@@ -52,8 +52,7 @@ public class CliFrontendOptions {
                     .hasArg()
                     .desc(
                             "The deployment target for the execution. This can take one of the following values "

Review Comment:
   @yuxiqian I fixed it. Thanks for reviewing!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-40274][cdc-cli] Remove unsupported kubernetes-session from target option help message [flink-cdc]

Posted by "yuxiqian (via GitHub)" <gi...@apache.org>.
yuxiqian commented on code in PR #4493:
URL: https://github.com/apache/flink-cdc/pull/4493#discussion_r3710058903


##########
flink-cdc-cli/src/main/java/org/apache/flink/cdc/cli/CliFrontendOptions.java:
##########
@@ -52,8 +52,7 @@ public class CliFrontendOptions {
                     .hasArg()
                     .desc(
                             "The deployment target for the execution. This can take one of the following values "

Review Comment:
   Yes! It could also be constructed like this:
   
   ```java
       public static final ConfigOption<SchemaChangeBehavior> PIPELINE_SCHEMA_CHANGE_BEHAVIOR =
               ConfigOptions.key("schema.change.behavior")
                       .enumType(SchemaChangeBehavior.class)
                       .defaultValue(SchemaChangeBehavior.LENIENT)
                       .withDescription(
                               Description.builder()
                                       .text("Behavior for handling schema change events. ")
                                       .linebreak()
                                       .add(
                                               ListElement.list(
                                                       text("IGNORE: Drop all schema change events."),
                                                       text(
                                                               "LENIENT: Apply schema changes to downstream tolerantly, and keeps executing if applying fails."),
                                                       text(
                                                               "TRY_EVOLVE: Apply schema changes to downstream, but keeps executing if applying fails."),
                                                       text(
                                                               "EVOLVE: Apply schema changes to downstream. This requires sink to support handling schema changes."),
                                                       text(
                                                               "EXCEPTION: Throw an exception to terminate the sync pipeline.")))
                                       .build());
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-40274][cdc-cli] Remove unsupported kubernetes-session from target option help message [flink-cdc]

Posted by "jx2lee (via GitHub)" <gi...@apache.org>.
jx2lee commented on code in PR #4493:
URL: https://github.com/apache/flink-cdc/pull/4493#discussion_r3710044663


##########
flink-cdc-cli/src/main/java/org/apache/flink/cdc/cli/CliFrontendOptions.java:
##########
@@ -52,8 +52,7 @@ public class CliFrontendOptions {
                     .hasArg()
                     .desc(
                             "The deployment target for the execution. This can take one of the following values "

Review Comment:
   @yuxiqian  Did you mean ListElements format, like example below ?
   ```
                       .desc(
                               "The deployment target for the execution. This can take one of the following values:\n"
                                       + "- local\n"
                                       + "- remote\n"
                                       + "- yarn-session\n"
                                       + "- yarn-application\n"
                                       + "- kubernetes-application")
                       .build();
    ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-40274][cdc-cli] Remove unsupported kubernetes-session from target option help message [flink-cdc]

Posted by "yuxiqian (via GitHub)" <gi...@apache.org>.
yuxiqian commented on code in PR #4493:
URL: https://github.com/apache/flink-cdc/pull/4493#discussion_r3711225478


##########
flink-cdc-cli/src/main/java/org/apache/flink/cdc/cli/CliFrontendOptions.java:
##########
@@ -52,8 +52,7 @@ public class CliFrontendOptions {
                     .hasArg()
                     .desc(
                             "The deployment target for the execution. This can take one of the following values "

Review Comment:
   Oh I see. As the description formatter is not available as we're using commons CLI library, your previous code (manual newline and list items) is more appropriate.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-40274][cdc-cli] Remove unsupported kubernetes-session from target option help message [flink-cdc]

Posted by "jx2lee (via GitHub)" <gi...@apache.org>.
jx2lee commented on code in PR #4493:
URL: https://github.com/apache/flink-cdc/pull/4493#discussion_r3711111221


##########
flink-cdc-cli/src/main/java/org/apache/flink/cdc/cli/CliFrontendOptions.java:
##########
@@ -52,8 +52,7 @@ public class CliFrontendOptions {
                     .hasArg()
                     .desc(
                             "The deployment target for the execution. This can take one of the following values "

Review Comment:
   @yuxiqian Thanks for the suggestion. Since Commons CLI's Option.desc(...) only accepts a String, we need to format Description into plain text before passing it to the option.
   
   Would you prefer adding a reusable PlainTextFormatter next to HtmlFormatter under flink-cdc-common/src/main/java/org/apache/flink/cdc/common/configuration/description/, or keeping this scoped by adding a small private/static formatter inside CliFrontendOptions?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org