From c5018d501e414b8b0a94cd19c8655c1742834d4b Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Wed, 18 Dec 2024 16:15:09 +0100 Subject: [PATCH] =?UTF-8?q?reporting=20don=E2=80=99t=20wait=20for=20refres?= =?UTF-8?q?h=20when=20uploading=20a=20chunk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- x-pack/plugins/reporting/server/lib/content_stream.test.ts | 4 ---- x-pack/plugins/reporting/server/lib/content_stream.ts | 2 -- 2 files changed, 6 deletions(-) diff --git a/x-pack/plugins/reporting/server/lib/content_stream.test.ts b/x-pack/plugins/reporting/server/lib/content_stream.test.ts index 6d3fccff0b91..91ab3953aa8a 100644 --- a/x-pack/plugins/reporting/server/lib/content_stream.test.ts +++ b/x-pack/plugins/reporting/server/lib/content_stream.test.ts @@ -300,7 +300,6 @@ describe('ContentStream', () => { id: expect.any(String), index: '.kibana-reporting', op_type: 'create', - refresh: 'wait_for', body: { '@timestamp': '1970-01-01T00:00:00.000Z', parent_id: 'something', @@ -317,7 +316,6 @@ describe('ContentStream', () => { id: expect.any(String), index: '.kibana-reporting', op_type: 'create', - refresh: 'wait_for', body: { '@timestamp': '1970-01-01T00:00:00.000Z', parent_id: 'something', @@ -348,7 +346,6 @@ describe('ContentStream', () => { id: expect.any(String), index: '.kibana-reporting', op_type: 'create', - refresh: 'wait_for', body: { parent_id: 'something', '@timestamp': '1970-01-01T00:00:00.000Z', @@ -365,7 +362,6 @@ describe('ContentStream', () => { id: expect.any(String), index: '.kibana-reporting', op_type: 'create', - refresh: 'wait_for', body: { parent_id: 'something', '@timestamp': '1970-01-01T00:00:00.000Z', diff --git a/x-pack/plugins/reporting/server/lib/content_stream.ts b/x-pack/plugins/reporting/server/lib/content_stream.ts index b3c113dd43c3..e5006a4a4526 100644 --- a/x-pack/plugins/reporting/server/lib/content_stream.ts +++ b/x-pack/plugins/reporting/server/lib/content_stream.ts @@ -192,7 +192,6 @@ export class ContentStream extends Duplex { const body = await this.client.update({ ...this.document, - refresh: 'wait_for', body: { doc: { output: { content }, @@ -212,7 +211,6 @@ export class ContentStream extends Duplex { await this.client.index({ id, index: REPORTING_DATA_STREAM_ALIAS, - refresh: 'wait_for', op_type: 'create', body: { parent_id: parentId,