Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-755

bootTimeout for embedded server uses milis instead of nanos

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Alpha10
    • 2.0.0.Alpha4
    • 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:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: