manbuyun edited a comment on pull request #30572: URL: https://github.com/apache/spark/pull/30572#issuecomment-737652179
And, Hive.getPartitions will cause MetaStoreClient close connection The chain of method calls is as follows: Hive.getPartitions -> Hive.getUserName -> SessionState.getUserFromAuthenticator -> SessionState.get().getAuthenticator -> SessionState.setupAuth -> SessionState.setAuthorizerV2Config -> Hive.get -> Hive.getInternal -> Hive.create -> Hive.close -> metaStoreClient.close ![image](https://user-images.githubusercontent.com/29940618/100962760-f005a880-355f-11eb-9027-1744e4204ecc.png) ![image](https://user-images.githubusercontent.com/29940618/100962722-dd8b6f00-355f-11eb-8300-0e8dfd32092f.png) ---------------------------------------------------------------- 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. 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