Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16895

RemoteCopyLagSegments metric taking active segment into account

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.7.0, 3.7.1
    • 3.9.0
    • Tiered-Storage
    • None

    Description

      The RemoteCopyLagSegment is off by 1 because it also includes the active segment into account while the RemoteCopyLagBytes does substract the size of active segment:

       long bytesLag = log.onlyLocalLogSegmentsSize() - log.activeSegment().size();
      String topic = topicIdPartition.topic();
      int partition = topicIdPartition.partition();
      long segmentsLag = log.onlyLocalLogSegmentsCount();
      brokerTopicStats.recordRemoteCopyLagBytes(topic, partition, bytesLag);
      brokerTopicStats.recordRemoteCopyLagSegments(topic, partition, segmentsLag);
      

      Attachments

        Issue Links

          Activity

            People

              fvisconte Francois Visconte
              fvisconte Francois Visconte
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: