Skip to content

Commit

Permalink
Wait for a yellow source before starting reindex (#113382)
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Sep 29, 2021
1 parent 781fdf9 commit aea6daa
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,7 @@ describe('migration actions', () => {

// Reindex doesn't return any errors on it's own, so we have to test
// together with waitForReindexTask
// FLAKY: https://github.com/elastic/kibana/issues/103231
describe.skip('reindex & waitForReindexTask', () => {
describe('reindex & waitForReindexTask', () => {
it('resolves right when reindex succeeds without reindex script', async () => {
const res = (await reindex({
client,
Expand Down Expand Up @@ -792,6 +791,11 @@ describe('migration actions', () => {
`);
});
it('resolves left wait_for_task_completion_timeout when the task does not finish within the timeout', async () => {
await waitForIndexStatusYellow({
client,
index: '.kibana_1',
})();

const res = (await reindex({
client,
sourceIndex: '.kibana_1',
Expand Down

0 comments on commit aea6daa

Please sign in to comment.