### Motivation
There are several tests that occasionally are failing with bind error. Eg. from
`LoadBalancerTest`:
```
io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address
already in use
at io.netty.channel.unix.Errors.newIOException(Errors.java:122)
at io.netty.channel.unix.Socket.bind(Socket.java:287)
at
io.netty.channel.epoll.AbstractEpollChannel.doBind(AbstractEpollChannel.java:687)
at
io.netty.channel.epoll.EpollServerSocketChannel.doBind(EpollServerSocketChannel.java:70)
at
io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:558)
at
io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1338)
at
io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501)
at
io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486)
at
io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:999)
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:254)
at
io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366)
at
io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
```
### Modifications
* Make sure the bookies in the ensemble will get each a port from
`PortManager` so that the port is locked and not reused.
[ Full content available at: https://github.com/apache/pulsar/pull/2725 ]
This message was relayed via gitbox.apache.org for [email protected]