From 7f12ed7bbdbc081853d046e7ad588ba38fbbe7f8 Mon Sep 17 00:00:00 2001 From: Rudolf Meijering Date: Mon, 21 Aug 2023 22:52:26 +0200 Subject: [PATCH] Don't set refresh interval as user templates can no longer affect it --- .../src/actions/clone_index.ts | 4 ---- .../src/actions/create_index.ts | 4 ---- 2 files changed, 8 deletions(-) diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/clone_index.ts b/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/clone_index.ts index 41830a4af078e..7c17844c60476 100644 --- a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/clone_index.ts +++ b/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/clone_index.ts @@ -74,10 +74,6 @@ export const cloneIndex = ({ // we repeat it here for explicitness. number_of_shards: INDEX_NUMBER_OF_SHARDS, auto_expand_replicas: INDEX_AUTO_EXPAND_REPLICAS, - // Set an explicit refresh interval so that we don't inherit the - // value from incorrectly configured index templates (not required - // after we adopt system indices) - refresh_interval: '1s', // Bump priority so that recovery happens before newer indices priority: 10, // Increase the fields limit beyond the default of 1000 diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/create_index.ts b/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/create_index.ts index 1d492301f45bd..bda4e04a0c9bb 100644 --- a/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/create_index.ts +++ b/packages/core/saved-objects/core-saved-objects-migration-server-internal/src/actions/create_index.ts @@ -92,10 +92,6 @@ export const createIndex = ({ // Kibana is unlikely to cross that limit. number_of_shards: 1, auto_expand_replicas: INDEX_AUTO_EXPAND_REPLICAS, - // Set an explicit refresh interval so that we don't inherit the - // value from incorrectly configured index templates (not required - // after we adopt system indices) - refresh_interval: '1s', // Bump priority so that recovery happens before newer indices priority: 10, // Increase the fields limit beyond the default of 1000