vrozov commented on code in PR #50810: URL: https://github.com/apache/spark/pull/50810#discussion_r2078283992
########## core/src/test/scala/org/apache/spark/util/UninterruptibleThreadSuite.scala: ########## @@ -115,6 +116,46 @@ class UninterruptibleThreadSuite extends SparkFunSuite { assert(interruptStatusBeforeExit) } + test("no runUninterruptibly") { + @volatile var hasInterruptedException = false + val latch = new CountDownLatch(1) + val t = new UninterruptibleThread("test") { + override def run(): Unit = { + latch.countDown() + hasInterruptedException = sleep(1) + } + } + t.start() + latch.await(10, TimeUnit.SECONDS) + t.interrupt() Review Comment: It looks that Java 8 behaves differently when `interrupt()` is called on not started thread. -- 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