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



core/src/main/scala/kafka/server/DelayedOperation.scala
<https://reviews.apache.org/r/33731/#comment132901>

    It's possible for someone to add a watcher for that key in-between the 
condition and the remove, resulting in us accidentally removing the Watchers 
for that key.


- Onur Karaman


On April 30, 2015, 9:03 p.m., Guozhang Wang wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/33731/
> -----------------------------------------------------------
> 
> (Updated April 30, 2015, 9:03 p.m.)
> 
> 
> Review request for kafka.
> 
> 
> Bugs: KAFKA-2160
>     https://issues.apache.org/jira/browse/KAFKA-2160
> 
> 
> Repository: kafka
> 
> 
> Description
> -------
> 
> Remove key from purgatory watchers pool when its watcher list is empty
> 
> 
> Diffs
> -----
> 
>   core/src/main/scala/kafka/server/DelayedOperation.scala 
> 2ed9b467c2865e5717d7f6fd933cd09a5c5b22c0 
>   core/src/main/scala/kafka/utils/timer/Timer.scala 
> b8cde820a770a4e894804f1c268b24b529940650 
>   core/src/test/scala/unit/kafka/log/LogConfigTest.scala 
> f3546adee490891e0d8d0214bef00b1dd7f42227 
>   core/src/test/scala/unit/kafka/server/DelayedOperationTest.scala 
> f3ab3f4ff8eb1aa6b2ab87ba75f72eceb6649620 
> 
> Diff: https://reviews.apache.org/r/33731/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Guozhang Wang
> 
>

Reply via email to