OpenSearch/distribution
Nik Everett 12923ef896 Close and flush refresh listeners on shard close
Right now closing a shard looks like it strands refresh listeners,
causing tests like
`delete/50_refresh/refresh=wait_for waits until changes are visible in search`
to fail. Here is a build that fails:
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+multi_cluster_search+multijob-darwin-compatibility/4/console

This attempts to fix the problem by implements `Closeable` on
`RefreshListeners` and rejecting listeners when closed. More importantly
the act of closing the instance flushes all pending listeners
so we shouldn't have any stranded listeners on close.

Because it was needed for testing, this also adds the number of
pending listeners to the `CommonStats` object and all API to which
that flows: `_cat/nodes`, `_cat/indices`, `_cat/shards`, and
`_nodes/stats`.
2017-01-06 20:03:32 -05:00
..
deb Remove much ceremony from parsing client yaml test suites (#22311) 2016-12-22 11:00:34 -05:00
integ-test-zip Close and flush refresh listeners on shard close 2017-01-06 20:03:32 -05:00
rpm Remove much ceremony from parsing client yaml test suites (#22311) 2016-12-22 11:00:34 -05:00
src/main Merge branch 'master' into keystore 2017-01-06 09:32:08 -08:00
tar Remove much ceremony from parsing client yaml test suites (#22311) 2016-12-22 11:00:34 -05:00
zip Remove much ceremony from parsing client yaml test suites (#22311) 2016-12-22 11:00:34 -05:00
build.gradle remove double slash from license header 2017-01-05 17:15:34 +01:00