Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 88AB0DFDD for ; Fri, 15 Feb 2013 13:29:16 +0000 (UTC) Received: (qmail 24182 invoked by uid 500); 15 Feb 2013 13:29:16 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 24119 invoked by uid 500); 15 Feb 2013 13:29:15 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 24075 invoked by uid 99); 15 Feb 2013 13:29:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 13:29:14 +0000 Date: Fri, 15 Feb 2013 13:29:14 +0000 (UTC) From: "Andreas Pieber (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-2190) Karaf itest fails on fast machine MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13579170#comment-13579170 ] Andreas Pieber commented on KARAF-2190: --------------------------------------- well, in fact I think we don't have more options than either add the sleep or simply wait till the bundle becomes available in the test. WDYT? > Karaf itest fails on fast machine > --------------------------------- > > Key: KARAF-2190 > URL: https://issues.apache.org/jira/browse/KARAF-2190 > Project: Karaf > Issue Type: Bug > Affects Versions: 2.3.1, 3.0.0 > Environment: Mac OSX > Reporter: Heath Kesler > Priority: Minor > > On a faster machine with SSD the itest for the wrapper command fails. The command is not found because the features:install has not completed before the wrapper:install is executed. This can be verified by adding a thread sleep for 1 second and it passes. > karaf@root> features:install wrapper > > wrapper:install > org.apache.felix.gogo.runtime.CommandNotFoundException: Command not found: wrapper:install > at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:471) > at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400) > at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) > at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) > at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120) > at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) > at org.apache.karaf.itests.KarafTestSupport$1.call(KarafTestSupport.java:108) > at org.apache.karaf.itests.KarafTestSupport$1.call(KarafTestSupport.java:102) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > > at java.lang.Thread.run(Thread.java:680) > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.508 sec <<< FAILURE! > > Results : > > Failed tests: installCommand:org.apache.karaf.itests.WrapperTest.installCommand:KarafTestContainer{mvn:org.apache.karaf\/apache-karaf\/2.3.1-SNAPSHOT\/tar.gz}(org.apache.karaf.itests.WrapperTest) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira