[jboss-jira] [JBoss JIRA] (WFCORE-755) bootTimeout for embedded server uses milis instead of nanos
Petr Kremensky (JIRA)
issues at jboss.org
Thu Jun 11 04:56:04 EDT 2015
[ https://issues.jboss.org/browse/WFCORE-755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Petr Kremensky moved JBEAP-305 to WFCORE-755:
---------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-755 (was: JBEAP-305)
Workflow: GIT Pull Request workflow (was: CDW v1)
Affects Version/s: 2.0.0.Alpha4
(was: EAP 7.0.0.DR3)
Component/s: CLI
(was: CLI)
Target Release: (was: EAP 7.0.0.GA)
> bootTimeout for embedded server uses milis instead of nanos
> -----------------------------------------------------------
>
> Key: WFCORE-755
> URL: https://issues.jboss.org/browse/WFCORE-755
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.0.0.Alpha4
> Reporter: Petr Kremensky
> Assignee: Brian Stansberry
>
> Value for --timeout argument needs to be set in microseconds instead of seconds.
> {code:java}
> // boot time is transformed into milis
> Long bootTimeout = null;
> String timeoutString = timeout.getValue(parsedCmd);
> if (timeoutString != null) {
> bootTimeout = TimeUnit.SECONDS.toMillis(Long.parseLong(timeoutString));
> }
> ...
> // but expired is transformed into nanos
> long expired = bootTimeout == null ? Long.MAX_VALUE : System.nanoTime() + bootTimeout;
> {code}
> Could be fixed by converting parsed timeoutString into nanos.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list