Skip to content

Nest 1.0 does not expose failure reason for failed shards #930

Closed
@bittusarkar

Description

@bittusarkar

For ES query fired at an index having say 5 shards, if correct results are returned from 4 shards and an exception thrown from one shard, the ES JSON response for _shards section may look something like below:

"_shards": {
      "total": 5,
      "successful": 4,
      "failed": 1,
      "failures": [
         {
            "index": "<indexname>",
            "shard": 4,
            "status": 500,
            "reason": "<error message>"
         }
      ]
   }

ISearchResponse<T> does expose how many shards succeeded and how many failed but does not expose the failure reason. <error message> may be something like IndexOutOfBoundsException[Index: 1, Size: 1].

Am I missing something here or is this really not supported by Nest1.0? If later, is there any plan to support this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions