samza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Kreps" <boredandr...@gmail.com>
Subject Re: Review Request 13912: SAMZA-28
Date Fri, 30 Aug 2013 21:20:35 GMT

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



samza-api/src/main/java/org/apache/samza/util/BlockingEnvelopeMap.java
<https://reviews.apache.org/r/13912/#comment50338>

    Should the inc/dec method be added in Gauge with proper synchronization there?


- Jay Kreps


On Aug. 30, 2013, 4:15 p.m., Chris Riccomini wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/13912/
> -----------------------------------------------------------
> 
> (Updated Aug. 30, 2013, 4:15 p.m.)
> 
> 
> Review request for samza.
> 
> 
> Repository: samza
> 
> 
> Description
> -------
> 
> lock gauges when we update, since this is not atomic, and there's a race condition between
poll and add
> 
> 
> switch counter to gauge for buffered message count map
> 
> 
> Diffs
> -----
> 
>   samza-api/src/main/java/org/apache/samza/util/BlockingEnvelopeMap.java c1dd27988f130f38adcd39e0bc811b6f8074ca6b

> 
> Diff: https://reviews.apache.org/r/13912/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Chris Riccomini
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message