Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Exception instead of actor stop on cluster failure? #85

Open
reinierl opened this issue Mar 30, 2017 · 3 comments
Open

Exception instead of actor stop on cluster failure? #85

reinierl opened this issue Mar 30, 2017 · 3 comments

Comments

@reinierl
Copy link

In

case ClusterFailure(x) =>
log.error("Cluster failed with error: {}", x)
context stop self
}
, the ConnectionActor is stopped when it definitively fails to connect to a cluster after a configurable number of tries. This forces us to use DeathWatch to respond to this, and we're not entirely sure of why the actor died.

Is there a reason that the actor stops itself, rather than throwing a Throwable that could be handled by the Akka supervision system?

@t3hnar
Copy link
Contributor

t3hnar commented Mar 30, 2017

good question. On one hand client users should not bother with supervision, as basically client already doing a lot for this internally. On other hand it does not align with akka ideology.

But in case event store connection is a system critical component, it is better to throw an exception.
So let's improve part.

@michielboekhoff
Copy link
Contributor

Is this being picked up? Otherwise I could always take a peek - should be a quick fix.

@t3hnar
Copy link
Contributor

t3hnar commented Jun 19, 2017

please go ahead and fire a pull request :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants