Github user dongjoon-hyun commented on a diff in the pull request: https://github.com/apache/spark/pull/20359#discussion_r163613813 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/DriverRegistry.scala --- @@ -32,6 +32,9 @@ import org.apache.spark.util.Utils */ object DriverRegistry extends Logging { + // Initialize DriverManager first to prevent potential deadlocks between DriverManager and Driver + DriverManager.getDrivers --- End diff -- It's the same situation like STORM. In the Spark executor, the stacks shows the deadlock between `DriverManager` and `Driver`. - Pheonix library call `DriverManager.loadInitialDrivers()` - Spark `DriverRegistry` call `PhoenixDriver` constructor before `DriverManager` created.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org