Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 68821 invoked from network); 11 Oct 2006 16:35:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2006 16:35:33 -0000 Received: (qmail 40656 invoked by uid 500); 11 Oct 2006 16:35:33 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 40435 invoked by uid 500); 11 Oct 2006 16:35: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 40426 invoked by uid 99); 11 Oct 2006 16:35:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 09:35:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [63.82.107.6] (HELO red.amberpoint.com) (63.82.107.6) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 09:35:28 -0700 Received: from [127.0.0.1] (bpendleton-dsk2.edgility.com [10.10.11.13]) by red.amberpoint.com (8.12.11/8.12.11) with ESMTP id k9BGZ5eW006095 for ; Wed, 11 Oct 2006 09:35:05 -0700 (PDT) Message-ID: <452D1D39.8000600@amberpoint.com> Date: Wed, 11 Oct 2006 09:35:05 -0700 From: Bryan Pendleton User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: DERBY-1434 - Client can send incorrect database name to server after having made multiple connections to different databases. References: <452521B4.7080209@sun.com> <45292BA9.2070700@amberpoint.com> <452D0C15.8050706@sun.com> <452D1106.60109@gmail.com> In-Reply-To: <452D1106.60109@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > If #2 is all it takes to fix the trace, and if there are no negative > effects, then that's what I vote for. I agree. Fixing the trace is important, sending the right database name in the PKGNAMCSN is important, and solution #2 gets my vote as well. I think it was important to explore the issue to this level of detail, to satisfy ourselves that there were no other functional problems besides the trace (that is, that we didn't execute the wrong queries, or mix up the results from two queries issued at the same time, or something like that). Also, I was hoping that we would be able to construct a regression test for this change, as something other than: - run this test program with these trace flags set - read the trace files and make sure they look ok as I would have preferred to see a more automatic regression test of some sort. But I haven't thought of a simple way to write such a regression test. Julius, I think that it's still worth incorporating your test program(s) into the patch as you construct it, even though using those test programs requires some manual actions (enabling the trace flags, reading the trace files). I think it would be good to include the instructions for how to use the test program(s) to verify the correct operation of the patch as code comments in the test programs themselves. This will be useful at least during the review of the patch, but I think that there's no harm in including the test programs as a permanent part of the regression suite, as they exercise a certain path through the code and shouldn't cause too much of a performance impact. And thanks for the detailed analysis of the problem, Julius; it has been quite illuminating to read your notes. thanks, bryan