Hi Hemanth, it was introduced on 04/04/2015 at github, so after the 0.8.2.0 version, it will be part of the 0.9.0.0 release.
On Thu, Nov 12, 2015 at 8:39 AM Hemanth Yamijala <yhema...@gmail.com> wrote: > Thanks, Ewen. I did know passing 0 would work, but didn't find an API to > get back the bound port. Which version of Kafka library is that in? We are > using 0.8.2.0 Kafka and it doesn't seem to be available there? > > Thanks > Hemanth > > On Wed, Nov 11, 2015 at 11:39 PM, Ewen Cheslack-Postava <e...@confluent.io > > > wrote: > > > Passing 0 as the port should let you do this. This is how we get the > tests > > to work without assuming a specific port is available. The > > KafkaServer.boundPort(SecurityProtocol) method can be used to get the > port > > that was bound. > > > > -Ewen > > > > On Tue, Nov 10, 2015 at 11:23 PM, Hemanth Yamijala <yhema...@gmail.com> > > wrote: > > > > > Hello, > > > > > > Is there any way to specify that the Kafka broker should bind to any > > > available port. This could be used, maybe for an embedded Kafka > instance, > > > etc. > > > > > > Thanks > > > Hemanth > > > > > > > > > > > -- > > Thanks, > > Ewen > > >