OpenSearch/docs/reference/rollup
Tal Levy cb7e3708bc
Rollup jobs should be cleaned up before indices are deleted (#38930) (#39144)
Rollup jobs should be stopped + deleted before the indices are removed.
It's possible for an active rollup job to issue a bulk request, the test
ends and the cleanup code deletes all indices.  The in-flight bulk
request will then stall + error because the index no-longer exists...
but this process might take longer than the StopRollup timeout.

Which means the test fails, and often fails several other tests since
the job is still active (e.g. other tests cannot create the same-named
job, or fail to stop the job in their cleanup because it's still stalled).

This tends to knock over several tests before the bulk finally times
out and the job shuts down.

Instead, we need to simply stop jobs first.  Inflight bulks will resolve
quickly, and we can carry on with deleting indices after the jobs are
confirmed inactive.

stop-job.asciidoc tended to trigger this issue because it executed
an async stop API and then exited, which setup the above situation. In
can and did happen with other tests though.  As an extra precaution,
the doc test was modified to substitute in wait_for_completion
to help head off these issues too.
2019-02-20 11:12:01 -08:00
..
apis Rollup jobs should be cleaned up before indices are deleted (#38930) (#39144) 2019-02-20 11:12:01 -08:00
api-quickref.asciidoc Re-deprecate xpack rollup endpoints (#36451) 2018-12-11 19:43:17 -05:00
index.asciidoc [DOCS] Move rollup APIs to docs (#31450) 2018-08-31 10:50:43 -07:00
overview.asciidoc [Docs] Fix wrong math in overview.asciidoc (#37209) 2019-01-08 10:25:02 +01:00
rollup-agg-limitations.asciidoc [DOCS] Move rollup APIs to docs (#31450) 2018-08-31 10:50:43 -07:00
rollup-api.asciidoc [DOCS] Move rollup APIs to docs (#31450) 2018-08-31 10:50:43 -07:00
rollup-getting-started.asciidoc Re-deprecate xpack rollup endpoints (#36451) 2018-12-11 19:43:17 -05:00
rollup-search-limitations.asciidoc [Rollup] Proactively resolve index patterns in RollupSearch endoint (#34930) 2018-10-30 13:50:50 -04:00
understanding-groups.asciidoc Re-deprecate xpack rollup endpoints (#36451) 2018-12-11 19:43:17 -05:00