You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Dag H. Wanvik" <Da...@Sun.COM> on 2009/06/26 22:23:01 UTC
Re: [Db-derby Wiki] Update of "DerbyJUnitTesting" by TiagoEspinha
Apache Wiki <wi...@apache.org> writes:
> + Note that by default, the tests will attempt to use the port 1527 as this is the default port for Derby. Also, when running suites.All, a maximum of 10 ports will be used starting on 1527. No other ports will be used other than 1527+10.
> +
> + To run the suites or individual tests with a different port, the derby.tests.basePort property must be specified. In this case, the ten ports that suites.All requires to run will start on basePort rather than on 1527.
> +
http://db.apache.org/derby/docs/dev/ref/rrefattribslaveport.html:
> If it is not specified, the default port value is 4851.
Is this being handled?
Dag
Re: [Db-derby Wiki] Update of "DerbyJUnitTesting" by TiagoEspinha
Posted by "Dag H. Wanvik" <Da...@Sun.COM>.
Tiago Espinha <ti...@espinhas.net> writes:
> Interesting. I did address replication in
> replicationTests/ReplicationRun.java and all the ports there were taken care
> of. I'm not sure about this 4851 port. This port isn't mentioned anywhere in
> the tests and it might be that the ReplicationRun was actually overriding
> this port for some reason.
Right. If an explicit port is used in all the replication tests, we
should be ok :) Thanks for fixing this.
Thanks,
Dag
>
> -----------------8<---------------
> slaveServerPort = 4527;
> util.DEBUG("slaveServerPort: " + slaveServerPort);
> slaveReplPort = 8888;
> ------------------8<---------------
>
> This is how the ReplicationRun was defining the ports. Now all the
> alternative, replication and JMX ports are offsets from the basePort
> property (or from 1527 if a property isn't set).
Re: [Db-derby Wiki] Update of "DerbyJUnitTesting" by TiagoEspinha
Posted by Tiago Espinha <ti...@espinhas.net>.
Interesting. I did address replication in
replicationTests/ReplicationRun.java and all the ports there were taken care
of. I'm not sure about this 4851 port. This port isn't mentioned anywhere in
the tests and it might be that the ReplicationRun was actually overriding
this port for some reason.
-----------------8<---------------
slaveServerPort = 4527;
util.DEBUG("slaveServerPort: " + slaveServerPort);
slaveReplPort = 8888;
------------------8<---------------
This is how the ReplicationRun was defining the ports. Now all the
alternative, replication and JMX ports are offsets from the basePort
property (or from 1527 if a property isn't set).
Tiago
On Fri, Jun 26, 2009 at 9:23 PM, Dag H. Wanvik <Da...@sun.com> wrote:
> Apache Wiki <wi...@apache.org> writes:
>
> > + Note that by default, the tests will attempt to use the port 1527 as
> this is the default port for Derby. Also, when running suites.All, a maximum
> of 10 ports will be used starting on 1527. No other ports will be used other
> than 1527+10.
> > +
> > + To run the suites or individual tests with a different port, the
> derby.tests.basePort property must be specified. In this case, the ten ports
> that suites.All requires to run will start on basePort rather than on 1527.
> > +
>
>
> http://db.apache.org/derby/docs/dev/ref/rrefattribslaveport.html:
>
> > If it is not specified, the default port value is 4851.
>
> Is this being handled?
>
> Dag
>