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

stoty pushed a commit to branch 4.x
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x by this push:
     new 237b724  PHOENIX-6288 Minicluster startup problems on Jenkins
237b724 is described below

commit 237b7248dafe51087a8a95aa5bc67e5ce141e89d
Author: Istvan Toth <st...@apache.org>
AuthorDate: Wed Dec 30 16:16:47 2020 +0100

    PHOENIX-6288 Minicluster startup problems on Jenkins
    
    increase minicluster master startup timeout to 200 seconds
    log minicluster startup time
---
 phoenix-core/src/test/java/org/apache/phoenix/query/BaseTest.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/phoenix-core/src/test/java/org/apache/phoenix/query/BaseTest.java 
b/phoenix-core/src/test/java/org/apache/phoenix/query/BaseTest.java
index bbe0371..05773fb 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/query/BaseTest.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/query/BaseTest.java
@@ -547,7 +547,10 @@ public abstract class BaseTest {
         setUpConfigForMiniCluster(conf, overrideProps);
         utility = new HBaseTestingUtility(conf);
         try {
+            long startTime = System.currentTimeMillis();
             utility.startMiniCluster(NUM_SLAVES_BASE);
+            long startupTime = System.currentTimeMillis()-startTime;
+            LOGGER.info("HBase minicluster startup complete in {} ms", 
startupTime);
             return getLocalClusterUrl(utility);
         } catch (Throwable t) {
             throw new RuntimeException(t);
@@ -626,6 +629,8 @@ public abstract class BaseTest {
         conf.setInt("hbase.assignment.zkevent.workers", 5);
         conf.setInt("hbase.assignment.threads.max", 5);
         conf.setInt("hbase.catalogjanitor.interval", 5000);
+        //Allow for an extra long miniCluster startup time in case of an 
overloaded test machine
+        conf.setInt("hbase.master.start.timeout.localHBaseCluster", 200000);
         conf.setInt(QueryServices.TASK_HANDLING_INTERVAL_MS_ATTRIB, 10000);
         conf.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 2);
         conf.setInt(NUM_CONCURRENT_INDEX_WRITER_THREADS_CONF_KEY, 1);

Reply via email to