Skip to content

Commit 4f2a83a

Browse files
committed
fix
1 parent 0a415fb commit 4f2a83a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
import java.util.function.Predicate;
5555

5656
import static org.elasticsearch.common.xcontent.XContentParserUtils.ensureExpectedToken;
57-
import static org.elasticsearch.common.xcontent.XContentParserUtils.expectValueToken;
5857

5958
/**
6059
* Generates the shard id for {@code (id, routing)} pairs.
@@ -449,7 +448,9 @@ private void extractObject(@Nullable String path, XContentParser source) throws
449448

450449
private void extractArray(@Nullable String path, XContentParser source) throws IOException {
451450
while (source.currentToken() != Token.END_ARRAY) {
452-
expectValueToken(source.currentToken(), source);
451+
// TODO: Fails on nested objects. I think this might work with the current implementation due to filtering which is not
452+
// implemented for ESON
453+
// expectValueToken(source.currentToken(), source);
453454
extractItem(path, source);
454455
}
455456
}

0 commit comments

Comments
 (0)