sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject git commit: SENTRY-65: End to end test should set JDBC login timeout
Date Tue, 19 Nov 2013 02:10:41 GMT
Updated Branches:
  refs/heads/master 45cf5fb4f -> b00ccf587


SENTRY-65: End to end test should set JDBC login timeout


Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/b00ccf58
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/b00ccf58
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/b00ccf58

Branch: refs/heads/master
Commit: b00ccf5871c74cbc405a2be9b3b7d8b809c438d0
Parents: 45cf5fb
Author: Jarek Jarcec Cecho <jarcec@apache.org>
Authored: Mon Nov 18 18:09:03 2013 -0800
Committer: Jarek Jarcec Cecho <jarcec@apache.org>
Committed: Mon Nov 18 18:09:03 2013 -0800

----------------------------------------------------------------------
 .../sentry/tests/e2e/hive/hiveserver/AbstractHiveServer.java       | 2 ++
 .../sentry/tests/e2e/hive/hiveserver/EmbeddedHiveServer.java       | 1 +
 2 files changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/b00ccf58/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/AbstractHiveServer.java
----------------------------------------------------------------------
diff --git a/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/AbstractHiveServer.java
b/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/AbstractHiveServer.java
index 24a6fe9..badd523 100644
--- a/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/AbstractHiveServer.java
+++ b/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/AbstractHiveServer.java
@@ -54,6 +54,7 @@ public abstract class AbstractHiveServer implements HiveServer {
 
   public Connection createConnection(String user, String password) throws Exception{
     String url = getURL();
+    DriverManager.setLoginTimeout(30);
     Connection connection =  DriverManager.getConnection(url, user, password);
     return connection;
   }
@@ -74,6 +75,7 @@ public abstract class AbstractHiveServer implements HiveServer {
         throw new TimeoutException("Couldn't access new HiveServer: " + hiveServer.getURL());
       }
       try {
+        DriverManager.setLoginTimeout(30);
         Connection connection =  DriverManager.getConnection(hiveServer.getURL(), "hive",
"bar");
         connection.close();
         break;

http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/b00ccf58/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/EmbeddedHiveServer.java
----------------------------------------------------------------------
diff --git a/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/EmbeddedHiveServer.java
b/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/EmbeddedHiveServer.java
index 853f75a..ce3b97c 100644
--- a/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/EmbeddedHiveServer.java
+++ b/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/EmbeddedHiveServer.java
@@ -38,6 +38,7 @@ public class EmbeddedHiveServer implements HiveServer {
 
   public Connection createConnection(String user, String password) throws Exception{
     String url = getURL();
+    DriverManager.setLoginTimeout(30);
     Connection connection =  DriverManager.getConnection(url, user, password);
     return connection;
   }


Mime
View raw message