Return-Path: X-Original-To: apmail-db-torque-dev-archive@www.apache.org Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 30454D50C for ; Mon, 24 Sep 2012 07:08:30 +0000 (UTC) Received: (qmail 74797 invoked by uid 500); 24 Sep 2012 07:08:29 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 74771 invoked by uid 500); 24 Sep 2012 07:08:29 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 74688 invoked by uid 99); 24 Sep 2012 07:08:29 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 07:08:29 +0000 Date: Mon, 24 Sep 2012 18:08:29 +1100 (NCT) From: "Thomas Fox (JIRA)" To: torque-dev@db.apache.org Message-ID: <1413731597.115584.1348470509845.JavaMail.jiratomcat@arcas> Subject: [jira] [Closed] (TORQUE-122) TorqueInstance.shutdown() skips closing databases MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TORQUE-122?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Fox closed TORQUE-122. ----------------------------- =20 > TorqueInstance.shutdown() skips closing databases > ------------------------------------------------- > > Key: TORQUE-122 > URL: https://issues.apache.org/jira/browse/TORQUE-122 > Project: Torque > Issue Type: Bug > Components: Runtime > Affects Versions: 3.3-RC2 > Environment: Oracle11 > Reporter: Markus M=C3=BCller > Assignee: Thomas Fox > Fix For: 4.0-beta1 > > Original Estimate: 10m > Remaining Estimate: 10m > > While testing I noticed that TorqueInstance.shutdown() leaves the second = for-loop by 'break' if the database with the name DEFAULT_NAME is encounter= ed.=20 > Instead this iteration must be terminated by 'continue' without leaving t= he for-loop. > Otherwise all following databases wouldn't be closed. > Closing all databases is important if Torque.init() and .shutdown() are c= alled frequently during the same program execution. > Using the erroneous TorqueInstance.shutdown() I got e.g. the Oracle error= "ORA-00020: maximum number of processes (150) exceeded". > After patching TorqueInstance.shutdown() I succeeded in calling init/shut= down many thousand times from a single jUnit test. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org