goutamadwant opened a new issue, #13722: URL: https://github.com/apache/seatunnel/issues/13722
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues. ### What happened A Kafka source reading `canal_json`, `ogg_json`, `maxwell_json` or `debezium_json` drops every message it cannot parse, without a log line, even though `format_error_handle_way` defaults to `fail`. The job finishes successfully and the records are gone. `fail` and `skip` behave the same. Cause: `KafkaSourceConfig.createDeserializationSchema` builds the four CDC deserializers with `ignoreParseErrors = true`, so they swallow the error before it reaches `KafkaRecordEmitter`, the only place that reads `format_error_handle_way`. The `json` and `text` formats are built with `false` and behave as documented. Two details on top of that: - `maxwell_json` does not even drop cleanly: unparseable JSON fails with `IllegalArgumentException: Param [identifier] is not set in error message`, because the exception is built from an error code whose template expects a parameter. - The four format pages (`canal-json.md`, `ogg-json.md`, `maxwell-json.md`, `debezium-json.md`, updated in #12602) describe the current code: "the Kafka source always skips them". The Kafka source page describes the option. They cannot both stay; the option is what users configure, so the code should follow it. **Expected:** with `fail` (the default) the job fails and the error names the message, as it does for `format = json`. With `skip` the message is dropped and logged with topic, partition and offset. **Actual:** the message is dropped silently; for `maxwell_json` an unparseable message fails with the `IllegalArgumentException` above. ### SeaTunnel Version dev (`0bef81d003`), 3.1.0 ### SeaTunnel Config ```hocon source { Kafka { bootstrap.servers = "kafka:9092" topic = "canal.inventory.product" format = canal_json # format_error_handle_way defaults to fail schema = { fields { id = int name = string } } } } ``` Topic content: valid Canal `INSERT` rows plus one message `{not a canal message`. ### Running Command ```shell ./bin/seatunnel.sh -c config/canal.conf ``` ### Error Exception ``` (none: the malformed message is skipped without a log line and the job finishes successfully) ``` ### Zeta or Flink or Spark Version Zeta ### Java or Scala Version 11 ### Screenshots _No response_ ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct). -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
