diff --git itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniLlapArrow.java itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniLlapArrow.java index 1aab03d..bc2480a 100644 --- itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniLlapArrow.java +++ itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniLlapArrow.java @@ -358,7 +358,7 @@ // wait for other thread to create the stmt handle int count = 0; - while (count < 10) { + while (++count <= 10) { try { tKillHolder.throwable = null; Thread.sleep(2000); @@ -380,7 +380,6 @@ stmt2.close(); break; } catch (SQLException e) { - count++; LOG.warn("Exception when kill query", e); tKillHolder.throwable = e; }