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


Thanks for the patch. Looks good. Just a couple of minor comments below.

Also, we probably can wait until KAFKA-1928 is checked in first to avoid the 
rebase overhead.


clients/src/main/java/org/apache/kafka/clients/NetworkClient.java
<https://reviews.apache.org/r/34608/#comment136714>

    Instead of passing in the complete pollResult, would it be better to just 
pass in the part that's needed in each of the handling method?



clients/src/main/java/org/apache/kafka/common/network/PollResult.java
<https://reviews.apache.org/r/34608/#comment136715>

    Could we get rid of the get part in the method name? Instead of 
getCompletedSends(), we can just have completedSends().


- Jun Rao


On May 26, 2015, 4:38 p.m., Jason Gustafson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/34608/
> -----------------------------------------------------------
> 
> (Updated May 26, 2015, 4:38 p.m.)
> 
> 
> Review request for kafka.
> 
> 
> Bugs: KAFKA-2217
>     https://issues.apache.org/jira/browse/KAFKA-2217
> 
> 
> Repository: kafka
> 
> 
> Description
> -------
> 
> KAFKA-2217; updated for review comments
> 
> 
> KAFKA-2217; add shortcut from poll when there's nothing to do
> 
> 
> Diffs
> -----
> 
>   clients/src/main/java/org/apache/kafka/clients/NetworkClient.java 
> 435fbb5116e80302eba11ed1d3069cb577dbdcbd 
>   clients/src/main/java/org/apache/kafka/common/network/PollResult.java 
> PRE-CREATION 
>   clients/src/main/java/org/apache/kafka/common/network/Selectable.java 
> b5f8d83e89f9026dc0853e5f92c00b2d7f043e22 
>   clients/src/main/java/org/apache/kafka/common/network/Selector.java 
> 57de0585e5e9a53eb9dcd99cac1ab3eb2086a302 
>   clients/src/test/java/org/apache/kafka/common/network/SelectorTest.java 
> d5b306b026e788b4e5479f3419805aa49ae889f3 
>   clients/src/test/java/org/apache/kafka/test/MockSelector.java 
> ea89b06a4c9e5bb351201299cd3037f5226f0e6c 
> 
> Diff: https://reviews.apache.org/r/34608/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Jason Gustafson
> 
>

Reply via email to