Added `_shards` header to all write responses.

The header indicates to how many shard copies (primary and replicas shards) a write was supposed to go to, to how many shard copies to write succeeded and potentially captures shard failures if writing into a replica shard fails.

For async writes it also includes the number of shards a write is still pending.
There are docs regarding bwc changes on the java api as far as I know...

On 1 December 2014 at 17:07, Boaz Leskes <notifications@github.com> wrote:

> In
> src/main/java/org/elasticsearch/action/deletebyquery/IndexDeleteByQueryResponse.java:
>
> > @@ -60,41 +66,21 @@ public String getIndex() {
> >          return this.index;
> >      }
> >
> > -    /**
> > -     * The total number of shards the delete by query was executed on.
> > -     */
> > -    public int getTotalShards() {
>
> I wonder were we capture this breaking change? so people would know?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/elasticsearch/elasticsearch/pull/7994/files#r21097935>
> .
>



-- 
Met vriendelijke groet,

Martijn van Groningen