fix: datacoord binlog size metrics include dropped segment (#35338)

issue: #35337

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
pull/35353/head
wei liu 2024-08-07 16:24:16 +08:00 committed by GitHub
parent c6253f9c9b
commit 838f06323f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -396,6 +396,7 @@ func (m *meta) GetQuotaInfo() *metricsinfo.DataCoordQuotaMetrics {
segments := m.segments.GetSegments()
var total int64
metrics.DataCoordStoredBinlogSize.Reset()
for _, segment := range segments {
segmentSize := segment.getSegmentSize()
if isSegmentHealthy(segment) && !segment.GetIsImporting() {