You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2021/08/02 10:44:57 UTC

[GitHub] [hive] pvary commented on a change in pull request #2552: HIVE-25367: Fix TestReplicationScenariosAcidTables#testMultiDBTxn

pvary commented on a change in pull request #2552:
URL: https://github.com/apache/hive/pull/2552#discussion_r680867108



##########
File path: itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/WarehouseInstance.java
##########
@@ -235,10 +235,7 @@ public WarehouseInstance run(String command) throws Throwable {
       driver.run(command);
       return this;
     } catch (CommandProcessorException e) {
-      if (e.getCause() != null) {
-        throw  e.getCause();
-      }
-      throw e;
+      throw e.getCause();

Review comment:
       I would keep the null check, so next time we might have a little bit more info when there is an error




-- 
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: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org