vrozov commented on code in PR #50348: URL: https://github.com/apache/spark/pull/50348#discussion_r2011179103
########## connector/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaOffsetReaderAdmin.scala: ########## @@ -535,7 +535,7 @@ private[kafka010] class KafkaOffsetReaderAdmin( var attempt = 1 var lastException: Throwable = null while (result.isEmpty && attempt <= maxOffsetFetchAttempts - && !Thread.currentThread().isInterrupted) { + && !Thread.currentThread.isInterrupted) { Review Comment: https://docs.scala-lang.org/scala3/reference/dropped-features/auto-apply.html: `Thread.currentThread` still will be the recommended way for Scala 3 as well. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org