ruanhang1993 commented on code in PR #20764:
URL: https://github.com/apache/flink/pull/20764#discussion_r965581667
##########
flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/streaming/connectors/kafka/internals/KafkaConsumerThread.java:
##########
@@ -503,6 +506,17 @@ KafkaConsumer<byte[], byte[]> getConsumer(Properties
kafkaProperties) {
return new KafkaConsumer<>(kafkaProperties);
}
+ private void retryOnWakeup(Runnable consumerCall, String description) {
+ try {
+ consumerCall.run();
+ } catch (WakeupException we) {
+ log.info(
+ "Caught WakeupException while executing Kafka consumer
call for {}. Will retry the consumer call.",
Review Comment:
Caught WakeupException while executing Kafka consumer call for {}. Will
retry it once.
##########
flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/streaming/connectors/kafka/internals/KafkaConsumerThread.java:
##########
@@ -503,6 +506,17 @@ KafkaConsumer<byte[], byte[]> getConsumer(Properties
kafkaProperties) {
return new KafkaConsumer<>(kafkaProperties);
}
+ private void retryOnWakeup(Runnable consumerCall, String description) {
Review Comment:
retryOnceOnWakeup
--
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]