|
@@ -70,12 +70,11 @@ create an index with disabled source mode and logsdb index mode without setting:
|
|
|
mode: disabled
|
|
|
|
|
|
- match: { error.type: "mapper_parsing_exception" }
|
|
|
- - match: { error.reason: "Failed to parse mapping: Indices with with index mode [logsdb] only support synthetic source" }
|
|
|
+ - match: { error.reason: "Failed to parse mapping: _source can not be disabled in index using [logsdb] index mode" }
|
|
|
|
|
|
---
|
|
|
create an index with stored source mode and logsdb index mode without setting:
|
|
|
- do:
|
|
|
- catch: bad_request
|
|
|
indices.create:
|
|
|
index: test_stored_logsdb
|
|
|
body:
|
|
@@ -86,8 +85,11 @@ create an index with stored source mode and logsdb index mode without setting:
|
|
|
_source:
|
|
|
mode: stored
|
|
|
|
|
|
- - match: { error.type: "mapper_parsing_exception" }
|
|
|
- - match: { error.reason: "Failed to parse mapping: Indices with with index mode [logsdb] only support synthetic source" }
|
|
|
+ - do:
|
|
|
+ indices.get_mapping:
|
|
|
+ index: test_stored_logsdb
|
|
|
+
|
|
|
+ - match: { test_stored_logsdb.mappings._source.mode: stored }
|
|
|
|
|
|
---
|
|
|
create an index with synthetic source mode and logsdb index mode without setting:
|
|
@@ -131,12 +133,11 @@ create an index with disabled source mode and time series index mode without set
|
|
|
time_series_dimension: true
|
|
|
|
|
|
- match: { error.type: "mapper_parsing_exception" }
|
|
|
- - match: { error.reason: "Failed to parse mapping: time series indices only support synthetic source" }
|
|
|
+ - match: { error.reason: "Failed to parse mapping: _source can not be disabled in index using [time_series] index mode" }
|
|
|
|
|
|
---
|
|
|
create an index with stored source mode and time series index mode without setting:
|
|
|
- do:
|
|
|
- catch: bad_request
|
|
|
indices.create:
|
|
|
index: test_stored_time_series
|
|
|
body:
|
|
@@ -155,9 +156,11 @@ create an index with stored source mode and time series index mode without setti
|
|
|
type: keyword
|
|
|
time_series_dimension: true
|
|
|
|
|
|
- - match: { error.type: "mapper_parsing_exception" }
|
|
|
- - match: { error.reason: "Failed to parse mapping: time series indices only support synthetic source" }
|
|
|
+ - do:
|
|
|
+ indices.get_mapping:
|
|
|
+ index: test_stored_time_series
|
|
|
|
|
|
+ - match: { test_stored_time_series.mappings._source.mode: stored }
|
|
|
|
|
|
---
|
|
|
create an index with synthetic source mode and time series index mode without setting:
|
|
@@ -489,7 +492,6 @@ create an index with logsdb index mode and synthetic source:
|
|
|
---
|
|
|
create an index with time_series index mode and stored source:
|
|
|
- do:
|
|
|
- catch: bad_request
|
|
|
indices.create:
|
|
|
index: test_time_series_index_mode_undefined
|
|
|
body:
|
|
@@ -507,13 +509,20 @@ create an index with time_series index mode and stored source:
|
|
|
type: keyword
|
|
|
time_series_dimension: true
|
|
|
|
|
|
- - match: { error.type: "mapper_parsing_exception" }
|
|
|
- - match: { error.reason: "Failed to parse mapping: time series indices only support synthetic source" }
|
|
|
+ - do:
|
|
|
+ indices.get_settings:
|
|
|
+ index: "test_time_series_index_mode_undefined"
|
|
|
+ - match: { test_time_series_index_mode_undefined.settings.index.mapping.source.mode: stored }
|
|
|
+
|
|
|
+ - do:
|
|
|
+ indices.get_mapping:
|
|
|
+ index: test_time_series_index_mode_undefined
|
|
|
+
|
|
|
+ - match: { test_time_series_index_mode_undefined.mappings._source.mode: stored }
|
|
|
|
|
|
---
|
|
|
create an index with logsdb index mode and stored source:
|
|
|
- do:
|
|
|
- catch: bad_request
|
|
|
indices.create:
|
|
|
index: test_logsdb_index_mode_undefined
|
|
|
body:
|
|
@@ -522,8 +531,11 @@ create an index with logsdb index mode and stored source:
|
|
|
mode: logsdb
|
|
|
mapping.source.mode: stored
|
|
|
|
|
|
- - match: { error.type: "mapper_parsing_exception" }
|
|
|
- - match: { error.reason: "Failed to parse mapping: Indices with with index mode [logsdb] only support synthetic source" }
|
|
|
+ - do:
|
|
|
+ indices.get_mapping:
|
|
|
+ index: test_logsdb_index_mode_undefined
|
|
|
+
|
|
|
+ - match: { test_logsdb_index_mode_undefined.mappings._source.mode: stored }
|
|
|
|
|
|
---
|
|
|
create an index with time_series index mode and disabled source:
|
|
@@ -738,7 +750,7 @@ modify logsdb index source mode to disabled after index creation:
|
|
|
_source:
|
|
|
mode: disabled
|
|
|
- match: { error.type: "mapper_parsing_exception" }
|
|
|
- - match: { error.reason: "Failed to parse mapping: Indices with with index mode [logsdb] only support synthetic source" }
|
|
|
+ - match: { error.reason: "Failed to parse mapping: _source can not be disabled in index using [logsdb] index mode" }
|
|
|
|
|
|
---
|
|
|
modify logsdb index source mode to stored after index creation:
|
|
@@ -757,8 +769,8 @@ modify logsdb index source mode to stored after index creation:
|
|
|
body:
|
|
|
_source:
|
|
|
mode: stored
|
|
|
- - match: { error.type: "mapper_parsing_exception" }
|
|
|
- - match: { error.reason: "Failed to parse mapping: Indices with with index mode [logsdb] only support synthetic source" }
|
|
|
+ - match: { error.type: "illegal_argument_exception" }
|
|
|
+ - match: { error.reason: "Mapper for [_source] conflicts with existing mapper:\n\tCannot update parameter [mode] from [synthetic] to [stored]" }
|
|
|
|
|
|
---
|
|
|
modify time_series index source mode to disabled after index creation:
|
|
@@ -787,7 +799,7 @@ modify time_series index source mode to disabled after index creation:
|
|
|
_source:
|
|
|
mode: disabled
|
|
|
- match: { error.type: "mapper_parsing_exception" }
|
|
|
- - match: { error.reason: "Failed to parse mapping: time series indices only support synthetic source" }
|
|
|
+ - match: { error.reason: "Failed to parse mapping: _source can not be disabled in index using [time_series] index mode" }
|
|
|
|
|
|
---
|
|
|
modify time_series index source mode to stored after index creation:
|
|
@@ -815,5 +827,5 @@ modify time_series index source mode to stored after index creation:
|
|
|
body:
|
|
|
_source:
|
|
|
mode: stored
|
|
|
- - match: { error.type: "mapper_parsing_exception" }
|
|
|
- - match: { error.reason: "Failed to parse mapping: time series indices only support synthetic source" }
|
|
|
+ - match: { error.type: "illegal_argument_exception" }
|
|
|
+ - match: { error.reason: "Mapper for [_source] conflicts with existing mapper:\n\tCannot update parameter [mode] from [synthetic] to [stored]" }
|