diff --git a/itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniLlapArrow.java b/itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniLlapArrow.java index 2e7c21f7ba..e125ba3de4 100644 --- a/itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniLlapArrow.java +++ b/itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniLlapArrow.java @@ -43,11 +43,16 @@ import static org.junit.Assert.assertNull; import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.permission.FsPermission; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * TestJdbcWithMiniLlap for Arrow format */ public class TestJdbcWithMiniLlapArrow extends BaseJdbcWithMiniLlap { + + protected static final Logger LOG = LoggerFactory.getLogger(TestJdbcWithMiniLlapArrow.class); + private static MiniHS2 miniHS2 = null; private static final String tableName = "testJdbcMinihs2Tbl"; private static String dataFileDir; @@ -350,12 +355,13 @@ public void run() { stmt.close(); con2.close(); con.close(); + // We check the result + assertNotNull("tExecute", tExecuteHolder.throwable); + assertNull("tCancel", tKillHolder.throwable); } catch (Exception e) { // ignore error + LOG.error("Exception in testKillQuery", e); } - - assertNotNull("tExecute", tExecuteHolder.throwable); - assertNull("tCancel", tKillHolder.throwable); } }