Skip to content

[8.0] [MOD-8035] Add field index error for JSON field indexing failures#5203

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

[8.0] [MOD-8035] Add field index error for JSON field indexing failures#5203
meiravgri merged 1 commit into8.0from
backport-5150-to-8.0

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

Description

Backport of #5150 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

* add field indesing failure when encountered in json

* skip json tests of not json

(cherry picked from commit f045e21)
@codecov
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.50%. Comparing base (f268017) to head (d35524b).
Report is 1 commits behind head on 8.0.

Additional details and impacted files
@@            Coverage Diff             @@
##              8.0    #5203      +/-   ##
==========================================
- Coverage   86.51%   86.50%   -0.01%     
==========================================
  Files         192      192              
  Lines       34468    34469       +1     
==========================================
  Hits        29819    29819              
- Misses       4649     4650       +1     

☔ 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 13, 2024
Merged via the queue into 8.0 with commit 437fb6d Nov 13, 2024
@meiravgri meiravgri deleted the backport-5150-to-8.0 branch November 13, 2024 06:42
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