[ 
https://issues.apache.org/jira/browse/GEODE-9040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17306686#comment-17306686
 ] 

ASF subversion and git services commented on GEODE-9040:
--------------------------------------------------------

Commit 002eab7cef23b07597a55923d10203204aaa6847 in geode's branch 
refs/heads/support/1.14 from Barry Oglesby
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=002eab7 ]

GEODE-9040: Shutdown ExecutorService when the SingleThreadColocationLogger is 
stopped (#6166)

(cherry picked from commit 3b422bbe9631b7531633671a3938ed9600cfbc6e)

> The SingleThreadColocationLogger executorService is not shutdown when the 
> server is stopped
> -------------------------------------------------------------------------------------------
>
>                 Key: GEODE-9040
>                 URL: https://issues.apache.org/jira/browse/GEODE-9040
>             Project: Geode
>          Issue Type: Bug
>          Components: logging
>            Reporter: Barrett Oglesby
>            Assignee: Barrett Oglesby
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.14.0
>
>
> When a server is shutdown, its JVM remains alive because the ExecutorService 
> created by the SingleThreadColocationLogger is not terminated nor is its 
> thread a daemon:
> {noformat}
> "ColocationLogger for customer" #57 prio=5 os_prio=31 tid=0x00007fb39d4e4000 
> nid=0xb203 waiting on condition [0x000070000dc58000]
>    java.lang.Thread.State: WAITING (parking)
>       at sun.misc.Unsafe.park(Native Method)
>       - parking to wait for  <0x0000000785268818> (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:1067)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>       at java.lang.Thread.run(Thread.java:745)
> {noformat}
> The SingleThreadColocationLogger only gets created when there are missing 
> co-located regions.
> We can either terminate the ExecutorService or make its thread a daemon or 
> both.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to