Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC: Cap shard failure lists to a fixed small size (March 2024) #106135

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

quux00
Copy link
Contributor

@quux00 quux00 commented Mar 8, 2024

This is a POC exploratory coding attempt to address #103708 and #99220

After some earlier exploratory code, I decided not to change the AtomicArray of ShardSearchFailures in AbstractSearchAsyncAction. Changing it really messes up the lock-free thread safety model of that class. In addition, other classes keep AtomicArray's of all shard results, so this is not the only offender.

Instead, I focused on reducing the number of failures reported in the SearchResponse. The SearchResponse does not track failed shard count independent of the ShardSearchFailure array, so that new field had to be added.

Most tests are passing, but need to do further work on those. Also CCS MRT=false is not yet truncating the number of failures in the _cluster/details/failures section so I need to track down where that occurs.

quux00 added 3 commits March 8, 2024 14:26
…n creating a SearchResponse.

Updated AbstractSearchAsyncActionTests
Improved the new SearchResponse.Builder.
SearchResponseMerger changes not made yet.
CCSDuelIT failing for testShardFailures
SearchResponseMergerTests modified to match new functionality.
Fixed JdbcShardFailureIT and RestSqlTestCase to no longer expect
suppressed header warnings, since we are limiting the number of failures returned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants