druid icon indicating copy to clipboard operation
druid copied to clipboard

io.druid.indexing.overlord.TaskQueue ---- OutOfMemoryError

Open BugRookie opened this issue 9 years ago • 2 comments

How does this happen? And how to fix it? Druid Version 0.9.1.1

2017-05-11T20:11:49,579 INFO [TaskQueue-Manager] io.druid.indexing.overlord.TaskQueue - Beginning management in PT20S. 2017-05-11T20:11:49,579 INFO [Curator-LeaderSelector-0] com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler - Invoking start method[public void io.druid.indexing.overlord.supervisor.SupervisorManager.start()] on object[io.druid.indexing.overlord.supervisor.SupervisorManager@798387d2]. 2017-05-11T20:11:49,579 INFO [Curator-LeaderSelector-0] io.druid.indexing.overlord.TaskMaster - Bowing out! 2017-05-11T20:11:49,579 ERROR [Curator-LeaderSelector-0] io.druid.indexing.overlord.TaskMaster - Failed to lead: {class=io.druid.indexing.overlord.TaskMaster, exceptionType=class java.lang.reflect.InvocationTargetException, exceptionMessage=null} java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_67] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_67] at com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler.start(Lifecycle.java:350) ~[java-util-0.27.9.jar:?] at com.metamx.common.lifecycle.Lifecycle.start(Lifecycle.java:259) ~[java-util-0.27.9.jar:?] at io.druid.indexing.overlord.TaskMaster$1.takeLeadership(TaskMaster.java:141) [druid-indexing-service-0.9.1.1.jar:0.9.1.1] at org.apache.curator.framework.recipes.leader.LeaderSelector$WrappedListener.takeLeadership(LeaderSelector.java:534) [curator-recipes-2.10.0.jar:?] at org.apache.curator.framework.recipes.leader.LeaderSelector.doWork(LeaderSelector.java:399) [curator-recipes-2.10.0.jar:?] at org.apache.curator.framework.recipes.leader.LeaderSelector.doWorkLoop(LeaderSelector.java:441) [curator-recipes-2.10.0.jar:?] at org.apache.curator.framework.recipes.leader.LeaderSelector.access$100(LeaderSelector.java:64) [curator-recipes-2.10.0.jar:?] at org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:245) [curator-recipes-2.10.0.jar:?] at org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:239) [curator-recipes-2.10.0.jar:?] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_67] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_67] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_67] at java.lang.Thread.run(Thread.java:745) [?:1.7.0_67] _**Caused by: java.lang.IllegalStateException: SupervisorManager already started**_ at com.google.common.base.Preconditions.checkState(Preconditions.java:176) ~[guava-16.0.1.jar:?] at io.druid.indexing.overlord.supervisor.SupervisorManager.start(SupervisorManager.java:93) ~[druid-indexing-service-0.9.1.1.jar:0.9.1.1] ... 18 more 2017-05-11T20:11:49,581 INFO [Curator-LeaderSelector-0] com.metamx.emitter.core.LoggingEmitter - Event [{"feed":"alerts","timestamp":"2017-05-11T20:11:49.581+08:00","service":"druid/overlord","host":"172.25.72.253:18090","severity":"component-failure","description":"Failed to lead","data":{"class":"io.druid.indexing.overlord.TaskMaster","exceptionType":"java.lang.reflect.InvocationTargetException","exceptionMessage":null,"exceptionStackTrace":"java.lang.reflect.InvocationTargetException\n\tat sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:606)\n\tat com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler.start(Lifecycle.java:350)\n\tat com.metamx.common.lifecycle.Lifecycle.start(Lifecycle.java:259)\n\tat io.druid.indexing.overlord.TaskMaster$1.takeLeadership(TaskMaster.java:141)\n\tat org.apache.curator.framework.recipes.leader.LeaderSelector$WrappedListener.takeLeadership(LeaderSelector.java:534)\n\tat org.apache.curator.framework.recipes.leader.LeaderSelector.doWork(LeaderSelector.java:399)\n\tat org.apache.curator.framework.recipes.leader.LeaderSelector.doWorkLoop(LeaderSelector.java:441)\n\tat org.apache.curator.framework.recipes.leader.LeaderSelector.access$100(LeaderSelector.java:64)\n\tat org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:245)\n\tat org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:239)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat java.lang.Thread.run(Thread.java:745)\nCaused by: java.lang.IllegalStateException: SupervisorManager already started\n\tat com.google.common.base.Preconditions.checkState(Preconditions.java:176)\n\tat io.druid.indexing.overlord.supervisor.SupervisorManager.start(SupervisorManager.java:93)\n\t... 18 more\n"}}] 2017-05-11T20:11:49,583 INFO [TaskQueue-StorageSync] io.druid.indexing.overlord.TaskQueue - Synced 0 tasks from storage (0 tasks added, 0 tasks removed). 2017-05-11T20:11:49,586 INFO [TaskQueue-StorageSync] io.druid.indexing.overlord.TaskQueue - Synced 0 tasks from storage (0 tasks added, 0 tasks removed). 2017-05-11T20:11:49,587 INFO [Curator-LeaderSelector-0] io.druid.indexing.overlord.TaskMaster - By the power of Grayskull, I have the power! 2017-05-11T20:11:49,587 INFO [Curator-LeaderSelector-0] io.druid.indexing.overlord.TaskLockbox - Synced 0 locks for 0 activeTasks from storage (0 locks ignored). 2017-05-11T20:11:49,587 ERROR [Curator-LeaderSelector-0] io.druid.indexing.overlord.TaskMaster - TaskMaster set a new Lifecycle without the old one being cleared! Race condition: {class=io.druid.indexing.overlord.TaskMaster} 2017-05-11T20:11:49,588 INFO [Curator-LeaderSelector-0] com.metamx.emitter.core.LoggingEmitter - Event [{"feed":"alerts","timestamp":"2017-05-11T20:11:49.587+08:00","service":"druid/overlord","host":"172.25.72.253:18090","severity":"component-failure","description":"TaskMaster set a new Lifecycle without the old one being cleared! Race condition","data":{"class":"io.druid.indexing.overlord.TaskMaster"}}] 2017-05-11T20:11:49,588 INFO [Curator-LeaderSelector-0] com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler - Invoking start method[public void io.druid.indexing.overlord.RemoteTaskRunner.start()] on object[io.druid.indexing.overlord.RemoteTaskRunner@32b47f7e]. 2017-05-11T20:11:49,594 INFO [TaskQueue-StorageSync] io.druid.indexing.overlord.TaskQueue - Synced 0 tasks from storage (0 tasks added, 0 tasks removed). 2017-05-11T20:11:49,598 INFO [Curator-PathChildrenCache-7800] io.druid.indexing.overlord.RemoteTaskRunner - Worker[172.25.72.252:18091] reportin' for duty! 2017-05-11T20:11:49,598 INFO [Curator-PathChildrenCache-7800] io.druid.indexing.overlord.RemoteTaskRunner - Worker[172.25.72.253:18091] reportin' for duty! 2017-05-11T20:11:49,598 INFO [Curator-PathChildrenCache-7800] io.druid.indexing.overlord.RemoteTaskRunner - Worker[172.25.72.254:18091] reportin' for duty! 2017-05-11T20:11:49,599 INFO [TaskQueue-StorageSync] io.druid.indexing.overlord.TaskQueue - Synced 0 tasks from storage (0 tasks added, 0 tasks removed). 2017-05-11T20:11:49,615 INFO [TaskQueue-StorageSync] io.druid.indexing.overlord.TaskQueue - Synced 0 tasks from storage (0 tasks added, 0 tasks removed). 2017-05-11T20:11:49,615 INFO [Curator-LeaderSelector-0] com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler - Invoking start method[public void io.druid.indexing.overlord.TaskQueue.start()] on object[io.druid.indexing.overlord.TaskQueue@461618ce]. 2017-05-11T20:11:49,615 INFO [Curator-LeaderSelector-0] io.druid.indexing.overlord.TaskQueue - Synced 0 tasks from storage (0 tasks added, 0 tasks removed). 2017-05-11T20:11:49,621 INFO [TaskQueue-StorageSync] io.druid.indexing.overlord.TaskQueue - Synced 0 tasks from storage (0 tasks added, 0 tasks removed). 2017-05-11T20:11:49,623 INFO [Curator-LeaderSelector-0] io.druid.indexing.overlord.TaskMaster - Bowing out! 2017-05-11T20:11:49,624 ERROR [Curator-LeaderSelector-0] io.druid.indexing.overlord.TaskMaster - Failed to lead: {class=io.druid.indexing.overlord.TaskMaster, exceptionType=class java.lang.reflect.InvocationTargetException, exceptionMessage=null} java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_67] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_67] at com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler.start(Lifecycle.java:350) ~[java-util-0.27.9.jar:?] at com.metamx.common.lifecycle.Lifecycle.start(Lifecycle.java:259) ~[java-util-0.27.9.jar:?] at io.druid.indexing.overlord.TaskMaster$1.takeLeadership(TaskMaster.java:141) [druid-indexing-service-0.9.1.1.jar:0.9.1.1] at org.apache.curator.framework.recipes.leader.LeaderSelector$WrappedListener.takeLeadership(LeaderSelector.java:534) [curator-recipes-2.10.0.jar:?] at org.apache.curator.framework.recipes.leader.LeaderSelector.doWork(LeaderSelector.java:399) [curator-recipes-2.10.0.jar:?] at org.apache.curator.framework.recipes.leader.LeaderSelector.doWorkLoop(LeaderSelector.java:441) [curator-recipes-2.10.0.jar:?] at org.apache.curator.framework.recipes.leader.LeaderSelector.access$100(LeaderSelector.java:64) [curator-recipes-2.10.0.jar:?] at org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:245) [curator-recipes-2.10.0.jar:?] at org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:239) [curator-recipes-2.10.0.jar:?] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_67] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_67] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_67] at java.lang.Thread.run(Thread.java:745) [?:1.7.0_67] **_Caused by: java.lang.OutOfMemoryError: unable to create new native thread_** at java.lang.Thread.start0(Native Method) ~[?:1.7.0_67] at java.lang.Thread.start(Thread.java:714) ~[?:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949) ~[?:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1360) ~[?:1.7.0_67] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:110) ~[?:1.7.0_67] at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:638) ~[?:1.7.0_67] at io.druid.indexing.overlord.TaskQueue.start(TaskQueue.java:128) ~[druid-indexing-service-0.9.1.1.jar:0.9.1.1] ... 18 more 2017-05-11T20:11:49,626 INFO [Curator-LeaderSelector-0] com.metamx.emitter.core.LoggingEmitter - Event [{"feed":"alerts","timestamp":"2017-05-11T20:11:49.626+08:00","service":"druid/overlord","host":"172.25.72.253:18090","severity":"component-failure","description":"Failed to lead","data":{"class":"io.druid.indexing.overlord.TaskMaster","exceptionType":"java.lang.reflect.InvocationTargetException","exceptionMessage":null,"exceptionStackTrace":"java.lang.reflect.InvocationTargetException\n\tat sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:606)\n\tat com.metamx.common.lifecycle.Lifecycle$AnnotationBasedHandler.start(Lifecycle.java:350)\n\tat com.metamx.common.lifecycle.Lifecycle.start(Lifecycle.java:259)\n\tat io.druid.indexing.overlord.TaskMaster$1.takeLeadership(TaskMaster.java:141)\n\tat org.apache.curator.framework.recipes.leader.LeaderSelector$WrappedListener.takeLeadership(LeaderSelector.java:534)\n\tat org.apache.curator.framework.recipes.leader.LeaderSelector.doWork(LeaderSelector.java:399)\n\tat org.apache.curator.framework.recipes.leader.LeaderSelector.doWorkLoop(LeaderSelector.java:441)\n\tat org.apache.curator.framework.recipes.leader.LeaderSelector.access$100(LeaderSelector.java:64)\n\tat org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:245)\n\tat org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:239)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:262)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat java.lang.Thread.run(Thread.java:745)\nCaused by: java.lang.OutOfMemoryError: unable to create new native thread\n\tat java.lang.Thread.start0(Native Method)\n\tat java.lang.Thread.start(Thread.java:714)\n\tat java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949)\n\tat java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1360)\n\tat java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:110)\n\tat java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:638)\n\tat io.druid.indexing.overlord.TaskQueue.start(TaskQueue.java:128)\n\t... 18 more\n"}}] 2017-05-11T20:11:49,627 INFO [TaskQueue-StorageSync] io.druid.indexing.overlord.TaskQueue - Synced 0 tasks from storage (0 tasks added, 0 tasks removed). 2017-05-11T20:11:49,629 INFO [TaskQueue-StorageSync] io.druid.indexing.overlord.TaskQueue - Synced 0 tasks from storage (0 tasks added, 0 tasks removed). 2017-05-11T20:11:49,631 INFO [Curator-LeaderSelector-0] io.druid.indexing.overlord.TaskMaster - By the power of Grayskull, I have the power! 2017-05-11T20:11:49,631 INFO [TaskQueue-StorageSync] io.druid.indexing.overlord.TaskQueue - Synced 0 tasks from storage (0 tasks added, 0 tasks removed). 2017-05-11T20:11:49,631 INFO [Curator-LeaderSelector-0] io.druid.indexing.overlord.TaskLockbox - Synced 0 locks for 0 activeTasks from storage (0 locks ignored). 2017-05-11T20:11:49,632 ERROR [Curator-LeaderSelector-0] io.druid.indexing.overlord.TaskMaster - TaskMaster set a new Lifecycle without the old one being cleared! Race condition: {class=io.druid.indexing.overlord.TaskMaster}

BugRookie avatar May 15 '17 07:05 BugRookie

This issue has been marked as stale due to 280 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

stale[bot] avatar Jun 21 '19 09:06 stale[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

stale[bot] avatar Jul 05 '19 10:07 stale[bot]