OpenSearch/server
Nhat Nguyen b12c2f61c5
Use exact numDocs in synced-flush and metadata snapshot (#30228)
Since #29458, we use a searcher to calculate the number of documents for
a commit stats. Sadly, that approach is flawed. The searcher might no
longer point to the last commit if it's refreshed. As synced-flush
requires an exact numDocs to work correctly, we have to exclude all
soft-deleted docs.

This commit makes synced-flush stop using CommitStats but read an exact
numDocs directly from an index commit.

Relates #29458
Relates #29530
2018-05-15 18:00:53 -04:00
..
cli Add useful message when no input from terminal (#29369) 2018-04-10 21:50:39 -04:00
licenses Upgrade to Lucene-7.4-snapshot-6705632810 (#30519) 2018-05-10 12:31:45 -04:00
src Use exact numDocs in synced-flush and metadata snapshot (#30228) 2018-05-15 18:00:53 -04:00
build.gradle Build: Split distributions into oss and default 2018-04-20 15:33:57 -07:00