db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4700) Add method to obtain a bogus port in TestConfiguration
Date Wed, 14 Jul 2010 18:19:51 GMT

     [ 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:   (was: [Patch Available])

To stop the tinderbox from failing, I decided to commit patch 2a.
I increased the maximum number of ports to 20, and also updated the wiki.
This can be changed again if the discussion on derby-dev ends with a different conclusion.

Committed to trunk with revision 964115, I will backport it to 10.6 tomorrow if there are
no problems.

> 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
>             Fix For: 10.6.1.1, 10.7.0.0
>
>         Attachments: derby-4700-1a.diff, derby-4700-1b.diff, derby-4700-2a-static_bogus.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.


Mime
View raw message