[SPARK-36390][SQL] Replace SessionState.close with SessionState.detachSession#33621
[SPARK-36390][SQL] Replace SessionState.close with SessionState.detachSession#33621cxzl25 wants to merge 7 commits intoapache:masterfrom
Conversation
|
ok to test. |
|
cc @HyukjinKwon |
|
Test build #141990 has finished for PR 33621 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Kubernetes integration test unable to build dist. exiting with code: 1 |
|
Test build #142000 has finished for PR 33621 at commit
|
|
Could we change this line to It seems that this change makes hive.downloaded.resources.dir can not be removed. |
|
Thanks for pinging me @wangyum. The fix seems making sense |
HIVE-17368 avoid creating a
AFIAK, because /**
* Create dirs & session paths for this session:
* 1. HDFS scratch dir
* 2. Local scratch dir
* 3. Local downloaded resource dir
* 4. HDFS session path
* 5. hold a lock file in HDFS session dir to indicate the it is in use
* 6. Local session path
* 7. HDFS temp table space
* @param userName
* @throws IOException
*/
private void createSessionDirs(String userName) throws IOException { |
|
can we have a test with |
|
HIVE-12853 (>=2.1) will create the SPARK-35556 (Remove close HiveClient's SessionState) did not clean up the resource dir even when the Hive version was greater than or equal to 2.1. Currently need to clean up the resource dir and then |
I can add a UT to check the resource dir cleanup. SPARK-34955 removed the behavior of |
|
The current |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #142091 has finished for PR 33621 at commit
|
|
cc @juliuszsompolski FYI |
|
Kubernetes integration test starting |
|
Test build #142146 has finished for PR 33621 at commit
|
|
Kubernetes integration test status failure |
|
cc @dragqueen95 FYI |
|
Kubernetes integration test starting |
|
Test build #142227 has finished for PR 33621 at commit
|
|
Kubernetes integration test status failure |
|
Gentle ping @wangyum @yaooqinn @HyukjinKwon @juliuszsompolski @ @dragqueen95 |
|
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
# Conflicts: # sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #146059 has finished for PR 33621 at commit
|

What changes were proposed in this pull request?
SPARK-35286 replace
SessionState.startwithSessionState.setCurrentSessionState, butSessionState.closewill create aHiveMetaStoreClient, connect to the Hive Meta Store Server, and then load all functions.SPARK-35556 (Remove close HiveClient's SessionState) When the Hive version used is greater than or equal to 2.1,
SessionState.closeis not called and the resource dir of HiveClient is not cleaned up.Why are the changes needed?
Clean up the hive resources dir temporary directory.
Avoid wasting resources and accelerate the exit speed.
Does this PR introduce any user-facing change?
No
How was this patch tested?
add UT