vernemq / plumtree

Epidemic Broadcast Trees
Apache License 2.0
6 stars 8 forks source link

Handle AAE crash #25

Closed larshesel closed 4 years ago

larshesel commented 4 years ago

If the remote node shuts down during the AAE compare phase an unhandled exception (shutdown/timeouts/...) from a gen_server:call to the remote node can case the local node to go down.

This commit attempts to handle this in that we catch any exceptions thrown during the compare call in plumtree_metadata_hashtree and return an error to the caller instead of crashing.

This should fix vernemq/vernemq#1284