From 1ff61a53696250994431d21522f4ccb9523ef2bf Mon Sep 17 00:00:00 2001 From: Alex Ababii Date: Wed, 2 Dec 2026 15:14:10 +0100 Subject: [PATCH] fix(search): drop the unused tripped flag of the unreachable extractions --- services/search/pkg/search/service.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/services/search/pkg/search/service.go b/services/search/pkg/search/service.go index 7c06debd83..9f20cb9b46 100644 --- a/services/search/pkg/search/service.go +++ b/services/search/pkg/search/service.go @@ -1064,7 +1064,7 @@ func (s *Service) extract(ctx context.Context, info *provider.ResourceInfo, unre unreachable.files++ unreachable.last = err if unreachable.streak == unreachableStreakLimit { - unreachable.down, unreachable.tripped = true, true + unreachable.down = true s.logger.Warn().Err(err).Int("files", unreachable.streak).Msg("tika or the files stay out of reach, the remaining files are indexed by name without retries until an extraction succeeds") } return doc, err @@ -1207,11 +1207,10 @@ func tokenExpiry(ctx context.Context) (time.Time, error) { // not reach tika or the file. The walk does not stop when tika is down: the // files are indexed by name, and IndexSpace reports the outage at the end. type unreachableExtractions struct { - streak int - down bool - tripped bool - files int - last error + streak int + down bool + files int + last error } // err reports the outage as soon as one file could not be extracted because