wenxuanguan commented on a change in pull request #26632: 
[SPARK-29993][SS]Avoid continuous warn log in get record and offset from Kafka
URL: https://github.com/apache/spark/pull/26632#discussion_r351160571
 
 

 ##########
 File path: 
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaDataConsumer.scala
 ##########
 @@ -587,8 +587,11 @@ private[kafka010] class KafkaDataConsumer(
     case ut: UninterruptibleThread =>
       ut.runUninterruptibly(body)
     case _ =>
-      logWarning("KafkaDataConsumer is not running in UninterruptibleThread. " 
+
-        "It may hang when KafkaDataConsumer's methods are interrupted because 
of KAFKA-1894")
+      val warned = _consumer.isDefined
 
 Review comment:
   @HeartSaVioR In micro-batch application, every mini-batch job will generate 
two logs per task in executor log file. Since micro-batch application is long 
running, there will be massive warning log.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to