HTTP Status 500 – Internal Server Error


Type Exception Report

Message Request processing failed; nested exception is Failed to execute phase [merge], [reduce]

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is Failed to execute phase [merge], [reduce] 
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:656)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

Root Cause

Failed to execute phase [merge], [reduce] 
	org.elasticsearch.action.search.SearchDfsQueryThenFetchAsyncAction$3.onFailure(SearchDfsQueryThenFetchAsyncAction.java:216)
	org.elasticsearch.common.util.concurrent.AbstractRunnable.onRejection(AbstractRunnable.java:63)
	org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.onRejection(ThreadContext.java:586)
	org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor.doExecute(EsThreadPoolExecutor.java:100)
	org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor.execute(EsThreadPoolExecutor.java:89)
	org.elasticsearch.action.search.SearchDfsQueryThenFetchAsyncAction.finishHim(SearchDfsQueryThenFetchAsyncAction.java:201)
	org.elasticsearch.action.search.SearchDfsQueryThenFetchAsyncAction.innerExecuteFetchPhase(SearchDfsQueryThenFetchAsyncAction.java:149)
	org.elasticsearch.action.search.SearchDfsQueryThenFetchAsyncAction.executeFetchPhase(SearchDfsQueryThenFetchAsyncAction.java:137)
	org.elasticsearch.action.search.SearchDfsQueryThenFetchAsyncAction$1.onResponse(SearchDfsQueryThenFetchAsyncAction.java:101)
	org.elasticsearch.action.search.SearchDfsQueryThenFetchAsyncAction$1.onResponse(SearchDfsQueryThenFetchAsyncAction.java:95)
	org.elasticsearch.action.ActionListenerResponseHandler.handleResponse(ActionListenerResponseHandler.java:46)
	org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1017)
	org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1090)
	org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1080)
	org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1070)
	org.elasticsearch.transport.DelegatingTransportChannel.sendResponse(DelegatingTransportChannel.java:58)
	org.elasticsearch.transport.RequestHandlerRegistry$TransportChannelWrapper.sendResponse(RequestHandlerRegistry.java:111)
	org.elasticsearch.action.search.SearchTransportService$7.messageReceived(SearchTransportService.java:307)
	org.elasticsearch.action.search.SearchTransportService$7.messageReceived(SearchTransportService.java:303)
	org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
	org.elasticsearch.transport.TransportService$7.doRun(TransportService.java:610)
	org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:596)
	org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	java.lang.Thread.run(Thread.java:745)

Root Cause

EsRejectedExecutionException[rejected execution of org.elasticsearch.action.search.SearchDfsQueryThenFetchAsyncAction$3@404c2c78 on EsThreadPoolExecutor[search, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@541b4ada[Running, pool size = 25, active threads = 25, queued tasks = 1000, completed tasks = 167707026180]]]
	org.elasticsearch.common.util.concurrent.EsAbortPolicy.rejectedExecution(EsAbortPolicy.java:50)
	java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)
	java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369)
	org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor.doExecute(EsThreadPoolExecutor.java:94)
	org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor.execute(EsThreadPoolExecutor.java:89)
	org.elasticsearch.action.search.SearchDfsQueryThenFetchAsyncAction.finishHim(SearchDfsQueryThenFetchAsyncAction.java:201)
	org.elasticsearch.action.search.SearchDfsQueryThenFetchAsyncAction.innerExecuteFetchPhase(SearchDfsQueryThenFetchAsyncAction.java:149)
	org.elasticsearch.action.search.SearchDfsQueryThenFetchAsyncAction.executeFetchPhase(SearchDfsQueryThenFetchAsyncAction.java:137)
	org.elasticsearch.action.search.SearchDfsQueryThenFetchAsyncAction$1.onResponse(SearchDfsQueryThenFetchAsyncAction.java:101)
	org.elasticsearch.action.search.SearchDfsQueryThenFetchAsyncAction$1.onResponse(SearchDfsQueryThenFetchAsyncAction.java:95)
	org.elasticsearch.action.ActionListenerResponseHandler.handleResponse(ActionListenerResponseHandler.java:46)
	org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1017)
	org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1090)
	org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1080)
	org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1070)
	org.elasticsearch.transport.DelegatingTransportChannel.sendResponse(DelegatingTransportChannel.java:58)
	org.elasticsearch.transport.RequestHandlerRegistry$TransportChannelWrapper.sendResponse(RequestHandlerRegistry.java:111)
	org.elasticsearch.action.search.SearchTransportService$7.messageReceived(SearchTransportService.java:307)
	org.elasticsearch.action.search.SearchTransportService$7.messageReceived(SearchTransportService.java:303)
	org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69)
	org.elasticsearch.transport.TransportService$7.doRun(TransportService.java:610)
	org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:596)
	org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	java.lang.Thread.run(Thread.java:745)

Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat/8.5.43