Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-304

bootTimeout for embedded server uses milis instead of nanos

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.DR9
    • 7.0.0.DR3
    • CLI
    • None
    • Hide
      [disconnected /] embed-server --timeout=5
      Embedded server did not exit 'starting' status within 5 seconds
      [disconnected /] embed-server --timeout=5000
      Embedded server did not exit 'starting' status within 5000 seconds
      [disconnected /] embed-server --timeout=5000000
      [standalone@embedded /]
      
      Show
      [disconnected /] embed-server --timeout=5 Embedded server did not exit 'starting' status within 5 seconds [disconnected /] embed-server --timeout=5000 Embedded server did not exit 'starting' status within 5000 seconds [disconnected /] embed-server --timeout=5000000 [standalone@embedded /]

      Value for --timeout argument needs to be set in microseconds instead of seconds.

      // 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;
      

      Could be fixed by converting parsed timeoutString into nanos.

            rhn-cservice-bbaranow Bartosz Baranowski
            pkremens@redhat.com Petr Kremensky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: