[ https://issues.apache.org/jira/browse/GEODE-8071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated GEODE-8071: ---------------------------------- Labels: caching-applications pull-request-available (was: caching-applications) > RebalanceCommand Should Use Daemon Threads > ------------------------------------------ > > Key: GEODE-8071 > URL: https://issues.apache.org/jira/browse/GEODE-8071 > Project: Geode > Issue Type: Bug > Components: gfsh, management > Affects Versions: 1.8.0, 1.9.0, 1.9.1, 1.10.0, 1.9.2, 1.11.0, 1.12.0 > Reporter: Juan Ramos > Assignee: Juan Ramos > Priority: Major > Labels: caching-applications, pull-request-available > Fix For: 1.12.1, 1.13.0, 1.14.0 > > > The {{RebalanceCommand}} uses a non-daemon thread to execute its internal > logic: > {code:title=RebalanceCommand.java|borderStyle=solid} > ExecutorService commandExecutors = > LoggingExecutors.newSingleThreadExecutor("RebalanceCommand", false); > {code} > The above prevents the {{locator}} from gracefully shutdown afterwards: > {noformat} > "RebalanceCommand1" #971 prio=5 os_prio=0 tid=0x00007f9664011000 nid=0x15905 > waiting on condition [0x00007f9651471000] > java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0x00000007308c36e8> (a > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) > at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) > at > java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) > at > java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)