Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move refresh just before the match_all query
Using the command line provided in elastic#81983 I could not reproduce the issue. Anyway, changing the timeout from 5 seconds to just 1 second I could reproduce the issue. At the end, keeping a timeout of 1 second I could fix the issue moving the refresh operation just before running the match_all query. My understanding is that the timeout is used to give the rollup job enough time to complete the rollup operation. Anyway, other than that, after the rollup job has written data into the rollup index we need to refresh it in order for the subsequent search operation to hit the expected rolledup document.
- Loading branch information