[
https://issues.apache.org/jira/browse/HIVE-25676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stamatis Zampetakis resolved HIVE-25676.
----------------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Fixed in
[d78608c4cec174817f5526065adc43fee78ed7c0|https://github.com/apache/hive/commit/d78608c4cec174817f5526065adc43fee78ed7c0].
Thanks for the reviews [~asolimando] , [~kgyrtkirk] !
> Uncaught exception in QTestDatabaseHandler#afterTest causes unrelated test
> failures
> -----------------------------------------------------------------------------------
>
> Key: HIVE-25676
> URL: https://issues.apache.org/jira/browse/HIVE-25676
> Project: Hive
> Issue Type: Bug
> Components: Testing Infrastructure
> Reporter: Stamatis Zampetakis
> Assignee: Stamatis Zampetakis
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> When for some reason we fail to cleanup a database after running a test using
> the {{qt:database}} option an exception is raised and propagates up the
> stack. Not catching it in
> [QTestDatabaseHandler#afterTest|https://github.com/apache/hive/blob/0616bcaa2436ccbf388b635bfea160b47849553c/itests/util/src/main/java/org/apache/hadoop/hive/ql/qoption/QTestDatabaseHandler.java#L124]
> disrupts subsequent cleanup actions, which are not executed, and leads to
> failures in subsequent tests which are not related.
>
> Moreover, the exception leaves {{QTestDatabaseHandler}} in an invalid state
> since the internal map holding the running databases is not updated.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)