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

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

Commit 96bd8be37a8d32c7193ae0d613a1cac80cd3b496 in geode's branch 
refs/heads/release/1.11.0 from Aaron Lindsey
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=96bd8be ]

GEODE-7400: Prevent RejectedExecutionException in FederatingManager (#4270)

Commit f0c96db73263bb1b3cb04558f2a720d70f43421f changed the
FederatingManager class so that it reuses the same ExecutorService
between restarts. After that change, if we start the manager after
previously starting and stopping it, we get RejectedExecutionException
because it tries to invoke a task on the same ExecutorService which has
been shut down.

This commit changes the FederatingManager so that it invokes a supplier
to get a new ExecutorService each time it is started to prevent the
RejectedExecutionException.

Co-authored-by: Aaron Lindsey <[email protected]>
Co-authored-by: Kirk Lund <[email protected]>

> Prevent RejectedExecutionException in FederatingManager
> -------------------------------------------------------
>
>                 Key: GEODE-7400
>                 URL: https://issues.apache.org/jira/browse/GEODE-7400
>             Project: Geode
>          Issue Type: Bug
>            Reporter: Aaron Lindsey
>            Assignee: Aaron Lindsey
>            Priority: Major
>             Fix For: 1.11.0, 1.12.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> The fix for GEODE-7330 changed the {{FederatingManager}} class so that it 
> reuses the same {{ExecutorService}} between restarts. Now, if we start the 
> manager after previously starting and stopping it, we get 
> {{RejectedExecutionException}} because it tries to invoke a task on the same 
> {{ExecutorService}} which has been shut down.



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

Reply via email to