Commit graph

12466 commits

Author SHA1 Message Date
Viktor Klang
ac67edc103 #2726 - removing a potential race between initializing the ReliableProxySpec 2012-12-17 17:37:34 +01:00
Viktor Klang
f9f2f156e8 #2722 - Making AskableActorRef a value class (cannot be made an implicit value class and retain correct behavior) 2012-12-17 16:14:07 +01:00
Patrik Nordwall
ac30175b84 Remove check of heap max value, see #2793 2012-12-17 15:31:30 +01:00
Roland Kuhn
68f72459a3 Merge pull request #946 from akka/wip-2807-akka-kernel-detection-∂π
allow cross-versioned akka-kernel deps for dist task to work, see #2807
2012-12-17 02:29:10 -08:00
Björn Antonsson
f6d90efa98 Merge pull request #909 from akka/wip-2692-cluster-membership-events-ban
Change cluster MemberEvents to only be published on convergence. See #2692
2012-12-17 02:26:51 -08:00
Ryan LeCompte
88e51baf74 more documentation fixes 2012-12-16 20:03:17 -08:00
Roland
837662ddf7 allow cross-versioned akka-kernel deps for dist task to work, see #2807 2012-12-15 14:41:31 +01:00
Viktor Klang (√)
cb7330f738 Merge pull request #943 from akka/wip-2799-master-√
#2799 - forwardporting the fix to allow null reponses to TypedActor cal...
2012-12-15 00:56:42 -08:00
Viktor Klang
2fd422e3f4 #2799 - forwardporting the fix to allow null reponses to TypedActor calls 2012-12-14 23:50:23 +01:00
Viktor Klang (√)
13e571fdaf Merge pull request #945 from akka/wip-2674-√
#2673 + #2674 - Seq[Byte] becomes ByteString and Frame gets removed, lo...
2012-12-14 10:48:54 -08:00
Viktor Klang
24566c167c #2673 + #2674 - Seq[Byte] becomes ByteString and Frame gets removed, lots of cleanup in ZMQ API 2012-12-14 18:25:04 +01:00
Viktor Klang (√)
5b477e99e7 Merge pull request #939 from akka/wip-2776-√
#2776 - deprecating and introducing alternatives for methods and parame...
2012-12-14 09:16:35 -08:00
Sam Halliday
280e1aa21a java.util.logging backend for ActorLogging system, see #2805
[RK: assembled commit log from original branch, squashed]
akka-contrib:
- an event handler which properly sets the ThreadID on log records
- a LoggingAdapter which does synchronous logging to j.u.l.Logger
- a small logging mixin for the aforementioned adapter
2012-12-14 17:23:38 +01:00
Viktor Klang
d0717aaec6 #2776 - deprecating and introducing alternatives for methods and parameters ending with '_?' 2012-12-14 14:55:21 +01:00
Björn Antonsson
a03460329d Change cluster MemberEvents to only be published on convergence. See #2692
Conflicts:
	akka-cluster/src/main/scala/akka/cluster/ClusterEvent.scala
	akka-cluster/src/main/scala/akka/cluster/ClusterJmx.scala
	akka-cluster/src/main/scala/akka/cluster/ClusterMetricsCollector.scala
	akka-cluster/src/main/scala/akka/cluster/ClusterReadView.scala
	akka-cluster/src/multi-jvm/scala/akka/cluster/MultiNodeClusterSpec.scala
	akka-docs/rst/cluster/cluster-usage-java.rst
	akka-docs/rst/cluster/cluster-usage-scala.rst
	akka-kernel/src/main/dist/bin/akka-cluster
2012-12-14 12:46:13 +01:00
Patrik Nordwall
0c9ad2f791 Merge pull request #938 from akka/wip-2779-down-terminated-patriknw
Publish AddressTerminated after a node is Down, not when unreachable, see #2779
2012-12-14 01:38:25 -08:00
Patrik Nordwall
c325877c6a Merge pull request #936 from akka/wip-2306-min-nodes-startup-patriknw
min-nr-of-members and registerOnMemberUp, see #2306
2012-12-14 01:36:41 -08:00
Patrik Nordwall
44ab9f116f min-nr-of-members and registerOnMemberUp, see #2306
* Leader moves joining members to up when min-nr-of-members reached
* Tested by MinMembersBeforeUpSpec
* Used in factorial sample
* Docs
2012-12-12 14:00:06 +01:00
Patrik Nordwall
1cd3a05f41 Publish AddressTerminated after a member is Downed/Removed, see #2779
* Instead of when unreachable

* Note that ClusterRouterConfig is not changed, i.e. routees will be removed
  when unreachable
* Routers that are not wrapped by ClusterRouterConfig will watch as usual, i.e.
  remove routees when Terminated, i.e. node down
2012-12-12 12:55:22 +01:00
Roland Kuhn
761f1c6258 Merge pull request #929 from richdougherty/wip-2773-edit-migration-guide
Add intro to migration guide and do a minor edit. Fixes #2773
2012-12-10 05:09:52 -08:00
Raymond Roestenburg
5ad22c8e9c camel: ticket #2781
ProducerSupport.transformOutgoingMessage was called from wrong context.
2012-12-10 13:59:40 +01:00
Roland
fa3a5c97de make pinned dispatcher available in sbt console 2012-12-09 22:17:54 +01:00
Roland Kuhn
565bd6542e Merge pull request #785 from RickLatrine/wip-2605-java-pattern-ricklatrine
Wip 2605 java pattern ricklatrine
2012-12-09 07:56:49 -08:00
RickLatrine
7617085295 Merge branch 'master' into wip-2605-java-pattern-ricklatrine 2012-12-09 12:15:26 +01:00
RickLatrine
0dde5c484a Imports fixed. Corrected akka 2.1 releated changes. 2012-12-09 12:13:22 +01:00
Roland Kuhn
c58abbe0a9 Merge pull request #930 from akka/wip-2778-thread-id-∂π
#2778 - make thread names unique per system
2012-12-08 08:57:08 -08:00
RickLatrine
3f1bab2328 fixed imports 2012-12-08 15:13:58 +01:00
RickLatrine
c17b1eb263 Merge branch 'master' into wip-2605-java-pattern-ricklatrine
Conflicts:
	akka-docs/rst/java/howto.rst
2012-12-08 11:49:06 +01:00
RickLatrine
1d4d65d449 Moved example code, fixed indentation in SupervisedAsk 2012-12-08 11:27:07 +01:00
Roland Kuhn
d642fab666 Merge pull request #925 from richdougherty/wip-2766-timeractive-rename
Rename FSM and TestFSMRef's timerActive_? to isTimerActive. Fixes #2766
2012-12-07 01:55:25 -08:00
Roland
6450831e01 #2778 - make thread names unique per system
The MonitorableThreadFactory.copy method does not take into account the
counter:AtomicLong field, which then always starts out at zero for every
new dispatcher; the PinnedDispatcher creates one dispatcher per actor,
hence resulting in identical thread names if used by multiple actors.
Solution: add the counter to the case class’ arguments
2012-12-06 22:58:43 +01:00
Rich Dougherty
9a1e7d0519 Rename FSM and TestFSMRef's timerActive_? to isTimerActive. Fixes #2766 2012-12-06 17:28:49 +01:00
Patrik Nordwall
cd0fa5aee2 Merge pull request #927 from akka/wip-2018-cluster-jmx-tests-patriknw
Tests for the Cluster JMX API, see #2018
2012-12-06 07:48:31 -08:00
Rich Dougherty
40e30a4e8e Add intro to migration guide and do a minor edit. Fixes #2773 2012-12-06 15:43:17 +01:00
Patrik Nordwall
a51ba967d9 Merge pull request #924 from akka/wip-misc-docs-patriknw
Misc docs
2012-12-06 06:36:24 -08:00
Patrik Nordwall
1df787d0c5 Incorporate review comments and cleanup isAvailable, see #2018
* Renamed isRunning to isTerminated (with negation of course)
* Removed Running from JMX API, since the mbean is deregistered anyway
* Cleanup isAvailable, isUnavailbe
* Misc minor
2012-12-06 15:26:57 +01:00
Patrik Nordwall
a7b7ab040d Tests for the Cluster JMX API, see #2018
* MBeanSpec
* Added Members and Unreachable to JMX API
* Removed Convergence from JMX API, because it will
  not be exposed when ticket #2692 is merged
* Updated documentation and akka-cluster script
2012-12-06 10:59:09 +01:00
Rich Dougherty
872d4c531a Merge pull request #915 from richdougherty/wip-2689-fsm-stop-timers
Cancel all timers when FSM terminated. Fixes #2689
2012-12-05 05:36:49 -08:00
Patrik Nordwall
96bdcb45c2 Merge pull request #923 from akka/wip-2745-PriorityDispatcherSpec-patriknw
Don't use top level actor in PriorityDispatcherSpec, see #2745
2012-12-05 04:59:59 -08:00
Patrik Nordwall
7d3784293d Merge pull request #922 from akka/wip-2763-ResizerSpec-patriknw
Adjust backoffThreshold in ResizerSpec, see #2763
2012-12-05 04:58:44 -08:00
Patrik Nordwall
e54ceea623 Merge pull request #920 from akka/wip-2704-auto-load-cluster-extension-patrinw
Load Cluster extension from ClusterActorRefProvider, see #2704
2012-12-05 04:57:27 -08:00
Patrik Nordwall
e3fadd28b6 Merge pull request #919 from akka/wip-2752-leader-check-patriknw
Await leader in awaitUpConvergence, see #2752
2012-12-05 04:56:07 -08:00
Patrik Nordwall
dea3ea843f DOCS: corr then -> than, see #2757 2012-12-05 13:51:03 +01:00
Patrik Nordwall
3a2240085a DOCS: Correct ScalaVersion in microkernel Build sample, see #2758 2012-12-05 13:50:25 +01:00
Patrik Nordwall
208dff5166 DOCS: Remove reference to non-existing bundled sample, see #2753 2012-12-05 13:27:50 +01:00
Patrik Nordwall
6a26dda6f7 DOCS: tick-duration.tick-duration, see #2748 2012-12-05 12:58:48 +01:00
Patrik Nordwall
7695bb0697 Don't use top level actor in PriorityDispatcherSpec, see #2745
* The actor was a top level, i.e. RepointableActorRef. Messages  sent to
  self from constructor could be queued in UnstartedCell, and then sent
  to the real PriorityQueue later, processed immediately without the
  ordering taking place first.
2012-12-05 12:17:43 +01:00
Patrik Nordwall
d2ce939db4 Adjust backoffThreshold in ResizerSpec, see #2763
* When it failed the backoff calculation was often based on
  pressure=1 and capacity=4, 1/4=0.25 which is greater than
  the backoffThreshold=0.2, i.e no backoff was done.
* Changed backoffThreshold to 0.4.
* Avoid sleep inside the target actor when cool down
2012-12-05 09:32:10 +01:00
Patrik Nordwall
1673ccd51c Load Cluster extension from ClusterActorRefProvider, see #2704 2012-12-04 17:54:17 +01:00
Patrik Nordwall
503e992d44 Await leader in awaitUpConvergence, see #2752
It's a glitch in how ClusterReadView (used in tests) is updated.
First we do awaitUpConvergence, which checks readView.members and
readView.convergence. Then we do assertLeader, which checks
readView.leader. The problem is that readView.leader might not
have been updated yet (if there already was convergence).
Solution is to await the expected leader in awaitUpConvergence,
so that readView is in a consistent state after awaitUpConvergence.

We will change the semantics in ticket #2692, but this change will
be needed and should work with that as well.
2012-12-04 17:07:08 +01:00