Skip to content

Commit 1bdb305

Browse files
committed
Fixup YAML test
1 parent a2971ad commit 1bdb305

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

modules/streams/src/yamlRestTest/resources/rest-api-spec/test/streams/logs/20_substream_restrictions.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,16 @@ teardown:
142142
index.default_pipeline: "reroute-to-logs-foo-success"
143143
- do:
144144
bulk:
145-
refresh: true
146145
body: |
147146
{ "index": { "_index": "logs" } }
148147
{ "foo": "bar", "baz": "qux" }
149148
- match: { errors: false }
150149
- match: { items.0.index.status: 201 }
151150

151+
- do:
152+
indices.refresh:
153+
index: logs.foo
154+
152155
- do:
153156
delete_by_query:
154157
index: logs.foo

server/src/main/java/org/elasticsearch/rest/action/document/RestBulkAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class RestBulkAction extends BaseRestHandler {
6363

6464
public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Specifying types in bulk requests is deprecated.";
6565
public static final String FAILURE_STORE_STATUS_CAPABILITY = "failure_store_status";
66-
public static final Set<String> STREAMS_ALLOWED_PARAMS = Set.of("timeout");
66+
public static final Set<String> STREAMS_ALLOWED_PARAMS = Set.of("timeout", "error_trace");
6767

6868
private final boolean allowExplicitIndex;
6969
private final IncrementalBulkService bulkHandler;

0 commit comments

Comments
 (0)