Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14085

Excessive update of ReadLatency metric in digest calculation

    XMLWordPrintableJSON

Details

    • Low

    Description

      We noticed an increase in read latency after upgrading to 3.x, specifically for requests with CL>ONE. It turns out the read latency metric is being doubly updated for digest calculations. This code (https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/partitions/UnfilteredPartitionIterators.java#L243) makes an improper copy of an iterator that's wrapped by MetricRecording, whose onClose() records the latency of the execution.

      Attachments

        Activity

          People

            whangsf Andrew Whang
            whangsf Andrew Whang
            Andrew Whang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: