Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ protected void masterOperation(
for (String name : names) {
systemIndices.validateDataStreamAccess(name, threadPool.getThreadContext());
}
request.indices(names.toArray(Strings.EMPTY_ARRAY));

clusterService.submitStateUpdateTask(
"remove-data-stream [" + Strings.arrayToCommaDelimitedString(request.getNames()) + "]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,43 @@ setup:
indices.delete_data_stream:
name: simple-data-stream2

---
"Delete data stream by wildcard":
- skip:
version: " - 7.8.99"
reason: "data streams supported only in 7.9+"

- do:
indices.create_data_stream:
name: simple-data-stream1
- is_true: acknowledged

- do:
indices.create_data_stream:
name: simple-data-stream2
- is_true: acknowledged

- do:
indices.delete_data_stream:
name: no-matching-data-streams*
- is_true: acknowledged

- do:
indices.get_data_stream:
name: "*"
- match: { data_streams.0.name: simple-data-stream1 }
- match: { data_streams.1.name: simple-data-stream2 }

- do:
indices.delete_data_stream:
name: simple-data-stream*
- is_true: acknowledged

- do:
indices.get_data_stream:
name: "*"
- length: { data_streams: 0 }

---
"append-only writes to backing indices prohibited":
- skip:
Expand Down