Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-36829

Add better validation of pipeline config

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Flink CDC
    • None

    Description

      If the `pipeline` section is missing then the user just gets a NullPointerException error:

      ❯ bin/flink-cdc.sh mysql-to-doris.yaml
      Exception in thread "main" java.lang.NullPointerException
              at org.apache.flink.cdc.cli.parser.YamlPipelineDefinitionParser.parse(YamlPipelineDefinitionParser.java:110)
              at org.apache.flink.cdc.cli.parser.YamlPipelineDefinitionParser.parse(YamlPipelineDefinitionParser.java:95)
              at org.apache.flink.cdc.cli.CliExecutor.run(CliExecutor.java:85)
              at org.apache.flink.cdc.cli.CliFrontend.main(CliFrontend.java:69)

      It would be good if Flink CDC validated the YAML config and instead reported to the user e.g. "Pipeline YAML is not valid. `pipeline` section is missing".

      Attachments

        Activity

          People

            Unassigned Unassigned
            rmoff Robin Moffatt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: