From 297a4d9360c488a9283442c24edd10892bec9eaa Mon Sep 17 00:00:00 2001 From: tamirms Date: Wed, 13 Nov 2024 15:26:01 +0100 Subject: [PATCH 1/2] Fix total lookup table rows deleted metric --- services/horizon/internal/ingest/reap.go | 1 + 1 file changed, 1 insertion(+) diff --git a/services/horizon/internal/ingest/reap.go b/services/horizon/internal/ingest/reap.go index 63b56de993..01c304c080 100644 --- a/services/horizon/internal/ingest/reap.go +++ b/services/horizon/internal/ingest/reap.go @@ -331,6 +331,7 @@ func (r *lookupTableReaper) deleteOrphanedRows(ctx context.Context) error { } deleteDuration := time.Since(deleteStartTime) totalDeleteDuration += deleteDuration + totalDeleted += rowsDeleted r.rowsReapedByLookupTable.With(prometheus.Labels{"table": table}). Observe(float64(rowsDeleted)) From 627672d6bc9c3ae7fa348ad4aa33c88907268c25 Mon Sep 17 00:00:00 2001 From: tamirms Date: Wed, 13 Nov 2024 15:30:34 +0100 Subject: [PATCH 2/2] Update changelog --- services/horizon/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/services/horizon/CHANGELOG.md b/services/horizon/CHANGELOG.md index f419ef0976..77d5021791 100644 --- a/services/horizon/CHANGELOG.md +++ b/services/horizon/CHANGELOG.md @@ -7,6 +7,7 @@ file. This project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - Fix the issue where the skip-txmeta flag is not being applied in `/transactions/{tx-id}` endpoint ([5523](https://github.com/stellar/go/pull/5523)). +- Fix `horizon_ingest_reap_lookup_tables_duration_seconds` metric which reports the total number of lookup table rows which were reaped ([5528](https://github.com/stellar/go/pull/5528)). ## 22.0.0-rc2