Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Persist data counts on job close before results index refresh
On job close we aim to refresh the results index before returning so that the caller knows that all results are searchable. It turns out that we were writing the final data counts _after_ refreshing the indices, so that a user who searched for final data counts immediately after receiving the `_close` response would potentially get inaccurate data counts. This change writes the final data counts before refreshing the indices.
- Loading branch information