Skip to content

Commit c2c5490

Browse files
committed
spotless
1 parent a9c9885 commit c2c5490

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/IndexRouting.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)