OpenSearch/x-pack/plugin/frozen-indices/src
Nhat Nguyen 24f114766f Fix doc_stats and segment_stats of ReadOnlyEngine (#53345)
We can't always have the same segment stats and doc stats between
InternalEngine and ReadOnlyEngine if there are some fully deleted
segments. ReadOnlyEngine always filters out them. InternalEngine,
however, will keep them if peer recovery retention leases exist or the
number of the retaining operations is non-zero.

This change reverts the fix in #51331 and uses the wrapped reader to
calculate the segment stats and doc stats. For the test, we need to
disable the extra retaining soft-deletes operations.

Closes #51303
2020-03-10 21:51:33 -04:00
..
main/java/org/elasticsearch Fix doc_stats and segment_stats of ReadOnlyEngine (#53345) 2020-03-10 21:51:33 -04:00
test/java/org/elasticsearch/index/engine Always rewrite search shard request outside of the search thread pool (#51708) (#51979) 2020-02-06 10:53:11 +01:00