Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2532

itests are very slow because of timeouts when waiting for commands

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • None

    Description

      Currently the itests seem to timeout waiting for commands whenever they try to execute any command.

      These lines in KarafTestSupport seem to be the problem.
      if (colonIndx > 0)

      { String scope = command.substring(0, colonIndx); String function = command.substring(colonIndx + 1); waitForService("(&(osgi.command.scope=" + scope + ")(osgi.command.function=" + function + ")(org.apache.karaf.service.guard.roles=*))", SERVICE_TIMEOUT); }

      else

      { waitForService("(&(osgi.command.function=" + command + ")(org.apache.karaf.service.guard.roles=*))", SERVICE_TIMEOUT); }

      They seem to be related to the new role based security. The problem is that it does not find any services with this filter.

      When I remove the last part it works. bosschaert Can you review if it is safe to remove this?

      Attachments

        Activity

          People

            cschneider Christian Schneider
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: