Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 92286 invoked from network); 29 Jun 2010 09:17:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Jun 2010 09:17:49 -0000 Received: (qmail 3828 invoked by uid 500); 29 Jun 2010 09:17:49 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 3670 invoked by uid 500); 29 Jun 2010 09:17:46 -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 3663 invoked by uid 99); 29 Jun 2010 09:17:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jun 2010 09:17:45 +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; Tue, 29 Jun 2010 09:17:43 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5T99ppV028946 for ; Tue, 29 Jun 2010 09:09:51 GMT Message-ID: <7691819.111041277802591664.JavaMail.jira@thor> Date: Tue, 29 Jun 2010 05:09:51 -0400 (EDT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4700) Add method to obtain a bogus port in TestConfiguration In-Reply-To: <4169291.1681276583304138.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-4700: ----------------------------------- Issue & fix info: [Patch Available] > Add method to obtain a bogus port in TestConfiguration > ------------------------------------------------------ > > Key: DERBY-4700 > URL: https://issues.apache.org/jira/browse/DERBY-4700 > Project: Derby > Issue Type: Improvement > Components: Test > Affects Versions: 10.7.0.0 > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Priority: Minor > Attachments: derby-4700-1a.diff > > > In some cases one needs to obtain a port number on which there is no Derby network server. > Today this is solved in an ad-hoc way, for instance by using the current port minus one. When running tests in parallel, there is a chance that a port where there actually is a Derby network server listening is picked. > As a start, I suggest that the bogus port is allocated to the last port in the port range configured for the run: baseport + MAX_PORTS_USED -1. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.