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 4942ed9..2e7c21f 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 @@ -346,9 +346,13 @@ public void run() { tKill.start(); tExecute.join(); tKill.join(); - stmt.close(); - con2.close(); - con.close(); + try { + stmt.close(); + con2.close(); + con.close(); + } catch (Exception e) { + // ignore error + } assertNotNull("tExecute", tExecuteHolder.throwable); assertNull("tCancel", tKillHolder.throwable);