vamsikarnika commented on code in PR #12569:
URL: https://github.com/apache/hudi/pull/12569#discussion_r1908179011
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/KafkaSource.java:
##########
@@ -75,6 +78,11 @@ protected InputBatch<T>
readFromCheckpoint(Option<Checkpoint> lastCheckpoint, lo
lastCheckpoint, sourceLimit));
} catch (org.apache.kafka.common.errors.TimeoutException e) {
throw new HoodieSourceTimeoutException("Kafka Source timed out " +
e.getMessage());
+ } catch (KafkaException ex) {
+ if (hasConfigException(ex)) {
+ throw new HoodieSourceConfigException("kafka source config issue ",
ex);
+ }
+ throw ex;
Review Comment:
It makes sense to use HoodieReadFromSourceException, will make that change.
I just thought new exception HoodieSourceConfigException would be more
specific.
--
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]