Details
-
Task
-
Resolution: Fixed
-
Major
-
6.1
-
None
-
Unknown
-
N/A
-
N/A
-
Description
Right now we wait 15 seconds to check if an XWiki instance is already started before starting one. This is too long and not necessary.
01:37:49.819 [main] INFO o.x.test.integration.XWikiExecutor - Checking if an XWiki server is already started at [http://localhost:8080] 01:38:04.880 [main] INFO o.x.test.integration.XWikiExecutor - No server is responding on [http://localhost:8080/xwiki/bin/get/Main/] after [15] seconds 01:38:04.880 [main] INFO o.x.test.integration.XWikiExecutor - Starting XWiki server at [http://localhost:8080] 01:38:04.903 [main] INFO o.x.test.integration.XWikiExecutor - Checking that XWiki is up and running... 01:38:04.909 [Thread-2] INFO o.x.t.i.XWikiLogOutputStream - Starting Jetty on port 8080, please wait... ...
Instead do the following:
/** * Start XWiki using the following strategy: * <ul> * <li>If the {@link #VERIFY_RUNNING_XWIKI_AT_START} property is set then checks if an XWiki instance is already * running before trying to start XWiki and if so, reuse it and don't start XWiki</li> * <li>If the {@link #VERIFY_RUNNING_XWIKI_AT_START} property is set to false then verify if some XWiki instance * is already running by verifying if the port is free and fail if so. Otherwise start XWiki.</li> * </ul> */