You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/03/03 11:28:38 UTC

[24/50] incubator-kylin git commit: Update unit test

Update unit test

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

Branch: refs/heads/master
Commit: 27eb3fcde82f8321cdd49a67ce921bcf734c4be3
Parents: 270b56a
Author: Shao Feng, Shi <sh...@ebay.com>
Authored: Sun Feb 15 20:45:20 2015 +0800
Committer: Shao Feng, Shi <sh...@ebay.com>
Committed: Sun Feb 15 20:45:20 2015 +0800

----------------------------------------------------------------------
 pom.xml                                                       | 2 +-
 .../src/test/java/org/apache/kylin/jdbc/JDBCDriverTest.java   | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/27eb3fcd/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index af38a71..841d75b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -588,7 +588,7 @@
                                     <value>false</value>
                                 </property>
                             </systemProperties>
-                            <argLine>-Xms1G -Xmx6G -XX:PermSize=1G -XX:MaxPermSize=2G</argLine>
+                            <argLine>-Xms1G -Xmx2G -XX:PermSize=128M -XX:MaxPermSize=256M</argLine>
                         </configuration>
                     </plugin>
 

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/27eb3fcd/server/src/test/java/org/apache/kylin/jdbc/JDBCDriverTest.java
----------------------------------------------------------------------
diff --git a/server/src/test/java/org/apache/kylin/jdbc/JDBCDriverTest.java b/server/src/test/java/org/apache/kylin/jdbc/JDBCDriverTest.java
index 9aa8315..00d5ea2 100644
--- a/server/src/test/java/org/apache/kylin/jdbc/JDBCDriverTest.java
+++ b/server/src/test/java/org/apache/kylin/jdbc/JDBCDriverTest.java
@@ -1,11 +1,13 @@
 package org.apache.kylin.jdbc;
 
 import com.google.common.collect.Lists;
+import org.apache.commons.io.FileUtils;
 import org.apache.kylin.common.util.HBaseMetadataTestCase;
 import org.eclipse.jetty.server.Server;
 import org.eclipse.jetty.webapp.WebAppContext;
 import org.junit.*;
 
+import java.io.File;
 import java.sql.*;
 import java.util.List;
 import java.util.Properties;
@@ -43,6 +45,11 @@ public class JDBCDriverTest extends HBaseMetadataTestCase {
     protected static void stopJetty() throws Exception {
         if (server != null)
             server.stop();
+
+        File workFolder = new File("work");
+        if(workFolder.isDirectory() && workFolder.exists()) {
+            FileUtils.deleteDirectory(workFolder);
+        }
     }
 
     protected static void startJetty() throws Exception {