# Recreating Shard failures

**URL:** <https://discuss.elastic.co/t/recreating-shard-failures/150351>\
**Category:** Elasticsearch\
**Created:** [September 28, 2018, 1:41pm UTC](https://discuss.elastic.co/t/recreating-shard-failures/150351 "2018-09-28T13:41:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![riscado](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@riscado](https://discuss.elastic.co/u/riscado)\
**Post date:** [September 28, 2018, 1:41pm UTC](https://discuss.elastic.co/t/recreating-shard-failures/150351/1 "2018-09-28T13:41:03Z")

</div>

Hi,

when using the elasticsearch Java client, is there any easy way to recreate shard failures. Where either the primary or both primary and replicas fail to respond.

I'm trying to validate a test where I need to check that SearchResponse::getFailedShards is populated.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 26, 2018, 1:41pm UTC](https://discuss.elastic.co/t/recreating-shard-failures/150351/2 "2018-10-26T13:41:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
