zml1206 commented on code in PR #45327: URL: https://github.com/apache/spark/pull/45327#discussion_r1506931887
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/AsyncLogPurge.scala: ########## @@ -35,8 +38,11 @@ trait AsyncLogPurge extends Logging { protected val sparkSession: SparkSession - private val asyncPurgeExecutorService - = ThreadUtils.newDaemonSingleThreadExecutor("async-log-purge") + private val asyncPurgeExecutorService: ThreadPoolExecutor = { + val threadFactory = + new ThreadFactoryBuilder().setDaemon(true).setNameFormat("async-log-purge").build() Review Comment: How about adding an additional function to ThreadUtils? -- 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