Commit graph

1805 commits

Author SHA1 Message Date
Konrad Malawski
978200f09c Merge pull request #16361 from smlin/more-informative-timeout-exception
=act #16361 Added more information to AskTimeoutException
2014-11-27 14:22:28 +01:00
Ostapenko Evgeniy
dee5ad3deb =act #16361 Added more information to AskTimeoutException 2014-11-27 11:54:02 +03:00
kustosz
a0e7c89d80 =act #13894 cancel StateTimeout when FSM actor is stopped 2014-11-26 13:49:48 +01:00
Konrad 'ktoso' Malawski
8ed68ebf3e =act #16344 ActorPath validation now without regex, safer and faster 2014-11-23 22:41:28 +01:00
Konrad Malawski
7a6dab2319 Merge pull request #16254 from tomekl007/16245-issue
#16245 receive builder could match generic messages, problem with scala ...
2014-11-21 15:31:56 +01:00
tomekl007
7cd4a68cee +act #16245 receive builder works with generic messages
UnitPFBuilder use CaseStatements as previously, because apply is cast to exact type ( not ? extends T )
PFBuilder.match working with generic messages
2014-11-19 15:34:14 +01:00
Martin Eigenbrodt
69387bbc45 !act #16125 Timeout Calls through CircuitBreaker.
CircuitBreaker used to wait idenfinitly for a call and only compare
duration after the facts.
It will now increment its failure count early and throw a TimeoutException or return a Failure[TimeoutException].
2014-11-18 05:36:53 +01:00
Patrik Nordwall
96fb339081 +act #15956 Allow _ in ActorSystem name
(cherry picked from commit 7ef1334192de6f2c0cffbb81be620cdd56110ad5)
2014-11-11 09:50:19 +01:00
Endre Sándor Varga
3a2f4e14d4 =tcp #15766: Workaround for Windows to detect TCP abort
(cherry picked from commit 9340215)
2014-11-10 15:35:08 +01:00
Viktor Klang
439be7d99a =act #16152 - Elides the need to allocate an AkkaForkJoinTask for Mailbox-submission to registerForExecution,
by having Mailbox extend ForkJoinTask and using the fact that ForkJoinTask.exec when returning
false does not set completion on the task, so it is free to be resubmitted to the ForkJoinPool
without reinitialization.

Also adds the ability to use fork() when the currentThread is a worker thread of the pool that we want to execute on.

Adds a JMH benchmark for both the ping-pong performance and pipelined throughput.

Conflicts:
	project/AkkaBuild.scala
2014-10-29 15:04:48 +01:00
Björn Antonsson
64ead35a83 Merge pull request #15812 from akka/wip-15033-tcp-connection-shutdown-master-ban
(Validation Only) =act #15033 Added test to verify tcp connection actor termination
2014-09-08 07:13:33 +02:00
Björn Antonsson
1044195a2a =act Make SerializationCompatibilitySpec pass on Scala 2.11.x
* The serailization format of Option has changed between Scala 2.10.x and 2.11.x
2014-09-05 14:17:52 +02:00
Björn Antonsson
190abe8126 =act #15033 Added test to verify tcp connection actor termination 2014-09-05 12:12:07 +02:00
Konrad Malawski
bb0955d635 Merge pull request #15782 from ktoso/wip-props-with-nulls-ktoso
=act,rem #13946 fix handling of null parameters in Props
2014-09-01 16:50:03 +02:00
Konrad 'ktoso' Malawski
f13d4975cc =act,rem #13946 fix handling of null parameters in Props
+ Props creation with nulls does not fail any longer
+ null values are now serialised properly and can be used in remote
  deployments too
+ added tests for Reflect.findConstructor
> does not change wire protocol, so that's open for discussion (if we
> want it to be more like SerialisedMessage or not)

Resolves #13946
2014-09-01 13:33:16 +02:00
Patrik Nordwall
33706eb725 Merge pull request #15781 from akka/wip-15027-FSMTimingSpec-patriknw
=act #15027 Harden FSMTimingSpec
2014-09-01 10:25:44 +02:00
Patrik Nordwall
27cb1d21cd =act #15027 Harden FSMTimingSpec 2014-08-29 14:44:34 +02:00
Patrik Nordwall
1ffd05db49 =act #13981 Encode name of Balancing dispatcher config path 2014-08-29 12:33:18 +02:00
Viktor Klang
b8c634451f +act - 15757 - Changes the signature of ActorSystem.terminate() and ActorSystem.whenTerminated() to be of Future[Terminated] iso Future[Unit] 2014-08-26 10:57:47 +02:00
Viktor Klang
cd8e97c060 +act - 15757 - Reworks implementation of ActorSystem shutdown
* deprecates awaitTermination, shutdown and isTerminated
  * introduces a terminate-method that returns a Future[Unit]
  * introduces a whenTerminated-method that returns a Future[Unit]
  * simplifies the implementation by removing blocking constructs
  * adds tests for terminate() and whenTerminated
2014-08-25 15:49:28 +02:00
Roland Kuhn
296f5a7cab Merge pull request #15503 from akka/wip-15501-add-bounded-nonblocking-mpmc-mailbox-√
+act - #15501 - Adding support for a Non-blocking, bounded, MPMC mailbox...
2014-08-20 16:05:57 +02:00
Patrik Nordwall
7659f333cb Merge pull request #15658 from akka/wip-coroner-adjustment-patriknw
=tes Increase coroner timeout for some tests
2014-08-20 07:44:20 +02:00
Martynas Mickevičius
200d6eb0d3 Merge pull request #15627 from 2m/udp-proto-family
!act #15626 expose DatagramChannel creation in SocketOption
2014-08-19 15:25:51 +03:00
Martynas Mickevicius
325e05ee27 !act #15626 expose DatagramChannel creation in DatagramChannelCreator
* move channel creation logic to a separate trait
* new Java API: AbstractSocketOption
2014-08-19 14:02:23 +03:00
Patrik Nordwall
a3e5d6b584 =tes Increase coroner timeout for some tests 2014-08-13 14:21:00 +02:00
Patrik Nordwall
813543e8f8 +act,slf #11715 Add configurable LoggingFilter
* The filter is used by the LoggingAdapter before publishing
  to the event bus
* Slf4jLoggingFilter uses backend log level configuration
  (e.g. logback.xml)
2014-08-11 20:08:44 +02:00
Viktor Klang
945fde4294 +act - #15501 - Adding support for a Non-blocking, bounded, MPMC mailbox called 'NonBlockingBoundedMailbox' 2014-08-08 14:20:39 +02:00
Martynas Mickevičius
9f1a4f8645 Merge pull request #15417 from hajile/master
+act #15502: Pluggable DNS resolution in akka-io
2014-08-02 20:20:05 +03:00
Krzysztof Janosz
1658f96862 +act #13004 Adding TailChopping router 2014-07-29 20:27:03 +02:00
Ilya Epifanov
5954302658 +act #15502: Pluggable DNS resolution in akka-io 2014-07-29 00:12:58 +04:00
drewhk
b88c964bd4 Merge pull request #15573 from spray/w/fix-TCP-pull-mode
=act #15572 don't read recursively in pullMode when a complete buffer was read
2014-07-28 10:19:19 +02:00
Johannes Rudolph
1e0b61a160 =act #15572 don't read recursively in pullMode when a complete buffer was read 2014-07-24 11:02:08 +02:00
Michael R. Maletich
a6d3704ef6 !act #13490 Changed the callback to SocketOption to accept a channel instead of a Socket, this allows for using the nio features.
For example in Java 7 you can now join a multicast group:

case class JoinGroup(group: InetAddress, networkInterface: NetworkInterface) extends SocketOption {

  override def afterConnect(c: DatagramChannel): Unit = {
    c.join(group, networkInterface)
  }
}

  IO(Udp) ! Udp.Bind(self, new InetSocketAddress(MulticastListener.port),
    options=List(ReuseAddress(true),
      JoinGroup(MulticastListener.group, MulticastListener.interf)))

Other minor changes:

 - changed all methods in SocketOption to take a Channel instead of a Socket.  The socket can be gotten from the Channel but not the reverse.
 - all methods that are called before the bind are now called beforeBind for consistency.
 - All network connections now call the beforeBind and afterConnect.
2014-07-22 20:22:53 -05:00
Łukasz Dubiel
2c88bb1169
=act #13970 Send transistion on goto(CurrentState) in FSM
When in `A`:
* `goto(A)` will trigger `onTransition(A -> A)`
* `stay()` will NOT trigger `onTransition`

Includes:
* migration guide
* docs updates
* test
2014-07-18 17:36:55 +02:00
Konrad 'ktoso' Malawski
ba2411833a +doc #15537 add Typed router pattern
Conflicts:
	akka-docs/rst/scala/code/docs/persistence/PersistenceDocSpec.scala
2014-07-15 10:22:23 +02:00
Patrik Nordwall
018e0c33b5 Merge pull request #15465 from akka/wip-15284-throws-annotation-master-patriknw
+act #15284 Add throws TimeoutException to Inbox.receive
2014-06-27 14:56:23 +02:00
Patrik Nordwall
a60f828819 Merge pull request #15464 from akka/wip-13965-15361-master-patriknw
#13965 #15361 cherry picks to master (for validation)
2014-06-27 14:27:53 +02:00
Patrik Nordwall
c11de95dd7 Merge pull request #15414 from akka/wip-13942-LoggingReceive-optimization-patriknw
=act #13942 Avoid allocations in LoggingReceived when disabled
2014-06-27 12:37:38 +02:00
Patrik Nordwall
3a94510869 +act #15284 Add throws TimeoutException to Inbox.receive
(cherry picked from commit ab19cc8a527f1a01a8180c2b199affcb47e5b1d2)
2014-06-27 12:29:11 +02:00
Patrik Nordwall
7616a41733 =act #15361 Require non-abstract actor class (earlier)
* It was detected previously as well when trying to find constructor,
  but with a perhaps confusing error message

(cherry picked from commit 15e964b13e91962474c7907787c37121aae8fd4e)
2014-06-27 12:21:53 +02:00
Johannes Rudolph
657afbd859 +act #15383 add strict japi.Option.getOrElse to simplify working with options from Java 2014-06-24 13:29:16 +02:00
Konrad Malawski
c8406e3466 Merge pull request #15416 from mkubala/missing-sender-parens-mkubala
=act,clu,con,doc,per,rem,sam #15114 append missing parens at sender invocations
2014-06-24 11:37:43 +02:00
Patrik Nordwall
0fd9198f5d +act #13992 Improve identify replies of wildcard selections
(cherry picked from commit 4747b18d66fafb5699168288b09b7f39da5c2e4e)

Conflicts:
	akka-actor/src/main/scala/akka/actor/ActorSelection.scala
	project/AkkaBuild.scala
2014-06-23 12:19:03 +02:00
Patrik Nordwall
f6e25fe773 =act #13942 Avoid allocations in LoggingReceived when disabled 2014-06-23 11:44:10 +02:00
Marcin Kubala
f4793a399f =act,clu,con,doc,per,rem,sam #15114 append missing parens at Actor.sender() invocations 2014-06-20 23:05:51 +02:00
Patrik Nordwall
ca4dda10ea =act #13678 #15149 Reply with ActorIdentity(None) from deadLetters
(cherry picked from commit b2f96668baf9efa77de5f97223f055c0a78d0cb8)
2014-06-05 08:28:40 +02:00
Konrad 'ktoso' Malawski
14479536ad =act #15217 the watching message is generated always,
so the test should await on both, before it expects the
unsubscribing message, otherwise it's racy.

Resolves #15217
2014-05-19 12:01:03 +02:00
Konrad 'ktoso' Malawski
26936e999f =act #15165 should fix out-of-bounds in actor creation
Other than that, also improved failure logging when AIOOB happens in the histogram
Added a test which shows why the updateWithExpectedInterval method
should be preferred too.
2014-05-14 16:33:41 +02:00
Martynas Mickevicius
fdcd964165 =pro #15031 separate sbt build file for every module 2014-05-14 10:05:09 +02:00
Roland Kuhn
7900586b69 =act add one more test to routing.BalancingSpec
see #13964
2014-05-12 11:05:53 +02:00