Open TennyZhuang opened 2 years ago
See also #3015
"Introduce SourceError" 😄
Seems like the error occurs here
Unfortunately, the error only occurs once the client tries to fetch metadata, so I think the only way to provide more specific error messages would be to validate the brokers somehow in KafkaSplitEnumerator::new()
(since that's where the other arguments of the Kafka source are validated).
Describe the bug
When I create a source with wrong arguments, an obscure error message was reported:
In fact, the 'kafka.brokers'='[127.0.0.1:9092]' is wrong, and the square brackets should be removed. But I can't address it from the error message.
Expected behavior
ERROR: Invalid argument "kafka.brokers"