Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6858#discussion_r35340143
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/ClientWrapper.scala ---
    @@ -401,4 +400,14 @@ private[hive] class ClientWrapper(
             client.dropDatabase(db, true, false, true)
           }
       }
    +
    +  override def shutdown(): Unit = withHiveState {
    +    logInfo("Shutting down hive metastore")
    +    if (state._1 == Thread.currentThread()) {
    --- End diff --
    
    Will this ever be true?
    
    This method is called from the `SparkListener` you're adding, which in a 
live application is called from the listener bus dispatching thread, which is 
most probably not the thread that created the `state` object.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to