Repository: asterixdb
Updated Branches:
  refs/heads/master 54de9a676 -> a8aaf593e


[ASTERIXDB-232]6[TEST] Increase Result TTL to 5 Mins

- user model changes: no
- storage format changes: no
- interface changes: no

Details:
- Increase result TTL to 5 mins in AsterixHyracksIntegrationUtil
  to avoid intermittent test failures due to long GC pauses in
  long running queries.

Change-Id: I6ecf0e4ac3578027ed12ac9d34d8b2b8f04b348b
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2526
Reviewed-by: Michael Blow <mb...@apache.org>
Integration-Tests: Michael Blow <mb...@apache.org>
Tested-by: Michael Blow <mb...@apache.org>


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

Branch: refs/heads/master
Commit: a8aaf593eb1d5ba57271cc5480b746bd9a0812bb
Parents: 54de9a6
Author: Murtadha Hubail <mhub...@apache.org>
Authored: Mon Mar 26 09:30:48 2018 +0300
Committer: Murtadha Hubail <mhub...@apache.org>
Committed: Mon Mar 26 09:12:12 2018 -0700

----------------------------------------------------------------------
 .../asterix/api/common/AsterixHyracksIntegrationUtil.java      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/a8aaf593/asterixdb/asterix-app/src/test/java/org/apache/asterix/api/common/AsterixHyracksIntegrationUtil.java
----------------------------------------------------------------------
diff --git 
a/asterixdb/asterix-app/src/test/java/org/apache/asterix/api/common/AsterixHyracksIntegrationUtil.java
 
b/asterixdb/asterix-app/src/test/java/org/apache/asterix/api/common/AsterixHyracksIntegrationUtil.java
index acc3970..cc70d57 100644
--- 
a/asterixdb/asterix-app/src/test/java/org/apache/asterix/api/common/AsterixHyracksIntegrationUtil.java
+++ 
b/asterixdb/asterix-app/src/test/java/org/apache/asterix/api/common/AsterixHyracksIntegrationUtil.java
@@ -30,6 +30,7 @@ import java.nio.file.Paths;
 import java.nio.file.attribute.BasicFileAttributes;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.concurrent.TimeUnit;
 import java.util.function.BiPredicate;
 import java.util.stream.Stream;
 
@@ -70,6 +71,7 @@ public class AsterixHyracksIntegrationUtil {
             joinPath(getProjectPath().toString(), "src", "test", "resources", 
"cc.conf");
     private static final String DEFAULT_STORAGE_PATH = joinPath("target", 
"io", "dir");
     private static String storagePath = DEFAULT_STORAGE_PATH;
+    private static final long RESULT_TTL = TimeUnit.MINUTES.toMillis(5);
 
     static {
         System.setProperty("java.util.logging.manager", 
org.apache.logging.log4j.jul.LogManager.class.getName());
@@ -198,7 +200,7 @@ public class AsterixHyracksIntegrationUtil {
         
ccConfig.setClientListenAddress(Inet4Address.getLoopbackAddress().getHostAddress());
         ccConfig.setClientListenPort(DEFAULT_HYRACKS_CC_CLIENT_PORT);
         ccConfig.setClusterListenPort(DEFAULT_HYRACKS_CC_CLUSTER_PORT);
-        ccConfig.setResultTTL(120000L);
+        ccConfig.setResultTTL(RESULT_TTL);
         ccConfig.setResultSweepThreshold(1000L);
         ccConfig.setEnforceFrameWriterProtocol(true);
         configManager.set(ControllerConfig.Option.DEFAULT_DIR, 
joinPath(getDefaultStoragePath(), "asterixdb"));
@@ -217,7 +219,7 @@ public class AsterixHyracksIntegrationUtil {
         
ncConfig.setDataListenAddress(Inet4Address.getLoopbackAddress().getHostAddress());
         
ncConfig.setResultListenAddress(Inet4Address.getLoopbackAddress().getHostAddress());
         
ncConfig.setMessagingListenAddress(Inet4Address.getLoopbackAddress().getHostAddress());
-        ncConfig.setResultTTL(120000L);
+        ncConfig.setResultTTL(RESULT_TTL);
         ncConfig.setResultSweepThreshold(1000L);
         ncConfig.setVirtualNC();
         configManager.set(ControllerConfig.Option.DEFAULT_DIR, 
joinPath(getDefaultStoragePath(), "asterixdb", ncName));

Reply via email to