dongjoon-hyun commented on code in PR #37260:
URL: https://github.com/apache/spark/pull/37260#discussion_r928161061
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDBLoader.scala:
##########
@@ -48,7 +48,16 @@ object RocksDBLoader extends Logging {
def loadLibrary(): Unit = synchronized {
if (exception == null) {
- loadLibraryThread.start()
+ // SPARK-39847: if a task thread is interrupted while blocking in this
loadLibrary()
+ // call then a second task thread might start a loadLibrary() call while
the first
Review Comment:
I'm curious why the second task thread is not blocked by `synchronized` at
line 48, @JoshRosen ?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]