Re: Review Request 35371: Patch for KAFKA-2266

2015-06-12 Thread Jason Gustafson


> On June 12, 2015, 1:18 a.m., Jun Rao wrote:
> > clients/src/test/java/org/apache/kafka/common/network/SelectorTest.java, 
> > lines 256-257
> > 
> >
> > Waiting a second on this could be long and is not always reliable. 
> > Perhaps, we can introduce a waitUntil util like in kafka.utils.TestUtils 
> > and use it here.

I noticed that SelectorTest already provided a blockingConnect function, so I 
updated the test to use that.


- Jason


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


On June 12, 2015, 4:19 p.m., Jason Gustafson wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/35371/
> ---
> 
> (Updated June 12, 2015, 4:19 p.m.)
> 
> 
> Review request for kafka.
> 
> 
> Bugs: KAFKA-2266
> https://issues.apache.org/jira/browse/KAFKA-2266
> 
> 
> Repository: kafka
> 
> 
> Description
> ---
> 
> KAFKA-2266; use blockingConnect function in idle disconnect test case
> 
> 
> Diffs
> -
> 
>   clients/src/main/java/org/apache/kafka/common/network/Selector.java 
> effb1e63081ed2c1fff6d08d4ecdf8a3cb43e40a 
>   clients/src/test/java/org/apache/kafka/common/network/SelectorTest.java 
> d23b4b6a7060eeefa9f47f292fd818c881d789c1 
> 
> Diff: https://reviews.apache.org/r/35371/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Jason Gustafson
> 
>



Re: Review Request 35371: Patch for KAFKA-2266

2015-06-12 Thread Jason Gustafson

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

(Updated June 12, 2015, 4:19 p.m.)


Review request for kafka.


Bugs: KAFKA-2266
https://issues.apache.org/jira/browse/KAFKA-2266


Repository: kafka


Description (updated)
---

KAFKA-2266; use blockingConnect function in idle disconnect test case


Diffs (updated)
-

  clients/src/main/java/org/apache/kafka/common/network/Selector.java 
effb1e63081ed2c1fff6d08d4ecdf8a3cb43e40a 
  clients/src/test/java/org/apache/kafka/common/network/SelectorTest.java 
d23b4b6a7060eeefa9f47f292fd818c881d789c1 

Diff: https://reviews.apache.org/r/35371/diff/


Testing
---


Thanks,

Jason Gustafson



Re: Review Request 35371: Patch for KAFKA-2266

2015-06-11 Thread Jun Rao

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


Thanks for the patch. Good catch! A minor comment below.


clients/src/test/java/org/apache/kafka/common/network/SelectorTest.java


Waiting a second on this could be long and is not always reliable. Perhaps, 
we can introduce a waitUntil util like in kafka.utils.TestUtils and use it here.


- Jun Rao


On June 12, 2015, 1:02 a.m., Jason Gustafson wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/35371/
> ---
> 
> (Updated June 12, 2015, 1:02 a.m.)
> 
> 
> Review request for kafka.
> 
> 
> Bugs: KAFKA-2266
> https://issues.apache.org/jira/browse/KAFKA-2266
> 
> 
> Repository: kafka
> 
> 
> Description
> ---
> 
> KAFKA-2266; add dropped idle connections to the list of disconnects in 
> Selector
> 
> 
> Diffs
> -
> 
>   clients/src/main/java/org/apache/kafka/common/network/Selector.java 
> effb1e63081ed2c1fff6d08d4ecdf8a3cb43e40a 
>   clients/src/test/java/org/apache/kafka/common/network/SelectorTest.java 
> d23b4b6a7060eeefa9f47f292fd818c881d789c1 
> 
> Diff: https://reviews.apache.org/r/35371/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Jason Gustafson
> 
>



Review Request 35371: Patch for KAFKA-2266

2015-06-11 Thread Jason Gustafson

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

Review request for kafka.


Bugs: KAFKA-2266
https://issues.apache.org/jira/browse/KAFKA-2266


Repository: kafka


Description
---

KAFKA-2266; add dropped idle connections to the list of disconnects in Selector


Diffs
-

  clients/src/main/java/org/apache/kafka/common/network/Selector.java 
effb1e63081ed2c1fff6d08d4ecdf8a3cb43e40a 
  clients/src/test/java/org/apache/kafka/common/network/SelectorTest.java 
d23b4b6a7060eeefa9f47f292fd818c881d789c1 

Diff: https://reviews.apache.org/r/35371/diff/


Testing
---


Thanks,

Jason Gustafson