Skip to content

QueryPhaseExecutionException: Query Failed [Failed to execute main query] Caused by: java.util.concurrent.ExecutionException: org.elasticsearch.tasks.TaskCancelledException: task cancelled #131548

@fang-xing-esql

Description

@fang-xing-esql

Elasticsearch Version

main

Installed Plugins

No response

Java Version

bundled

OS Version

20.04.6 LTS (Focal Fossa)

Problem Description

org.elasticsearch.search.query.QueryPhaseExecutionException: Query Failed [Failed to execute main query]
	at [email protected]/org.elasticsearch.search.query.QueryPhase.addCollectorsAndSearch(QueryPhase.java:237)
	at [email protected]/org.elasticsearch.search.query.QueryPhase.executeQuery(QueryPhase.java:143)
	at [email protected]/org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:70)
	at [email protected]/org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:691)
	at [email protected]/org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:896)
	at [email protected]/org.elasticsearch.search.SearchService.lambda$executeQueryPhase$7(SearchService.java:729)
	at [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:79)
	at [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:76)
	at [email protected]/org.elasticsearch.action.ActionRunnable$4.doRun(ActionRunnable.java:101)
	at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)
	at [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:35)
	at [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:1067)
	at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1095)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619)
	at java.base/java.lang.Thread.run(Thread.java:1447)
Caused by: org.elasticsearch.ElasticsearchException: java.util.concurrent.ExecutionException: org.elasticsearch.tasks.TaskCancelledException: task cancelled [http channel [Netty4HttpChannel{localAddress=/100.64.52.76:9200, remoteAddress=/100.64.29.13:53472}] closed]
	at [email protected]/org.elasticsearch.ExceptionsHelper.convertToElastic(ExceptionsHelper.java:60)
	at [email protected]/org.elasticsearch.index.cache.bitset.BitsetFilterCache$QueryWrapperBitSetProducer.getBitSet(BitsetFilterCache.java:239)
	at [email protected]/org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinWeight.scorerSupplier(ToParentBlockJoinQuery.java:152)
	at [email protected]/org.apache.lucene.search.BooleanWeight.scorerSupplier(BooleanWeight.java:290)
	at [email protected]/org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinWeight.scorerSupplier(ToParentBlockJoinQuery.java:145)
	at [email protected]/org.apache.lucene.search.BooleanWeight.scorerSupplier(BooleanWeight.java:290)
	at [email protected]/org.apache.lucene.search.Weight.bulkScorer(Weight.java:171)
	at [email protected]/org.elasticsearch.search.internal.ContextIndexSearcher.searchLeaf(ContextIndexSearcher.java:454)
	at [email protected]/org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:809)
	at [email protected]/org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:387)
	at [email protected]/org.elasticsearch.search.internal.ContextIndexSearcher.lambda$search$3(ContextIndexSearcher.java:365)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
	at [email protected]/org.apache.lucene.search.TaskExecutor$Task.run(TaskExecutor.java:173)
	at [email protected]/org.apache.lucene.search.TaskExecutor.lambda$invokeAll$1(TaskExecutor.java:98)
	... 6 more
	Suppressed: org.elasticsearch.tasks.TaskCancelledException: task cancelled [http channel [Netty4HttpChannel{localAddress=/100.64.52.76:9200, remoteAddress=/100.64.29.13:53472}] closed]
	Suppressed: org.elasticsearch.tasks.TaskCancelledException: task cancelled [http channel [Netty4HttpChannel{localAddress=/100.64.52.76:9200, remoteAddress=/100.64.29.13:53472}] closed]
	Suppressed: org.elasticsearch.tasks.TaskCancelledException: task cancelled [http channel [Netty4HttpChannel{localAddress=/100.64.52.76:9200, remoteAddress=/100.64.29.13:53472}] closed]
	Suppressed: org.elasticsearch.tasks.TaskCancelledException: task cancelled [http channel [Netty4HttpChannel{localAddress=/100.64.52.76:9200, remoteAddress=/100.64.29.13:53472}] closed]
	Suppressed: org.elasticsearch.tasks.TaskCancelledException: task cancelled [http channel [Netty4HttpChannel{localAddress=/100.64.52.76:9200, remoteAddress=/100.64.29.13:53472}] closed]
	Suppressed: org.elasticsearch.tasks.TaskCancelledException: task cancelled [http channel [Netty4HttpChannel{localAddress=/100.64.52.76:9200, remoteAddress=/100.64.29.13:53472}] closed]
	Suppressed: org.elasticsearch.tasks.TaskCancelledException: task cancelled [http channel [Netty4HttpChannel{localAddress=/100.64.52.76:9200, remoteAddress=/100.64.29.13:53472}] closed]
	Suppressed: org.elasticsearch.tasks.TaskCancelledException: task cancelled [http channel [Netty4HttpChannel{localAddress=/100.64.52.76:9200, remoteAddress=/100.64.29.13:53472}] closed]
Caused by: java.util.concurrent.ExecutionException: org.elasticsearch.tasks.TaskCancelledException: task cancelled [http channel [Netty4HttpChannel{localAddress=/100.64.52.76:9200, remoteAddress=/100.64.29.13:53472}] closed]
	at [email protected]/org.elasticsearch.common.cache.Cache.computeIfAbsent(Cache.java:443)
	at [email protected]/org.elasticsearch.index.cache.bitset.BitsetFilterCache.getAndLoadIfNotPresent(BitsetFilterCache.java:180)
	at [email protected]/org.elasticsearch.index.cache.bitset.BitsetFilterCache$QueryWrapperBitSetProducer.getBitSet(BitsetFilterCache.java:237)
	... 18 more
Caused by: org.elasticsearch.tasks.TaskCancelledException: task cancelled [http channel [Netty4HttpChannel{localAddress=/100.64.52.76:9200, remoteAddress=/100.64.29.13:53472}] closed]

Steps to Reproduce

N/A

Logs (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Search Relevance/SearchCatch all for Search Relevance:Search/SearchSearch-related issues that do not fall into other categories>bugTeam:SearchMeta label for search teamTeam:Search RelevanceMeta label for the Search Relevance team in Elasticsearchlow-riskAn open issue or test failure that is a low risk to future releasespriority:normalA label for assessing bug priority to be used by ES engineers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions