Skip to content

Commit

Permalink
code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
masseyke committed Nov 15, 2023
1 parent 822b6c6 commit 0099cfa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ protected void doInternalExecute(Task task, BulkRequest bulkRequest, String exec
}

// Step 3: create all the indices that are missing, if there are any missing. start the bulk after all the creates come back.
createMissingIndicesAndindexData(
createMissingIndicesAndIndexData(
task,
bulkRequest,
executorName,
Expand All @@ -380,7 +380,7 @@ protected void doInternalExecute(Task task, BulkRequest bulkRequest, String exec
/*
* This method is responsible for creating any missing indices and indexing the data in the BulkRequest
*/
protected void createMissingIndicesAndindexData(
protected void createMissingIndicesAndIndexData(
Task task,
BulkRequest bulkRequest,
String executorName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public TransportSimulateBulkAction(
* request gets a corresponding CREATE response, using information from the request.
*/
@Override
protected void createMissingIndicesAndindexData(
protected void createMissingIndicesAndIndexData(
Task task,
BulkRequest bulkRequest,
String executorName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import org.elasticsearch.client.internal.node.NodeClient;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.xcontent.XContentHelper;
import org.elasticsearch.core.RestApiVersion;
import org.elasticsearch.core.Tuple;
import org.elasticsearch.ingest.ConfigurationUtils;
import org.elasticsearch.ingest.IngestDocument;
Expand Down Expand Up @@ -69,9 +68,6 @@ public String getName() {
@Override
@SuppressWarnings("unchecked")
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {
if (request.getRestApiVersion() == RestApiVersion.V_7 && request.hasParam("type")) {
request.param("type");
}
String defaultIndex = request.param("index");
FetchSourceContext defaultFetchSourceContext = FetchSourceContext.parseFromRestRequest(request);
String defaultPipeline = request.param("pipeline");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void onFailure(Exception e) {
Set<String> autoCreateIndices = Set.of(); // unused
Map<String, IndexNotFoundException> indicesThatCannotBeCreated = Map.of(); // unused
long startTime = 0;
bulkAction.createMissingIndicesAndindexData(
bulkAction.createMissingIndicesAndIndexData(
task,
bulkRequest,
randomAlphaOfLength(10),
Expand Down

0 comments on commit 0099cfa

Please sign in to comment.