parent
a2331bc9d4
commit
a84ff81743
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
"Data streams":
|
||||
- skip:
|
||||
features: allowed_warnings
|
||||
version: " - 7.99.99"
|
||||
reason: "change to 7.8.99 after backport"
|
||||
|
||||
- do:
|
||||
allowed_warnings:
|
||||
- "index template [my-template1] has index patterns [simple-data-stream1] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template1] will take precedence during new index creation"
|
||||
indices.put_index_template:
|
||||
name: my-template1
|
||||
body:
|
||||
index_patterns: [simple-data-stream1]
|
||||
template:
|
||||
mappings:
|
||||
properties:
|
||||
'@timestamp':
|
||||
type: date
|
||||
data_stream:
|
||||
timestamp_field: '@timestamp'
|
||||
|
||||
- do:
|
||||
indices.create_data_stream:
|
||||
name: simple-data-stream1
|
||||
- is_true: acknowledged
|
||||
|
||||
- do:
|
||||
indices.get_field_mapping:
|
||||
index: simple-data-stream1
|
||||
fields: foo
|
||||
|
||||
- is_true: \.ds-simple-data-stream1-000001
|
||||
|
||||
- do:
|
||||
indices.delete_data_stream:
|
||||
name: simple-data-stream1
|
||||
- is_true: acknowledged
|
|
@ -385,7 +385,7 @@ public class DataStreamIT extends ESIntegTestCase {
|
|||
verifyResolvability(dataStreamName, client().admin().indices().prepareRecoveries(dataStreamName), false);
|
||||
verifyResolvability(dataStreamName, client().admin().indices().prepareUpgradeStatus(dataStreamName), false);
|
||||
verifyResolvability(dataStreamName, getAliases(dataStreamName), true);
|
||||
verifyResolvability(dataStreamName, getFieldMapping(dataStreamName), true);
|
||||
verifyResolvability(dataStreamName, getFieldMapping(dataStreamName), false);
|
||||
verifyResolvability(dataStreamName, getMapping(dataStreamName), false);
|
||||
verifyResolvability(dataStreamName, getSettings(dataStreamName), false);
|
||||
verifyResolvability(dataStreamName, health(dataStreamName), false);
|
||||
|
@ -414,7 +414,7 @@ public class DataStreamIT extends ESIntegTestCase {
|
|||
verifyResolvability(wildcardExpression, client().admin().indices().prepareRecoveries(wildcardExpression), false);
|
||||
verifyResolvability(wildcardExpression, client().admin().indices().prepareUpgradeStatus(wildcardExpression), false);
|
||||
verifyResolvability(wildcardExpression, getAliases(wildcardExpression), true);
|
||||
verifyResolvability(wildcardExpression, getFieldMapping(wildcardExpression), true);
|
||||
verifyResolvability(wildcardExpression, getFieldMapping(wildcardExpression), false);
|
||||
verifyResolvability(wildcardExpression, getMapping(wildcardExpression), false);
|
||||
verifyResolvability(wildcardExpression, getSettings(wildcardExpression), false);
|
||||
verifyResolvability(wildcardExpression, health(wildcardExpression), false);
|
||||
|
|
|
@ -56,7 +56,7 @@ public class TransportGetFieldMappingsAction extends HandledTransportAction<GetF
|
|||
@Override
|
||||
protected void doExecute(Task task, GetFieldMappingsRequest request, final ActionListener<GetFieldMappingsResponse> listener) {
|
||||
ClusterState clusterState = clusterService.state();
|
||||
String[] concreteIndices = indexNameExpressionResolver.concreteIndexNames(clusterState, request);
|
||||
String[] concreteIndices = indexNameExpressionResolver.concreteIndexNames(clusterState, request, true);
|
||||
final AtomicInteger indexCounter = new AtomicInteger();
|
||||
final AtomicInteger completionCounter = new AtomicInteger(concreteIndices.length);
|
||||
final AtomicReferenceArray<Object> indexResponses = new AtomicReferenceArray<>(concreteIndices.length);
|
||||
|
|
Loading…
Reference in New Issue