Skip to content

Commit c681fe2

Browse files
Merge remote-tracking branch 'elastic/main' into all-in-one-query-change
2 parents 7475d65 + c1a32f6 commit c681fe2

File tree

89 files changed

+1275
-544
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1275
-544
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/MrjarPlugin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ private void addJar(Project project, SourceSet sourceSet, int javaVersion) {
163163
project.getConfigurations().register("java" + javaVersion);
164164
TaskProvider<Jar> jarTask = project.getTasks().register("java" + javaVersion + "Jar", Jar.class, task -> {
165165
task.from(sourceSet.getOutput());
166+
task.getArchiveClassifier().set("java" + javaVersion);
166167
});
167168
project.getArtifacts().add("java" + javaVersion, jarTask);
168169
}

docs/reference/esql/functions/kibana/definition/kql.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/definition/match.json

Lines changed: 59 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/definition/match_operator.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/definition/qstr.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/docs/kql.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/docs/match.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/docs/match_operator.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/docs/qstr.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/data-streams/src/yamlRestTest/resources/rest-api-spec/test/data_stream/190_failure_store_redirection.yml

Lines changed: 88 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ teardown:
786786
- is_false: items.1.create.failure_store
787787

788788
---
789-
"Test failure store status with bulk request":
789+
"Test failure store status with bulk request failing on mappings":
790790
- do:
791791
allowed_warnings:
792792
- "index template [generic_logs_template] has index patterns [logs-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [generic_logs_template] will take precedence during new index creation"
@@ -865,3 +865,90 @@ teardown:
865865
- match: { items.3.create.status: 400 }
866866
- match: { items.3.create.error.type: document_parsing_exception }
867867
- match: { items.3.create.failure_store: not_enabled }
868+
869+
---
870+
"Test failure store status with bulk request failing in ingest":
871+
- do:
872+
ingest.put_pipeline:
873+
id: "failing_pipeline"
874+
body: >
875+
{
876+
"description": "_description",
877+
"processors": [
878+
{
879+
"fail": {
880+
"message" : "error_message",
881+
"tag": "foo-tag"
882+
}
883+
}
884+
]
885+
}
886+
- match: { acknowledged: true }
887+
888+
- do:
889+
allowed_warnings:
890+
- "index template [generic_logs_template] has index patterns [logs-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [generic_logs_template] will take precedence during new index creation"
891+
indices.put_index_template:
892+
name: generic_logs_template
893+
body:
894+
index_patterns: logs-*
895+
data_stream: {}
896+
template:
897+
settings:
898+
number_of_shards: 1
899+
number_of_replicas: 1
900+
index:
901+
default_pipeline: "failing_pipeline"
902+
mappings:
903+
properties:
904+
'@timestamp':
905+
type: date
906+
count:
907+
type: long
908+
data_stream_options:
909+
failure_store:
910+
enabled: true
911+
- do:
912+
allowed_warnings:
913+
- "index template [no-fs] has index patterns [no-fs*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [no-fs] will take precedence during new index creation"
914+
indices.put_index_template:
915+
name: no-fs
916+
body:
917+
index_patterns: no-fs*
918+
data_stream: {}
919+
template:
920+
settings:
921+
number_of_shards: 1
922+
number_of_replicas: 0
923+
index:
924+
default_pipeline: "failing_pipeline"
925+
mappings:
926+
properties:
927+
'@timestamp':
928+
type: date
929+
count:
930+
type: long
931+
data_stream_options:
932+
failure_store:
933+
enabled: false
934+
935+
- do:
936+
bulk:
937+
refresh: true
938+
body:
939+
- '{ "create": { "_index": "logs-foobar", "_id": "1" } }'
940+
- '{ "@timestamp": "2022-01-01", "count": 1 }'
941+
- '{ "create": { "_index": "no-fs", "_id": "1" } }'
942+
- '{ "@timestamp": "2022-01-01", "count": 1 }'
943+
- is_true: errors
944+
# Successfully indexed to backing index
945+
- match: { items.0.create._index: '/\.fs-logs-foobar-(\d{4}\.\d{2}\.\d{2}-)?000001/' }
946+
- match: { items.0.create.status: 201 }
947+
- match: { items.0.create.failure_store: used }
948+
949+
# Rejected, eligible to go to failure store, but failure store not enabled
950+
- match: { items.1.create._index: 'no-fs' }
951+
- match: { items.1.create.status: 500 }
952+
- match: { items.1.create.failure_store: not_enabled }
953+
- match: { items.1.create.error.type: fail_processor_exception }
954+
- contains: { items.1.create.error.reason: error_message }

0 commit comments

Comments
 (0)