Skip to content

Commit

Permalink
[FLINK-15414] catch the right KafkaException for binding errors
Browse files Browse the repository at this point in the history
The right exception should be `org.apache.kafka.common.KafkaException` instead of `kafka.common.KafkaException`

At least the "numTries" exception should be thrown instead of the binding exception.
  • Loading branch information
curcur authored and dawidwys committed Jul 8, 2020
1 parent 78d6ee1 commit c237870
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.apache.flink.streaming.util.serialization.KeyedSerializationSchema;
import org.apache.flink.util.NetUtils;

import kafka.common.KafkaException;
import kafka.metrics.KafkaMetricsReporter;
import kafka.server.KafkaConfig;
import kafka.server.KafkaServer;
Expand All @@ -39,6 +38,7 @@
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.kafka.clients.consumer.OffsetAndMetadata;
import org.apache.kafka.common.KafkaException;
import org.apache.kafka.common.TopicPartition;
import org.apache.kafka.common.network.ListenerName;
import org.apache.kafka.common.security.auth.SecurityProtocol;
Expand Down

0 comments on commit c237870

Please sign in to comment.