The parent task was cancelled, shouldn't start any child tasks

  • Total shards 110
  • Data 3.7gb
  • Indices 99

Problem in kibana monitoring section.The page was showing indices fails.

In elasticsearch log file

[2021-01-20T21:27:16,584][INFO ][o.e.m.j.JvmGcMonitorService] [elastic] [gc][3089] overhead, spent [254ms] collecting in the last [1s]
[2021-01-20T21:28:28,896][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [elastic] uncaught exception in thread [elasticsearch[elastic][search][T#3]]
org.elasticsearch.tasks.TaskCancelledException: The parent task was cancelled, shouldn't start any child tasks
[2021-01-20T21:56:23,133][WARN ][r.suppressed             ] [elastic] path: /elastalert_status/_search, params: {index=elastalert_status}
org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed
[2021-01-20T22:01:58,438][INFO ][o.e.m.j.JvmGcMonitorService] [elastic] [gc][5151] overhead, spent [336ms] collecting in the last [1.2s]

The jvm heap consumed in that time was 1.6gb out of 2.6gb. I am using elk 7.10 and i am monitoring elk with metricbeat.

Logging this message as an ERROR is a bug, this exception is expected when a search is cancelled. I opened an issue to report it:

Do i need to update elk

Yes upgrading to 7.10.2 will stop that message from being logged.

1 Like

i upgraded elk to 7.10.2 version but the problem is not solved

I expect the logs look different now, probably worth sharing a fresh copy.

I am also facing similar issue for search.
ES version: 7.8.1

Exception:
org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:551) [elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:309) [elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.action.search.FetchSearchPhase.moveToNextPhase(FetchSearchPhase.java:231) [elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.action.search.FetchSearchPhase.lambda$innerRun$1(FetchSearchPhase.java:119) [elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.action.search.CountedCollector.countDown(CountedCollector.java:53) [elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.action.search.FetchSearchPhase.innerRun(FetchSearchPhase.java:155) [elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.action.search.FetchSearchPhase.access$000(FetchSearchPhase.java:47) [elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.action.search.FetchSearchPhase$1.doRun(FetchSearchPhase.java:95) [elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:44) [elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:695) [elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.8.1.jar:7.8.1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:834) [?:?]Caused by: org.elasticsearch.tasks.TaskCancelledException: The parent task was cancelled, shouldn't start any child tasks at org.elasticsearch.tasks.TaskManager$CancellableTaskHolder.registerChildNode(TaskManager.java:521) ~[elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.tasks.TaskManager.registerChildNode(TaskManager.java:201) ~[elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:627) ~[elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.transport.TransportService.sendChildRequest(TransportService.java:704) ~[elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.transport.TransportService.sendChildRequest(TransportService.java:696) ~[elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.action.search.SearchTransportService.sendExecuteFetch(SearchTransportService.java:173) ~[elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.action.search.SearchTransportService.sendExecuteFetch(SearchTransportService.java:163) ~[elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.action.search.FetchSearchPhase.executeFetch(FetchSearchPhase.java:180) ~[elasticsearch-7.8.1.jar:7.8.1] at org.elasticsearch.action.search.FetchSearchPhase.innerRun(FetchSearchPhase.java:162) ~[elasticsearch-7.8.1.jar:7.8.1] ... 9 more

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.