Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-28

Use gauge instead of counter for bufferedMessageCountMap

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.7.0
    • Component/s: container, metrics
    • Labels:
      None

      Description

      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.

        Attachments

        1. SAMZA-28.0.patch
          3 kB
          Chris Riccomini
        2. SAMZA-28.1.patch
          4 kB
          Chris Riccomini
        3. SAMZA-28.2.patch
          8 kB
          Chris Riccomini
        4. samza-buffered-messages-metric.png
          159 kB
          Chris Riccomini

          Issue Links

            Activity

              People

              • Assignee:
                criccomini Chris Riccomini
                Reporter:
                criccomini Chris Riccomini
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: