Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 80225 invoked from network); 3 Dec 2010 12:45:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Dec 2010 12:45:33 -0000 Received: (qmail 80570 invoked by uid 500); 3 Dec 2010 12:45:33 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 80378 invoked by uid 500); 3 Dec 2010 12:45:32 -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 80371 invoked by uid 99); 3 Dec 2010 12:45:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 12:45:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 12:45:31 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB3CjBAu025294 for ; Fri, 3 Dec 2010 12:45:11 GMT Message-ID: <2930944.92801291380311503.JavaMail.jira@thor> Date: Fri, 3 Dec 2010 07:45:11 -0500 (EST) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4918) Minor refactoring of SPSDescriptor In-Reply-To: <6967938.306551290682273423.JavaMail.jira@thor> 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/DERBY-4918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12966513#action_12966513 ] Knut Anders Hatlen commented on DERBY-4918: ------------------------------------------- Patch 2a looks like a nice cleanup. +1 One small nit is that some people (for instance these guys: http://pmd.sourceforge.net/rules/strictexception.html#AvoidThrowingNullPointerException) claim that throwing a NullPointerException is confusing and recommend using IllegalArgumentException instead. Not that it's supposed to ever happen... > Minor refactoring of SPSDescriptor > ---------------------------------- > > Key: DERBY-4918 > URL: https://issues.apache.org/jira/browse/DERBY-4918 > Project: Derby > Issue Type: Improvement > Components: SQL > Affects Versions: 10.8.0.0 > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Priority: Minor > Fix For: 10.8.0.0 > > Attachments: derby-4918-1a-misc.diff, derby-4918-1a-misc.stat, derby-4918-2a-remove_setUUID.diff > > > The class SPSDescriptor is kind of hard to understand, and doesn't quite follow the pattern used by other tuple descriptors. Parts of the code don't agree with the documentation (i.e. SPS_TYPE_TRIGGER marked as not implemented) > This issue tracks work to make the class easier to understand and to modify. > The critical part that may need to be changed is the use of synchronized (this). The problem is that database locks are obtained within the critical regions, and in some special cases this causes deadlocks. I'm not yet certain this can be fixed at this level (only), but I'll continue investigation. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.