-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31226/#review73369
-----------------------------------------------------------



core/src/main/scala/kafka/consumer/ZookeeperConsumerConnector.scala
<https://reviews.apache.org/r/31226/#comment119678>

    I'm confused... what's wrong with:
    "InetAddress.getAddress"
    or 
    "InetAddress.getLocalHost.getAddress"
    ?



core/src/test/scala/unit/kafka/consumer/ZookeeperConsumerConnectorTest.scala
<https://reviews.apache.org/r/31226/#comment119679>

    I don't see any asserts here... Can you document what will a failure look 
like?
    
    I assume that this doesn't actually test a non-resolving host (since this 
is impossible to create in a test, as you noted), so what do we test here?


- Gwen Shapira


On Feb. 20, 2015, 3:07 p.m., Jonathan Rafalski wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/31226/
> -----------------------------------------------------------
> 
> (Updated Feb. 20, 2015, 3:07 p.m.)
> 
> 
> Review request for kafka.
> 
> 
> Repository: kafka
> 
> 
> Description
> -------
> 
> adding try/catch to getting hostname to allow the use of the first 
> non-loopback IP address when hostname is not resolvable.
> 
> 
> Diffs
> -----
> 
>   core/src/main/scala/kafka/consumer/ZookeeperConsumerConnector.scala 3e1718b 
>   
> core/src/test/scala/unit/kafka/consumer/ZookeeperConsumerConnectorTest.scala 
> 8c4687b 
> 
> Diff: https://reviews.apache.org/r/31226/diff/
> 
> 
> Testing
> -------
> 
> for testing this code I included the unit test that forces the generation of 
> the ID however if you cannot get your local to not resovle you will need to 
> manually throw the exception in the try/catch in order to test.
> 
> 
> Thanks,
> 
> Jonathan Rafalski
> 
>

Reply via email to