Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
TestSessionCleanup and TestSessionManagerMetrics tests apply the default operation logs location "ConfVars.HIVE_SERVER2_LOGGING_OPERATION_LOG_LOCATION", it's same OS path, in TestSessionManagerMetrics SessionManager will delete the operation logs directory on testing exit, and in TestSessionCleanup the file count will be checked in operation logs directory, so if these test cases are executed in parrallel, they will impact each other.
I run Hive tests in my local machine and enable maven parallel mode to run tests with option "-T 4 -DforkCount=4", it will run test class in separeted processes and execute test class in parallel, you can try to run tests several times, this issue should happen.