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

Anthony Baker commented on GEODE-402:
-------------------------------------

LocalRegion.dispatchEvent shows the pattern to follow:

{code}
        catch (CancelException e) {
        ...
        }
        catch (VirtualMachineError err) {
          SystemFailure.initiateFailure(err);
          // If this ever returns, rethrow the error.  We're poisoned
          // now, so don't let this thread continue.
          throw err;
        }
        catch (Throwable t) {
          SystemFailure.checkFailure();
          region.getCache().getLoggerI18n().error(
              LocalizedStrings.LocalRegion_EXCEPTION_OCCURRED_IN_CACHELISTENER, 
t);
        }
{code}


> MembershipListener callbacks are not always invoked
> ---------------------------------------------------
>
>                 Key: GEODE-402
>                 URL: https://issues.apache.org/jira/browse/GEODE-402
>             Project: Geode
>          Issue Type: Bug
>          Components: core
>            Reporter: Barry Oglesby
>            Assignee: Barry Oglesby
>
> The {{DistributionManager handle*Event}} methods only catch 
> {{CancelException}}. All other exceptions are thrown to the caller 
> ({{DistributionManager handleMemberEvent}}) which means any remaining 
> callbacks are not invoked.
> The {{handle*Event}} methods include:
> * handleJoinEvent
> * handleCrashEvent
> * handleDepartEvent
> * handleSuspectEvent
> * handleQuorumLostEvent



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to