Commit graph

12161 commits

Author SHA1 Message Date
Patrik Nordwall
af7ca554c9 Merge pull request #1112 from akka/wip-3017-singleton-bug-patriknw
Hardening of another corner case in cluster singleton, see #3017
2013-02-10 08:07:32 -08:00
drewhk
60d22802b4 Merge pull request #1069 from drewhk/wip-new-remoting-docs-drewhk
Updated documentation to reflect changes in remoting
2013-02-10 04:02:28 -08:00
Endre Sándor Varga
c4abbd95bd Updated documentation to reflect changes in remoting 2013-02-10 13:00:30 +01:00
Patrik Nordwall
d32a2edc51 Buffer LeaderChanged events and publish all on convergence, see #3017
* Otherwise some changes might never be published, since it doesn't have
  to be convergence on all nodes inbetween all transitions.
* Detected by a failure ClusterSingletonManagerSpec.
* Added a test to simulate the failure scenario.
2013-02-08 12:29:11 +01:00
Patrik Nordwall
4ee299c729 Hardening of another corner case in cluster singleton, see #3017
* It was an unlikely situatation that was not covered,
  the new leader didn't know previous, because it transitioned
  from Start -> BecomeLeader, old leader was removed and got
  LeaderChanged(None), so none of them could request the other
  for hand-over or take-over.
* Taken care of with the retry timeouts, also when leader
  receives LeaderChanged(None)
* The old leader should have received a propert LeaderChanged
  earlier, which is a flaw in the way we publish leader events.
  That part will be fixed in a separate commit.
2013-02-08 08:04:23 +01:00
Patrik Nordwall
a31d98340f Merge pull request #1109 from akka/wip-2997-getHostName-patriknw
Use getHostAddress instead of getHostName, see #2997
2013-02-07 01:51:32 -08:00
Björn Antonsson
9f781776c5 Merge pull request #1104 from akka/wip-3005-LARS-shutdown-failure-ban
Do not interrupt LARS at shutdown or tasks might fail. See #3005
2013-02-07 01:15:23 -08:00
Roland
4861ae4269 some small fixes to typed-channels.rst 2013-02-06 18:07:21 -05:00
Roland Kuhn
8a259897f8 Merge pull request #1108 from akka/wip-channel-transform-∂π
Wip channel transform ∂π
2013-02-06 05:43:04 -08:00
Patrik Nordwall
a651875020 Use configured hostname instead of getHostName, see #2997
* getHostName may trigger reverse name lookup
* use the configured hostname in all places
2013-02-06 14:11:15 +01:00
Björn Antonsson
01b8f68be4 Shutting down the LARS test driver too early might fail one of the tests. See #3005 2013-02-05 16:28:30 +01:00
Patrik Nordwall
c7ed66d3d8 Merge pull request #1105 from akka/wip-3009-deadLetters-sender-patriknw
Preserve sender when sending to deadLetters, see #3009
2013-02-05 02:35:13 -08:00
Patrik Nordwall
985307666e Merge pull request #1106 from akka/wip-2863-zeromq-pinned-patriknw
zeromq socket pinned to the thread that created it, see #2863
2013-02-05 02:30:58 -08:00
Patrik Nordwall
f4f7db13fc Merge pull request #1102 from akka/wip-2979-loggers-patriknw
Rename event-handlers to loggers, see #2979
2013-02-05 02:20:49 -08:00
Patrik Nordwall
2476831705 Rename event-handlers to loggers, see #2979
* Rename config akka.event-handlers to akka.loggers
* Rename config akka.event-handler-startup-timeout to
  akka.logger-startup-timeout
* Rename JulEventHandler to JavaLogger
* Rename Slf4jEventHandler to Slf4jLogger
* Change all places in tests and docs
* Deprecation, old still works, but with warnings
* Migration guide
* Test for the deprecated event-handler config
2013-02-05 11:19:02 +01:00
Roland
9b0c3a486f avoid wrapping messages when ask returns single type 2013-02-04 11:02:58 -05:00
Patrik Nordwall
63f0021ed0 zeromq socket pinned to the thread that created it, see #2863 2013-02-04 12:54:17 +01:00
Patrik Nordwall
939893ef5f Preserve sender when sending to deadLetters, see #3009 2013-02-04 12:41:58 +01:00
Björn Antonsson
c6f08fb935 Do not try to generate ScalaDoc diagrams for akka-channels-tests since it will contain none. See #3010 2013-02-04 10:42:32 +01:00
Björn Antonsson
fb69f33dd1 Do not interrupt LARS at shutdown or tasks might fail. See #3005 2013-02-04 09:39:45 +01:00
Roland
859589b9d4 DSL element for future transformations in send pipeline 2013-02-03 22:32:23 +01:00
Roland
a9cb1f9c19 remove test apidocs from unidoc 2013-02-01 21:22:59 +01:00
Roland Kuhn
125f215eaa Merge pull request #1089 from Crossing-Tech/corrections
correction of akka-osgi imports (missing imports)
2013-02-01 07:58:30 -08:00
Roland Kuhn
e06076553c Merge pull request #1097 from akka/wip-channels-∂π
add Typed Channels, see #2929
2013-02-01 06:37:41 -08:00
Roland
b127ab0d4f final review comments
- make it EXPERIMENTAL
- shuffle docs around to be less scary
- reuse sameThreadExecutionContext in CircuitBreaker
- typos
2013-02-01 15:32:56 +01:00
Björn Antonsson
6440e385f1 Merge pull request #1079 from akka/wip-2954-transport-startup-timeout-patriknw
Increase remoting startup/shutdown timeouts, see #2954
2013-02-01 04:48:00 -08:00
Björn Antonsson
f370942c00 Merge pull request #1093 from akka/wip-2880-use-new-scaladoc-features-ban
Adding implicits and diagrams to scaladoc. See #2880
2013-02-01 02:56:08 -08:00
Björn Antonsson
c94ef5c66e Adding implicits and diagrams to scaladoc. See #2880 2013-02-01 11:55:08 +01:00
Roland Kuhn
1c11abd230 Merge pull request #1101 from akka/wip-2950-LARS-race-∂π
fix two bugs in LARS, see #2950
2013-02-01 02:19:53 -08:00
Patrik Nordwall
abc9471919 Merge pull request #1086 from akka/wip-2690-remote-fd-patriknw
Failure detector refactoring, see #2690
2013-02-01 02:04:53 -08:00
Patrik Nordwall
157a25bcde Failure detector refactoring, see #2690
* Failure detector was previously copied with refactoring to
  akka-remote and this refactoring makes use of that and removes
  the failure detector in akka-cluster
* Adjustments to reference.conf
* Refactoring of FailureDetectorPuppet
2013-02-01 10:08:39 +01:00
Roland Kuhn
6198480c34 Merge pull request #1091 from jamie-allen/wip-2984-sbt-documentation
Added libraryDependencies info for sbt users below 0.12.x
2013-01-31 22:49:24 -08:00
Roland Kuhn
7020b41fce Merge pull request #1099 from akka/wip-2978-non-direct-∂π
remove old “direct” router references, see #2978
2013-01-31 22:47:37 -08:00
Roland
2008bab2ba fix two bugs in LARS, see #2950
- initial setting of the repeated task raced with first execution, when
  the latter won the task would not repeat
- there was a race in task submission which could lead to enqueueing one
  round too late
2013-02-01 07:33:51 +01:00
Jamie Allen
ad9365e7fc Added libraryDependencies info for sbt users below 0.12.x
Removed crossString
2013-01-31 12:57:33 -08:00
Roland
1b331dc547 Merge branch 'master' into wip-channels-∂π 2013-01-31 20:26:01 +01:00
Roland
86ded1fb0b review comments
- some API docs
- require names for top-level actors
- allow names for children
- flag error when no channels declared
2013-01-31 20:19:20 +01:00
Roland
ddbde50a14 remove old “direct” router references, see #2978 2013-01-31 16:22:08 +01:00
Viktor Klang (√)
5164e2e08e Merge pull request #1096 from akka/wip-2986-ActorContext-executor-√
#2986 - Changing ActorContext and ActorRefFactory's dispatcher to retur...
2013-01-31 06:42:12 -08:00
Viktor Klang
e519e3dc3b #2986 - Changing ActorContext and ActorRefFactory's dispatcher to return ExecutionContext 2013-01-31 15:41:31 +01:00
Patrik Nordwall
bc9cc3c66e Merge pull request #1076 from akka/wip-2909-rm-workaround-patriknw
Remove work-around for sending to broken connections, see #2909
2013-01-31 05:20:23 -08:00
Patrik Nordwall
9dc124dacd Remove work-around for sending to broken connections, see #2909
* Previous work-around was introduced because Netty blocks when sending
to broken connections. This is supposed to be solved by the non-blocking
new remoting.
* Removed HeartbeatSender and CoreSender in cluster
* Added tests to verify that broken connections don't disturb live connection
2013-01-31 13:41:02 +01:00
Patrik Nordwall
89b31c995c Merge pull request #1090 from akka/wip-2870-rm-catch-tell-patriknw
Remove try ... catch constructs around invokations of tell, see #2870
2013-01-31 04:39:41 -08:00
Patrik Nordwall
f8095587ad Merge pull request #1094 from akka/wip-2983-failing-remote-deployment-patriknw
Failing remote deployment, see #2983
2013-01-31 04:38:08 -08:00
Patrik Nordwall
938cf7126b Send ChildTerminated before Terminated when AddressTerminated, see #2983
* Replaces the previous half-baked removeChildWhenToAddressTerminated
2013-01-31 13:36:46 +01:00
Roland
c362e8168f update copyright headers 2013-01-31 11:42:39 +01:00
Roland
7ef5ace8d8 add docs on how to create child actors with channels 2013-01-31 11:40:39 +01:00
Patrik Nordwall
85cfa78e92 Generate ChildTerminated from all Terminated in RemoteDeploymentWatcher, see #2983
* The problem is that we do remote deployment to a node that isn't alive and with ordinary
  remoting that is not detected at all, as we know. With cluster this was taken care of by
  a later AddressTerminated and ChildTerminated generated by RemoteDeploymentWatcher. With
  the new RemoteDeadLetters the additional watch triggers an immediate Terminate which is
  captured by RemoteDeploymentWatcher but not acted upon since it's not an addressTerminated.
  RemoteDeploymentWatcher unwatch and will therefor not act on later AddressTerminated.
* The long term solution is to have reliable system messages and remote supervision without
  explicit watch, so that we know that the remote deployment fails.
* This short term solution is to let RemoteDeploymentWatcher always generate ChildTerminated,
  also for non-addressTerminated.
* It's possibly racy since ChildTerminated is not idempotent.
2013-01-31 11:28:23 +01:00
Patrik Nordwall
f89dd49954 Share same instance of deadLetters between LARP and RARP, see #2983 2013-01-31 11:28:08 +01:00
Roland
f86fa61613 make all arrows invertible 2013-01-31 11:12:17 +01:00