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

itests are very slow because of timeouts when waiting for commands

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: None
    • Labels:
      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. David Bosschaert Can you review if it is safe to remove this?

        Attachments

          Activity

            People

            • Assignee:
              chris@die-schneider.net Christian Schneider
              Reporter:
              chris@die-schneider.net Christian Schneider
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: