maswin commented on PR #4015:
URL: https://github.com/apache/hive/pull/4015#issuecomment-1589919520

   > this makes me think that in case there are operations using the tez 
session and then oozie does some DML operations, this can still happen, right? 
so the root cause looks independent of the fact that you reproduced it with 
DML-only scenario, so this fix is more likely hiding the problem, which is 
cleaning up scratch directories before tez sessions are closed, which is 
unexpected and needs to be fixed
   
   Ahh, true.
   
   This happens because the tez session is opened in a separate thread in async 
mode via beginStart() - 
https://github.com/apache/hive/blob/f78ca5df80c0bcb566f0915cda65112268df492c/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java#L785
   
   And before closing the session we don't wait for the tez session to close. 
   I have add a call for endStart() in the finally block now. That should 
probably fix the root cause. 
   
   But it might also be beneficial to provide the setting to disable opening 
tez session everytime due to resource wastage. 


-- 
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]

Reply via email to