Return-Path: X-Original-To: apmail-incubator-connectors-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-connectors-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3569F9898 for ; Tue, 6 Mar 2012 17:33:19 +0000 (UTC) Received: (qmail 19462 invoked by uid 500); 6 Mar 2012 17:33:18 -0000 Delivered-To: apmail-incubator-connectors-dev-archive@incubator.apache.org Received: (qmail 19412 invoked by uid 500); 6 Mar 2012 17:33:18 -0000 Mailing-List: contact connectors-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: connectors-dev@incubator.apache.org Delivered-To: mailing list connectors-dev@incubator.apache.org Received: (qmail 19327 invoked by uid 99); 6 Mar 2012 17:33:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 17:33:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 17:33:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id ADDB1BD22 for ; Tue, 6 Mar 2012 17:32:57 +0000 (UTC) Date: Tue, 6 Mar 2012 17:32:57 +0000 (UTC) From: "Luca Stancapiano (Issue Comment Edited) (JIRA)" To: connectors-dev@incubator.apache.org Message-ID: <326684825.28214.1331055177713.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <521317366.28069.1331053258230.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (CONNECTORS-421) Test infrastructure's cleanup methods cause agents process to fail to start MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CONNECTORS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223447#comment-13223447 ] Luca Stancapiano edited comment on CONNECTORS-421 at 3/6/12 5:31 PM: --------------------------------------------------------------------- If I reset the variable in the resetEnvironment() simply I get a shutdown and the test never starts was (Author: luca.stancaqpiano): If I reset the variable in the resetEnvironment() simply I get a shutdown and the test never start > Test infrastructure's cleanup methods cause agents process to fail to start > --------------------------------------------------------------------------- > > Key: CONNECTORS-421 > URL: https://issues.apache.org/jira/browse/CONNECTORS-421 > Project: ManifoldCF > Issue Type: Bug > Components: Tests > Affects Versions: ManifoldCF 0.5 > Reporter: Karl Wright > Assignee: Karl Wright > Priority: Minor > Fix For: ManifoldCF 0.5 > > > The testing infrastructure attempts to clean up from a previous run of a test. If properties.xml is left around, however, this cleanup will succeed but prevent the agents process from starting in the test. That's because the addShutdownHook() is called, and when resetEnvironment() is called agentStop() is thus invoked, and once agentStop() is invoked agentStart() will just exit next time it is called. > The fix is to make resetEnvironment() reset the agents stop flag so that starting agents will then work. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira