File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
server/src/main/java/org/elasticsearch/cluster/routing Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -234,9 +234,7 @@ public int indexShard(IndexRequest indexRequest) {
234234 }
235235
236236 @ Override
237- public int rerouteIndexingRequestIfResharding (
238- IndexRequest indexRequest
239- ) {
237+ public int rerouteIndexingRequestIfResharding (IndexRequest indexRequest ) {
240238 // System.out.println("Route based on Id");
241239 String id = indexRequest .id ();
242240 String routing = indexRequest .routing ();
@@ -383,6 +381,9 @@ public int indexShard(IndexRequest indexRequest) {
383381
384382 protected abstract int hashSource (IndexRequest indexRequest );
385383
384+ // This is actually same as indexShard above minus the checkNoRouting check because routing
385+ // can be added to the request during postProcess. But we probably need to think of ways to
386+ // make this call cheaper.
386387 @ Override
387388 public int rerouteIndexingRequestIfResharding (IndexRequest indexRequest ) {
388389 // System.out.println("Extract from source");
You can’t perform that action at this time.
0 commit comments