You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "József Márton Jung (JIRA)" <ji...@apache.org> on 2015/06/01 15:39:17 UTC

[jira] [Commented] (SAMZA-691) messages-chosen counter in SystemConsumersMetrics registerSystemStream without identifying the partition

    [ https://issues.apache.org/jira/browse/SAMZA-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14567292#comment-14567292 ] 

József Márton Jung commented on SAMZA-691:
------------------------------------------

Hello,

I'm new to Samza (and open-source stuff generally) and I would like to contribute. Therefore my first contribution, a "getting into the stuff" task, would be the fix for this ticket.
I made a patch and a review request as described in the contribution rules. The review is here: https://reviews.apache.org/r/34888/


> messages-chosen counter in SystemConsumersMetrics registerSystemStream without identifying the partition 
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: SAMZA-691
>                 URL: https://issues.apache.org/jira/browse/SAMZA-691
>             Project: Samza
>          Issue Type: Bug
>          Components: metrics
>            Reporter: Luis De Pombo
>            Priority: Minor
>              Labels: newbie
>
> Running a samza job that consumes from a topic with 3 partitions (3 samza tasks) in the same container we get the following message for collision of metric names:
> {code}
> 2015-05-27 15:10:32 SamzaGraphiteReporter [INFO] Exception while registering for onCounter: java.lang.IllegalArgumentException: A metric named org_apache_samza_system_SystemConsumersMetrics.samza-container-0.kafka-trip_details-messages-chosen already exists
> 2015-05-27 15:10:32 SamzaGraphiteReporter [INFO] Exception while registering for onCounter: java.lang.IllegalArgumentException: A metric named org_apache_samza_system_SystemConsumersMetrics.samza-container-0.kafka-trip_details-messages-chosen already exists
> {code}
> Samza counter "messages-chosen" is registered per system stream without identifying by partition or source. It must include partition or only include the system so the metric name can be unique under all scenarios.
> {code}
> def registerSystemStream(systemStream: SystemStream) {
>   systemStreamMessagesChosen += systemStream -> newCounter("%s-%s-messages-chosen" format (systemStream.getSystem, systemStream.getStream))
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)