Skip to content

Commit d2eba28

Browse files
committed
fix tests
1 parent 02ca394 commit d2eba28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/internalClusterTest/java/org/elasticsearch/search/fieldcaps/FieldCapabilitiesIT.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,10 @@ static void unblockOnRewrite() {
906906

907907
@Override
908908
protected QueryBuilder doRewrite(QueryRewriteContext queryRewriteContext) throws IOException {
909+
// skip rewriting on the coordinator
910+
if (queryRewriteContext.convertToCoordinatorRewriteContext() != null) {
911+
return this;
912+
}
909913
try {
910914
blockingLatch.await();
911915
} catch (InterruptedException e) {

0 commit comments

Comments
 (0)