Skip to content

[8.18] Set cause on create index request in create from action (#124363) #124374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 8.18
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions docs/changelog/124363.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 124363
summary: Set cause on create index request in create from action
area: Data streams
type: enhancement
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ protected void doExecute(Task task, CreateIndexFromSourceAction.Request request,
}

var createIndexRequest = new CreateIndexRequest(request.destIndex()).settings(settings);
createIndexRequest.cause("create-index-from-source");
if (mergeMappings.isEmpty() == false) {
createIndexRequest.mapping(mergeMappings);
}
Expand Down