You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Chris Riccomini (JIRA)" <ji...@apache.org> on 2013/09/11 03:23:51 UTC
[jira] [Updated] (SAMZA-28) Use gauge instead of counter for
bufferedMessageCountMap
[ https://issues.apache.org/jira/browse/SAMZA-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Riccomini updated SAMZA-28:
---------------------------------
Attachment: SAMZA-28.1.patch
Using AtomicReference instead of synchronized.
> Use gauge instead of counter for bufferedMessageCountMap
> --------------------------------------------------------
>
> Key: SAMZA-28
> URL: https://issues.apache.org/jira/browse/SAMZA-28
> Project: Samza
> Issue Type: Bug
> Components: container, metrics
> Affects Versions: 0.6.0
> Reporter: Chris Riccomini
> Assignee: Chris Riccomini
> Fix For: 0.7.0
>
> Attachments: SAMZA-28.0.patch, SAMZA-28.1.patch
>
>
> The bufferedMessageCountMap variable in BlockingEnvelopeMapMetrics currently uses counters to keep track of the number of messages in a SystemStreamPartition's queue. bufferedMessageCountMap is meant to say, "There are N messages buffered for SystemStreamPartition X at time T." This variable does not do this, since we are using a counter, not a gauge. We should switch the map to uses Gauge instead of Counter. We'll need to update decBufferedMessageCount and incBufferedMessageCount accordingly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira