Hi All,
In our bitbucket server, we are using open search tool for search. We are unable to search any content and from logs we can see follow exception. All community forum refers to elasticsearch which we are not using and we use opensearch. Any leads or guidance to resolve this issue highly appreciated.
org.opensearch.action.search.SearchPhaseExecutionException: all shards failed
at org.opensearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:659) [opensearch-1.3.
5.jar:1.3.5]
at org.opensearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:369) [opensearch-1.
3.5.jar:1.3.5]
at org.opensearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:694) [opensearch-1.3.5.j
ar:1.3.5]
at org.opensearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:467) [opensearch-1.3.
5.jar:1.3.5]
at org.opensearch.action.search.AbstractSearchAsyncAction.access$100(AbstractSearchAsyncAction.java:82) [opensearch-1.3.5.jar
:1.3.5]
at org.opensearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:291) [opensearch-1.3.5.j
ar:1.3.5]
at org.opensearch.action.search.SearchExecutionStatsCollector.onFailure(SearchExecutionStatsCollector.java:84) [opensearch-1.
3.5.jar:1.3.5]
at org.opensearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:72) [opensearch-1.3
.5.jar:1.3.5]
at org.opensearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:
593) [opensearch-1.3.5.jar:1.3.5]
at org.opensearch.transport.TransportService$6.handleException(TransportService.java:742) [opensearch-1.3.5.jar:1.3.5]
at org.opensearch.security.transport.SecurityInterceptor$RestoringTransportResponseHandler.handleException(SecurityIntercepto
r.java:308) [opensearch-security-1.3.5.0.jar:1.3.5.0]
at org.opensearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1357) [opens
earch-1.3.5.jar:1.3.5]
at org.opensearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1466) [opensearch-1
.3.5.jar:1.3.5]
at org.opensearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1440) [opensearch-1.3.5
.jar:1.3.5]
at org.opensearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:74) [opensearch-1.3.5.jar:1.3.5]
at org.opensearch.transport.TransportChannel.sendErrorResponse(TransportChannel.java:69) [opensearch-1.3.5.jar:1.3.5]
at org.opensearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:65) [opensearch-1.3.5.jar:1.3.5]
at org.opensearch.action.ActionRunnable.onFailure(ActionRunnable.java:101) [opensearch-1.3.5.jar:1.3.5]
at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:52) [opensearch-1.3.5.jar:1.3.5]
at org.opensearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:57) [opensearch-1.3.5.jar:1.3.5]
at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:792) [opens
earch-1.3.5.jar:1.3.5]
at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:50) [opensearch-1.3.5.jar:1.3.5]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_402]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_402]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_402]
Caused by: org.opensearch.tasks.TaskCancelledException: cancelled task with reason: channel closed
at org.opensearch.search.query.QueryPhase.lambda$executeInternal$2(QueryPhase.java:263) ~[opensearch-1.3.5.jar:1.3.5]
at org.opensearch.search.internal.ContextIndexSearcher$MutableQueryTimeout.checkCancelled(ContextIndexSearcher.java:401) ~[op
ensearch-1.3.5.jar:1.3.5]
at org.opensearch.search.internal.ExitableDirectoryReader$ExitableTermsEnum.<init>(ExitableDirectoryReader.java:183) ~[opense
arch-1.3.5.jar:1.3.5]
at org.opensearch.search.internal.ExitableDirectoryReader$ExitableTermsEnum.<init>(ExitableDirectoryReader.java:173) ~[opense
arch-1.3.5.jar:1.3.5]
at org.opensearch.search.internal.ExitableDirectoryReader$ExitableTerms.iterator(ExitableDirectoryReader.java:165) ~[opensear
ch-1.3.5.jar:1.3.5]
at org.apache.lucene.index.TermStates.loadTermsEnum(TermStates.java:123) ~[lucene-core-8.10.1.jar:8.10.1 2f24e6a49d48a032df1f
12e146612f59141727a9 - mayyasharipova - 2021-10-12 15:13:05]
at org.apache.lucene.index.TermStates.build(TermStates.java:109) ~[lucene-core-8.10.1.jar:8.10.1 2f24e6a49d48a032df1f12e14661
2f59141727a9 - mayyasharipova - 2021-10-12 15:13:05]