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

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/changelog/139386.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 139386
summary: Exempt internal request markers from streams request param restrictions
area: Data streams
type: bug
issues:
- 139367
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,16 @@
import java.util.concurrent.TimeUnit;
import java.util.function.LongSupplier;

import static org.elasticsearch.rest.RestRequest.INTERNAL_MARKER_REQUEST_PARAMETERS;

/**
* This is an abstract base class for bulk actions. It traverses all indices that the request gets routed to, executes all applicable
* pipelines, and then delegates to the concrete implementation of #doInternalExecute to actually index the data.
*/
public abstract class TransportAbstractBulkAction extends HandledTransportAction<BulkRequest, BulkResponse> {
private static final Logger logger = LogManager.getLogger(TransportAbstractBulkAction.class);

public static final Set<String> STREAMS_ALLOWED_PARAMS = new HashSet<>(9) {
public static final Set<String> STREAMS_ALLOWED_PARAMS = new HashSet<>() {
{
add("error_trace");
add("filter_path");
Expand All @@ -76,6 +78,8 @@ public abstract class TransportAbstractBulkAction extends HandledTransportAction
add("refresh");
add("require_data_stream");
add("timeout");
// Add internal marker params
addAll(INTERNAL_MARKER_REQUEST_PARAMETERS);
}
};

Expand Down