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

85 - Exception instead of actor stop on cluster failure? #96

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
language: scala

env:
- AKKA_TEST_TIMEFACTOR=2.0

scala:
- 2.12.2
- 2.11.11
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/eventstore/tcp/ConnectionActor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private[eventstore] class ConnectionActor(settings: Settings) extends Actor with
case PackIn(Failure(NotHandled(NotMaster(x))), _) => reconnect(x.tcpAddress, "NotMaster failure received")
case ClusterFailure(x) =>
log.error("Cluster failed with error: {}", x)
context stop self
throw new RetriesLimitReachedException(x.toString)
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/test/resources/reference.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
akka.test.timefactor = 1.0
akka.test.timefactor = ${?AKKA_TEST_TIMEFACTOR}