Skip to content

Limit shard failures accumulated by searches #99220

Closed
@DaveCTurner

Description

@DaveCTurner

Today we create an array of size getNumShards() to collect shard failures received during a search (on the first failure):

At high shard counts this array itself could be pretty large, and if a substantial number of shards fail then its contents will become massive. I'm pretty sure we don't need to accumulate all the failures in this situation, they're almost certainly not useful for the end-user or even for debugging. Could we instead just just track the first few failures and keep a count of the rest?

Relates #77466

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions