karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-2532) itests are very slow because of timeouts when waiting for commands
Date Sat, 26 Oct 2013 06:14:30 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806012#comment-13806012
] 

Christian Schneider commented on KARAF-2532:
--------------------------------------------

I just tested and committed the fix. Build time on my machine returns to 11 minutes after
this from almost an hour before.

> itests are very slow because of timeouts when waiting for commands
> ------------------------------------------------------------------
>
>                 Key: KARAF-2532
>                 URL: https://issues.apache.org/jira/browse/KARAF-2532
>             Project: Karaf
>          Issue Type: Bug
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.0
>
>
> 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?



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message