HeartSaVioR 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_r351163132
 
 

 ##########
 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:
   The thing is, the thread should have been UninterruptibleThread; if we found 
the other case we should file an issue and try to fix.

----------------------------------------------------------------
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