Skip to content

[8.0] [MOD-8034] expose indexing failures to INFO modules#5155

Merged
meiravgri merged 1 commit into8.0from
backport-5139-to-8.0
Nov 5, 2024
Merged

[8.0] [MOD-8034] expose indexing failures to INFO modules#5155
meiravgri merged 1 commit into8.0from
backport-5139-to-8.0

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

Description

Backport of #5139 to 8.0.

* move fieldsStats from RSGlobalConfig to RSGlobalStats

move  dialects stats to global_stats

* Introduce a global counter for indexing failures for each field type.
The counter is update at runtime, once the error occured.
It reflects the total number of indexing errors in all living indices.
The counter should be decreased whenever an index is dropped.

introduce FieldSpec_AddError that adds an error to a specific field.
it also updates the global field error counter.

We expose the global counter value in INFO modules, along with each field type stats.

the name of the fields count for each type was changed from "Field_type_name" to "Total"

* fix test

* skip test_redis_info_errors in cluster

wait for bg index after FT.ALTER to avoid flakyness

* revert change in INFO MODULES field count name

* fix test format

* fix test flakyness

remove IndexingErrorsStats and put the fields in TotalSpecsInfo

(cherry picked from commit 9ef9bd9)
@codecov
Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.31%. Comparing base (b0fdaa4) to head (a54c717).
Report is 1 commits behind head on 8.0.

Additional details and impacted files
@@            Coverage Diff             @@
##              8.0    #5155      +/-   ##
==========================================
+ Coverage   86.30%   86.31%   +0.01%     
==========================================
  Files         189      189              
  Lines       34354    34380      +26     
==========================================
+ Hits        29649    29675      +26     
  Misses       4705     4705              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@meiravgri meiravgri added this pull request to the merge queue Nov 5, 2024
Merged via the queue into 8.0 with commit 528fbfa Nov 5, 2024
@meiravgri meiravgri deleted the backport-5139-to-8.0 branch November 5, 2024 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant