Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-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 4C2FE109F2 for ; Wed, 10 Apr 2013 13:11:52 +0000 (UTC) Received: (qmail 31387 invoked by uid 500); 10 Apr 2013 13:11:52 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 31078 invoked by uid 500); 10 Apr 2013 13:11:47 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 31038 invoked by uid 99); 10 Apr 2013 13:11:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 13:11:46 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rick.hillegas@oracle.com designates 141.146.126.69 as permitted sender) Received: from [141.146.126.69] (HELO aserp1040.oracle.com) (141.146.126.69) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 13:11:37 +0000 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r3ADBFmb019097 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 10 Apr 2013 13:11:16 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r3ADBF3M026240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 10 Apr 2013 13:11:15 GMT Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r3ADBFcN013239 for ; Wed, 10 Apr 2013 13:11:15 GMT Received: from dhcp-amer-vpn-rmdc-anyconnect-10-159-109-34.vpn.oracle.com (/10.159.109.34) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 10 Apr 2013 06:11:15 -0700 Message-ID: <516564F1.4020802@oracle.com> Date: Wed, 10 Apr 2013 06:11:13 -0700 From: Rick Hillegas User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: should attempts to shut down the database timeout if they exceed DriverManager.setLoginTimeout( N )? References: <51647E0C.2000600@sbcglobal.net> In-Reply-To: <51647E0C.2000600@sbcglobal.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Virus-Checked: Checked by ClamAV on apache.org On 4/9/13 1:46 PM, Mike Matrigali wrote: > Derby uses making a connection to shutdown the database, and in > DERBY-6122 it looks like that attempt to shutdown the database > can timeout. Thanks for raising this issue, Mike. Login timeouts could interfere with orderly shutdown for several reasons, including: A) Network problems which slow down LDAP authentication. B) Heavily loaded databases which need a lot of time to quiesce. If login timeouts turn out to be a problem for orderly shutdown, one solution might be to implement an alternative api for bringing down a database and/or engine. See this very old enhancement request: DERBY-586. From time to time we get static about these two features of the Derby shutdown api: 1) It's quirky to shutdown via a startup api. 2) It's annoying that a successful shutdown results in an exception which the application has to catch. > > I do wonder if this is what a user would expect? Probably not. But with or without timeouts, the Derby shutdown api isn't what people coming from other databases expect. I think we have to live with this additional kink as long as we overload the JDBC connection api this way. Thanks, -Rick > > /mikem >