File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
server/src/main/java/org/elasticsearch/action/bulk Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -415,12 +415,7 @@ private void applyPipelinesAndDoInternalExecute(
415415 DocWriteRequest <?> req = bulkRequestModifier .bulkRequest .requests .get (i );
416416 String prefix = streamType .getStreamName () + "." ;
417417
418- boolean prePipeline = true ;
419- if (req instanceof IndexRequest ir ) {
420- prePipeline = ir .isPipelineResolved () == false ;
421- }
422-
423- if (req != null && req .index () != null && req .index ().startsWith (prefix ) && prePipeline ) {
418+ if (req instanceof IndexRequest ir && ir .index ().startsWith (prefix ) && ir .isPipelineResolved () == false ) {
424419 IllegalArgumentException e = new IllegalArgumentException (
425420 "Direct writes to child streams are prohibited. Index directly into the ["
426421 + streamType .getStreamName ()
You can’t perform that action at this time.
0 commit comments