[JBoss JIRA] (JBTM-3322) Quickstart shell scripts should consider MFACTOR for any used timeout
by Ondrej Chaloupka (Jira)
Ondrej Chaloupka created JBTM-3322:
--------------------------------------
Summary: Quickstart shell scripts should consider MFACTOR for any used timeout
Key: JBTM-3322
URL: https://issues.redhat.com/browse/JBTM-3322
Project: JBoss Transaction Manager
Issue Type: Bug
Components: Quickstarts
Affects Versions: 5.10.4.Final
Reporter: Ondrej Chaloupka
Assignee: Ondrej Chaloupka
Some of the Narayana quickstarts uses the shell scripts to run the quickstarts.
Some of them use the {{sleep}} or waiting for some time to get response. Any of these attempts which are using timeout to wait/sleep should be using factor of timeout that could be set in jenkins job which starts the quickstarts scripts.
For the Narayana CI AMS the we hit failures where server is not started fast enough and failure occurs.
E.g. in the next snippet the LRA thorntail was not able to start in 10 seconds
{code}
+ echo '===== starting service on port 8082'
===== starting service on port 8082
+ service_pid=22993
+ sleep 10
+ java -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses -Dthorntail.http.port=8082 -Dlra.http.port=8080 -Dthorntail.transactions.object-store-path=../txlogs -jar target/lra-participant-example-thorntail.jar
2020-05-19 07:31:21,337 WARN [org.jboss.as.dependency.private] (MSC service thread 1-6) WFLYSRV0018: Deployment "deployment.lra-coordinator.war" is using a private module ("org.jboss.jts") which may be changed or removed in future versions without notice.
2020-05-19 07:31:21,353 INFO [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0003: Processing weld deployment lra-coordinator.war
2020-05-19 07:31:28,225 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: Thorntail 2.6.0.Final (WildFly Core 10.0.3.Final) starting
2020-05-19 07:31:28,268 INFO [org.wildfly.swarm] (MSC service thread 1-2) THORN0019: Install MSC service for command line args: []
2020-05-19 07:31:29,370 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0012: Started server default-server.
2020-05-19 07:31:30,942 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0018: Host default-host starting
+ '[' '' = true ']'
+ echo '===== testing service'
+ test_service '1 completed and 0 compensated'
===== testing service
+ curl -4 -X PUT -I http://localhost:8082/cdi
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 74 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
HTTP/1.1 404 Not Found
...
2020-05-19 07:31:32,469 INFO [org.jboss.as.server] (main) WFLYSRV0010: Deployed "lra-participant-example.war" (runtime-name : "lra-participant-example.war")
2020-05-19 07:31:32,475 INFO [org.wildfly.swarm] (main) THORN99999: Thorntail is Ready
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)