This is an automated email from the ASF dual-hosted git repository.

dengzh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new ecdac363e04 Fix flaky test TestJdbcWithMiniHS2 
testHttpRetryOnServerIdleTimeout (#3547) (Zhihua Deng, reviewed by Ayush Saxena)
ecdac363e04 is described below

commit ecdac363e042200d85bb8b894aa20d91a1642a18
Author: dengzh <[email protected]>
AuthorDate: Fri Aug 26 20:19:46 2022 +0800

    Fix flaky test TestJdbcWithMiniHS2 testHttpRetryOnServerIdleTimeout (#3547) 
(Zhihua Deng, reviewed by Ayush Saxena)
---
 .../src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHS2.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHS2.java 
b/itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHS2.java
index ca13b79f8bd..2436f5f9d8f 100644
--- 
a/itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHS2.java
+++ 
b/itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHS2.java
@@ -1091,7 +1091,7 @@ public class TestJdbcWithMiniHS2 {
     stopMiniHS2();
     HiveConf conf = new HiveConf();
     // Set server's idle timeout to a very low value
-    conf.setVar(HiveConf.ConfVars.HIVE_SERVER2_THRIFT_HTTP_MAX_IDLE_TIME, "5");
+    conf.setVar(HiveConf.ConfVars.HIVE_SERVER2_THRIFT_HTTP_MAX_IDLE_TIME, 
"5000");
     startMiniHS2(conf, true);
     String userName = System.getProperty("user.name");
     Connection conn = 
getConnection(miniHS2.getJdbcURL(testDbName)+";retries=3", userName, 
"password");

Reply via email to