Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 1939 invoked from network); 15 Mar 2007 13:18:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2007 13:18:08 -0000 Received: (qmail 38994 invoked by uid 500); 15 Mar 2007 13:18:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 38958 invoked by uid 500); 15 Mar 2007 13:18:15 -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 38949 invoked by uid 99); 15 Mar 2007 13:18:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 06:18:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.18.1.36] (HELO gmp-ea-fw-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 06:18:03 -0700 Received: from d1-emea-10.sun.com ([192.18.2.120]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l2FDHf9k007356 for ; Thu, 15 Mar 2007 13:17:41 GMT Received: from conversion-daemon.d1-emea-10.sun.com by d1-emea-10.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JEY00M014S3BA00@d1-emea-10.sun.com> (original mail from Kristian.Waagan@Sun.COM) for derby-dev@db.apache.org; Thu, 15 Mar 2007 13:17:41 +0000 (GMT) Received: from [129.159.112.188] by d1-emea-10.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JEY00LXF4XDI9ET@d1-emea-10.sun.com> for derby-dev@db.apache.org; Thu, 15 Mar 2007 13:17:38 +0000 (GMT) Date: Thu, 15 Mar 2007 14:17:37 +0100 From: Kristian Waagan Subject: Suspectible swallowing of AssertFailure in BTreeScanInfo Sender: Kristian.Waagan@Sun.COM To: Derby Development Message-id: <45F94771.8050204@Sun.com> Organization: Sun Microsystems Inc. MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; no-NO; rv:1.8.0.9) Gecko/20061229 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, Work in the access layer revealed something I find a bit disturbing, at least with the way the code looks today. In the constructor of impl.store.access.btree.BTreeScanInfo: try { stat_treeHeight = scan.getHeight(); } catch (Throwable t) { stat_treeHeight = -1; } I didn't understand why Throwable was caught and ignored, so first I tried to change it to StandardException. This caused the test ddlTableLockMode to fail. I looked at what was going on, and found this to be thrown from the code above (code modified to print the Throwable): *** Start: ddlTableLockMode jdk1.5.0_11 2007-03-15 13:53:12 *** 48a49,52 > org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED ControlRow.Get() is being called on a closed container. > org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED ControlRow.Get() is being called on a closed container. > org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED ControlRow.Get() is being called on a closed container. > org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED ControlRow.Get() is being called on a closed container. Test Failed. *** End: ddlTableLockMode jdk1.5.0_11 2007-03-15 13:53:21 *** As I said, I find this a bit disturbing. Can anyone with knowledge of this part of the code shed some light on this? Specifically: a) Is this expected behavior? b) Can you add a descriptive comment for the catch block? c) Should the catch block be more specific, and maybe check for the expected assert failure? thanks, -- Kristian