This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/master by this push: new d097857 PHOENIX-6288 Minicluster startup problems on Jenkins d097857 is described below commit d0978570a65b3191cff046abdfbe95d0d04f1121 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 2960081..4894727 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 @@ -548,7 +548,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); @@ -628,6 +631,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);