Description
Elasticsearch Version
main
Installed Plugins
No response
Java Version
bundled
OS Version
Problem Description
NPE in SemanticTextHighlighter
:
"Failed to execute phase [fetch], all shards failed; shardFailures {[KmYgpRKwTA2xzkXc1ay-0g][dev_kindergarten_search_index][0]: org.elasticsearch.transport.RemoteTransportException: [es-es-search-68896db54d-9lb65][100.64.7.135:9300][indices:data/read/search[phase/fetch/id]]
Caused by: org.elasticsearch.search.fetch.FetchPhaseExecutionException: Fetch Failed [Error running fetch phase for doc [95]]
at [email protected]/org.elasticsearch.search.fetch.FetchPhaseDocsIterator.iterate(FetchPhaseDocsIterator.java:109)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:210)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:85)
at [email protected]/org.elasticsearch.search.SearchService.lambda$executeFetchPhase$15(SearchService.java:1169)
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:1044)
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: java.lang.NullPointerException: Cannot invoke ""org.elasticsearch.inference.MinimalServiceSettings.taskType()"" because the return value of ""org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapper$SemanticTextFieldType.getModelSettings()"" is null
at [email protected]/org.elasticsearch.xpack.inference.highlight.SemanticTextHighlighter.highlight(SemanticTextHighlighter.java:82)
at [email protected]/org.elasticsearch.search.fetch.subphase.highlight.HighlightPhase$1.process(HighlightPhase.java:70)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase$1.nextDoc(FetchPhase.java:193)
at [email protected]/org.elasticsearch.search.fetch.FetchPhaseDocsIterator.iterate(FetchPhaseDocsIterator.java:90)
... 13 more
}{[KmYgpRKwTA2xzkXc1ay-0g][dev_kindergarten_search_index][1]: org.elasticsearch.transport.RemoteTransportException: [es-es-search-68896db54d-9lb65][100.64.7.135:9300][indices:data/read/search[phase/fetch/id]]
Caused by: org.elasticsearch.search.fetch.FetchPhaseExecutionException: Fetch Failed [Error running fetch phase for doc [26]]
at [email protected]/org.elasticsearch.search.fetch.FetchPhaseDocsIterator.iterate(FetchPhaseDocsIterator.java:109)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:210)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:85)
at [email protected]/org.elasticsearch.search.SearchService.lambda$executeFetchPhase$15(SearchService.java:1169)
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:1044)
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: java.lang.NullPointerException: Cannot invoke ""org.elasticsearch.inference.MinimalServiceSettings.taskType()"" because the return value of ""org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapper$SemanticTextFieldType.getModelSettings()"" is null
at [email protected]/org.elasticsearch.xpack.inference.highlight.SemanticTextHighlighter.highlight(SemanticTextHighlighter.java:82)
at [email protected]/org.elasticsearch.search.fetch.subphase.highlight.HighlightPhase$1.process(HighlightPhase.java:70)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase$1.nextDoc(FetchPhase.java:193)
at [email protected]/org.elasticsearch.search.fetch.FetchPhaseDocsIterator.iterate(FetchPhaseDocsIterator.java:90)
... 13 more
}{[KmYgpRKwTA2xzkXc1ay-0g][dev_kindergarten_search_index][2]: org.elasticsearch.transport.RemoteTransportException: [es-es-search-68896db54d-9lb65][100.64.7.135:9300][indices:data/read/search[phase/fetch/id]]
Caused by: org.elasticsearch.search.fetch.FetchPhaseExecutionException: Fetch Failed [Error running fetch phase for doc [28]]
at [email protected]/org.elasticsearch.search.fetch.FetchPhaseDocsIterator.iterate(FetchPhaseDocsIterator.java:109)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:210)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:85)
at [email protected]/org.elasticsearch.search.SearchService.lambda$executeFetchPhase$15(SearchService.java:1169)
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:1044)
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: java.lang.NullPointerException: Cannot invoke ""org.elasticsearch.inference.MinimalServiceSettings.taskType()"" because the return value of ""org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapper$SemanticTextFieldType.getModelSettings()"" is null
at [email protected]/org.elasticsearch.xpack.inference.highlight.SemanticTextHighlighter.highlight(SemanticTextHighlighter.java:82)
at [email protected]/org.elasticsearch.search.fetch.subphase.highlight.HighlightPhase$1.process(HighlightPhase.java:70)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase$1.nextDoc(FetchPhase.java:193)
at [email protected]/org.elasticsearch.search.fetch.FetchPhaseDocsIterator.iterate(FetchPhaseDocsIterator.java:90)
... 13 more
}{[KmYgpRKwTA2xzkXc1ay-0g][dev_kindergarten_search_index][3]: org.elasticsearch.transport.RemoteTransportException: [es-es-search-68896db54d-9lb65][100.64.7.135:9300][indices:data/read/search[phase/fetch/id]]
Caused by: org.elasticsearch.search.fetch.FetchPhaseExecutionException: Fetch Failed [Error running fetch phase for doc [116]]
at [email protected]/org.elasticsearch.search.fetch.FetchPhaseDocsIterator.iterate(FetchPhaseDocsIterator.java:109)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:210)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:85)
at [email protected]/org.elasticsearch.search.SearchService.lambda$executeFetchPhase$15(SearchService.java:1169)
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:1044)
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: java.lang.NullPointerException: Cannot invoke ""org.elasticsearch.inference.MinimalServiceSettings.taskType()"" because the return value of ""org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapper$SemanticTextFieldType.getModelSettings()"" is null
at [email protected]/org.elasticsearch.xpack.inference.highlight.SemanticTextHighlighter.highlight(SemanticTextHighlighter.java:82)
at [email protected]/org.elasticsearch.search.fetch.subphase.highlight.HighlightPhase$1.process(HighlightPhase.java:70)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase$1.nextDoc(FetchPhase.java:193)
at [email protected]/org.elasticsearch.search.fetch.FetchPhaseDocsIterator.iterate(FetchPhaseDocsIterator.java:90)
... 13 more
}{[KmYgpRKwTA2xzkXc1ay-0g][dev_kindergarten_search_index][4]: org.elasticsearch.transport.RemoteTransportException: [es-es-search-68896db54d-9lb65][100.64.7.135:9300][indices:data/read/search[phase/fetch/id]]
Caused by: org.elasticsearch.search.fetch.FetchPhaseExecutionException: Fetch Failed [Error running fetch phase for doc [72]]
at [email protected]/org.elasticsearch.search.fetch.FetchPhaseDocsIterator.iterate(FetchPhaseDocsIterator.java:109)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:210)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:85)
at [email protected]/org.elasticsearch.search.SearchService.lambda$executeFetchPhase$15(SearchService.java:1169)
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:1044)
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: java.lang.NullPointerException: Cannot invoke ""org.elasticsearch.inference.MinimalServiceSettings.taskType()"" because the return value of ""org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapper$SemanticTextFieldType.getModelSettings()"" is null
at [email protected]/org.elasticsearch.xpack.inference.highlight.SemanticTextHighlighter.highlight(SemanticTextHighlighter.java:82)
at [email protected]/org.elasticsearch.search.fetch.subphase.highlight.HighlightPhase$1.process(HighlightPhase.java:70)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase$1.nextDoc(FetchPhase.java:193)
at [email protected]/org.elasticsearch.search.fetch.FetchPhaseDocsIterator.iterate(FetchPhaseDocsIterator.java:90)
... 13 more
}
at [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:624)
at [email protected]/org.elasticsearch.action.search.SearchQueryThenFetchAsyncAction.onPhaseFailure(SearchQueryThenFetchAsyncAction.java:81)
at [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:326)
at [email protected]/org.elasticsearch.action.search.FetchSearchPhase.moveToNextPhase(FetchSearchPhase.java:263)
at [email protected]/org.elasticsearch.action.search.FetchSearchPhase.lambda$innerRunFetch$1(FetchSearchPhase.java:136)
at [email protected]/org.elasticsearch.action.search.CountedCollector.countDown(CountedCollector.java:41)
at [email protected]/org.elasticsearch.action.search.CountedCollector.onFailure(CountedCollector.java:60)
at [email protected]/org.elasticsearch.action.search.FetchSearchPhase$2.onFailure(FetchSearchPhase.java:225)
at [email protected]/org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:54)
at [email protected]/org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:598)
at [email protected]/org.elasticsearch.transport.TransportService$UnregisterChildTransportResponseHandler.handleException(TransportService.java:1727)
at [email protected]/org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1507)
at [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1641)
at [email protected]/org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1616)
at [email protected]/org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:44)
at [email protected]/org.elasticsearch.action.support.ChannelActionListener.onFailure(ChannelActionListener.java:45)
at [email protected]/org.elasticsearch.search.SearchService$2.onFailure(SearchService.java:1509)
at [email protected]/org.elasticsearch.action.ActionRunnable.onFailure(ActionRunnable.java:152)
at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:29)
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:1044)
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$1: Cannot invoke ""org.elasticsearch.inference.MinimalServiceSettings.taskType()"" because the return value of ""org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapper$SemanticTextFieldType.getModelSettings()"" is null
at [email protected]/org.elasticsearch.ElasticsearchException.guessRootCauses(ElasticsearchException.java:750)
at [email protected]/org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:324)
... 22 more
Caused by: java.lang.NullPointerException: Cannot invoke ""org.elasticsearch.inference.MinimalServiceSettings.taskType()"" because the return value of ""org.elasticsearch.xpack.inference.mapper.SemanticTextFieldMapper$SemanticTextFieldType.getModelSettings()"" is null
at [email protected]/org.elasticsearch.xpack.inference.highlight.SemanticTextHighlighter.highlight(SemanticTextHighlighter.java:82)
at [email protected]/org.elasticsearch.search.fetch.subphase.highlight.HighlightPhase$1.process(HighlightPhase.java:70)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase$1.nextDoc(FetchPhase.java:193)
at [email protected]/org.elasticsearch.search.fetch.FetchPhaseDocsIterator.iterate(FetchPhaseDocsIterator.java:90)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase.buildSearchHits(FetchPhase.java:210)
at [email protected]/org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:85)
at [email protected]/org.elasticsearch.search.SearchService.lambda$executeFetchPhase$15(SearchService.java:1169)
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)
"
Steps to Reproduce
Found in serverless log alerts
Logs (if relevant)
No response