Commit graph

20053 commits

Author SHA1 Message Date
drewhk
06681ae8b3 Merge pull request #21372 from drewhk/wip-21203-cached-actorref-lookup-drewhk
#21203: Cache/memoize ActorRef resolution
2016-09-08 12:54:24 +02:00
Roland Kuhn
1b9186ba9d Merge pull request #21128 from akka/wip-new-Typed-Impl-RK
New implementation for Akka Typed
2016-09-08 12:19:36 +02:00
Michał Płachta
b3bba1229f Make map stage final and refactor OneBoundedSetup to take a decider. (#21374)
* Remove new from Map constructions
2016-09-08 11:47:17 +02:00
Endre Sándor Varga
11fceb4121 21203: Cache/memoize ActorRef resolution 2016-09-08 11:41:06 +02:00
Roland Kuhn
320271cc31 new implementation for Akka Typed #21131
This is the first step towards a completely new and optimized actor
implementation for Akka Typed. The full previously existing test suite
passes for both implementations. The following is an incomplete list of
things that remain to be done:

* document the semantic differences between untyped and typed, in
  particular around actor restarts and the delivery ordering guarantees
  for Terminated messages (also document the difference between
  ActorSystemImpl and ActorSystemAdapter)
* implement EventStream and logging—this currently just delegates to an
  extra untyped ActorSystem (of course To Be Fixed)
* implement dispatcher selection
* implement and test queue size limitation
* implement optimized message queue instead of CLQ (for zero-allocation
  messaging)
* clean up test log output (something does not work with TestEventListener
  and EventFilter for ActorSystemImpl tests)
* document the capabilities (or more appropriately: the limitations) of
  interoperability between ActorSystemImpl and ActorSystemAdapter
* fix ActorPath UID generation (i.e. make sure that everything gets a
  meaningful value instead of zero)
* re-evaluate throughput/rescheduling logic in ActorCell

Oh, and by the way: as per PerformanceSpec (doing simple ping-pong) the
new implementation is ca. 30% faster than the adapter over akka-actor
:-)
2016-09-08 10:10:35 +02:00
Johannes Rudolph
fc3761bc4b Merge pull request #21384 from jrudolph/wip-21281-fix-authorization-param-rendering
=htc #21281 render empty params double quoted in headers like `Authorization`
2016-09-07 19:20:57 +02:00
gosubpl
7bcf0285a1 =htc #20793 make Marshaller.fromStatusCode emit empty entity for StatusCode with allowEntity=false 2016-09-07 19:12:42 +02:00
Johan Andrén
90193907fe Make cluster tests run with artery #21204 2016-09-07 16:41:03 +02:00
Patrik Nordwall
6191f39565 Merge pull request #21382 from akka/wip-aeron-exceptions-patriknw
handle fatal Aeron exceptions, #20561
2016-09-07 13:08:59 +02:00
Patrik Nordwall
f4b82ce62b handle fatal Aeron exceptions, #20561
* handle ConductorServiceTimeoutException and
  DriverTimeoutException
* shutdown things properly, in the right order, and
  without overwhelming the logs with exceptions
2016-09-07 12:15:35 +02:00
Patrik Nordwall
85be571af7 Merge pull request #21376 from akka/wip-21347-restart-patriknw
fix glitch in lazy restart, #21347
2016-09-07 11:15:51 +02:00
Patrik Nordwall
f1e4e7a657 Merge pull request #21383 from akka/wip-21381-killSwitch-patriknw
add missing killSwitch for parallel outbound lanes, #21381
2016-09-07 11:15:01 +02:00
Patrik Nordwall
72cf185686 Merge pull request #21390 from akka/wip-21388-shutdown-killSwitch-patriknw
abort streams on shutdown, #21388
2016-09-07 11:14:20 +02:00
Patrik Nordwall
b8b57df5e9 Merge pull request #21367 from akka/wip-21331-SystemMessageDeliverySpec-patriknw
fix failing SystemMessageDeliverySpec, #21331
2016-09-07 10:44:59 +02:00
Patrik Nordwall
9fd359042a add missing killSwitch for parallel outbound lanes, #21381
* it caused the shutdown to stall, since the part after MergeHub
  was never stopped
* tear down parts upstream and downstream of the hub toghether
2016-09-07 09:10:30 +02:00
Patrik Nordwall
edf1c83839 abort streams on shutdown, #21388
* otherwise AeronSink will continue sending outstanding messages
  before completing
* this was noticed by RemoteDeathWatchSpec couldn't shutdown,
  since it was trying to send to unknown
2016-09-07 08:27:33 +02:00
Johannes Rudolph
06a91f1d82
=htc #21281 render empty params double quoted in headers like Authorization 2016-09-06 20:10:39 +02:00
Patrik Nordwall
294947a9a2 fix glitch in lazy restart, #21347 2016-09-06 15:57:12 +02:00
Patrik Nordwall
f5f37fbc39 Merge pull request #21379 from richard-imaoka/wip-21060-doc-persistid-unique-richard-imaoka
Add a comment on persistenceId uniqueness
2016-09-06 12:32:57 +02:00
Bernard Leach
1c8c2595d2 =htc #19643, #20570, #21235 Refactor PoolSlot to GraphStage to address race conditions
This fixes various bugs that arose because of manual implementation of ActorPublisher and ActorSubscriber.

Fixes #19643, #20570, and #21235.
2016-09-06 11:54:43 +02:00
Johan Andrén
9287a28702 Artery transport shutdown improvements (#21357)
* Make sure streams have stopped before shutting down aeron etc
* Log completion failures rather than failing shutdown
2016-09-06 11:50:10 +02:00
Richard S. Imaoka
e35c8b0d31 Comment on persistenceId uniqueness (#21060) 2016-09-06 14:20:48 +09:00
Patrik Nordwall
95328b2882 Merge pull request #21342 from akka/wip-compression-versions-patriknw
harden receive of messages using wrong compression table
2016-09-05 14:22:39 +02:00
Patrik Nordwall
e92088119e Merge pull request #21356 from akka/wip-21347-lazy-restart-patriknw
make restart materialization of outbound streams lazy, #21347
2016-09-05 14:22:11 +02:00
Patrik Nordwall
b59f03fa34 fix failing SystemMessageDeliverySpec, #21331 2016-09-05 14:04:01 +02:00
Patrik Nordwall
32e852596f harden receive of messages using wrong compression table 2016-09-05 13:29:08 +02:00
Patrik Nordwall
9d89810674 make restart materialization of outbound streams lazy, #21347
* Materialize on first message instead, otherwise handshake attempts
  to non-existing nodes will continue forever

* also fix HandshakeFailureSpec
2016-09-05 13:27:18 +02:00
Patrik Nordwall
c504258356 Merge pull request #21328 from akka/wip-21207-parallel-lanes-patriknw
support for parallel lanes, #21207
2016-09-05 13:15:44 +02:00
Patrik Nordwall
432086b3f4 improve deadLetters and logging when send queue overflow (#21355) 2016-09-05 12:42:46 +02:00
Patrik Nordwall
faf941b4c8 support for parallel lanes, #21207
* for parallel serialziation/deserialization
* MergeHub for the outbound lanes
* BroadcastHub + filter for the inbound lanes, until we
  have a PartitionHub
* simplify materialization of test stage
* add RemoteSendConsistencyWithThreeLanesSpec
2016-09-05 12:42:33 +02:00
kenji yoshida
95d13d4771 =act fix typo in ByteString#take error message (#21366) 2016-09-05 11:05:34 +02:00
Johan Andrén
3d3a3528bf Eliminated JVM crashing race on transport stop (#21337)
* Eliminated JVM crashing race on transport stop

* Fail explicitly if started more than once
2016-09-02 15:40:38 +01:00
Hawstein
b9a05aff96 add java api for websocket testkit #21184
And additionally adds unit test for WebSocketDirectives #20466
2016-09-02 13:28:49 +02:00
Hawstein
df4a6270e6 exponential backoff in circuit breaker #21036 2016-09-02 13:24:17 +02:00
Patrik Nordwall
0b8d3c1f00 Merge pull request #21350 from akka/wip-docs-rp2-patriknw
Update links to Lightbend RPv2, more warnings about auto-down
2016-09-02 13:17:09 +02:00
Patrik Nordwall
41f3d6b147 Merge pull request #21351 from akka/wip-21343-exc-toBinary-patriknw
treat serialization (toBinary) exception of remote message as transient error, #21343
2016-09-02 13:15:15 +02:00
Patrik Nordwall
fa084fc5ce treat serialization (toBinary) exception of remote message as transient error, #21343 2016-09-02 11:05:00 +02:00
Patrik Nordwall
0a75f992e4 Update links to Lightbend RPv2, more warnings about auto-down 2016-09-02 10:26:47 +02:00
Konrad Malawski
888ffa5f06 +art enable compression for manifests (#21211) (#21333) 2016-09-02 08:52:09 +01:00
Patrik Nordwall
ee116dcdab Merge pull request #21201 from jypma/testkit_parent
#21198 Allow TestActor/TestKit/TestProbe to create child actors
2016-09-01 15:33:28 +02:00
Jan Ypma
09f2d83e69 +tes #21198 Allow TestActor/TestKit/TestProbe to create child actors
This is useful in at least two scenarios:
- Unit testing actors that communicate to their parent directly
- Testing re-creating (typically persistent) actors with the same name
2016-09-01 11:38:07 +02:00
Martynas Mickevičius
292face28a #20587 Clean artery configuration (#21279)
* Move artery settings from remoting settings to dedicated class.
* #20587 Move hardcoded settings to configuration file.
* Copy reused settings from remote to the artery
2016-09-01 08:07:39 +02:00
drewhk
4821fb158e #20904: Increase timeouts in TestKitDoc tests, use Sink.seq (#21260) 2016-08-31 17:20:05 +01:00
Konrad Malawski
42a25609c1 Merge pull request #21329 from akka/wip-docs
=doc fix getStageActor docs typo (remove "not")
2016-08-31 13:01:00 +01:00
Konrad Malawski
8e35c03f51 =doc fix getStageActor docs typo (remove "not")
As follow up to https://github.com/akka/akka/pull/21323
due to CLA not signed, and released into public domain.
2016-08-31 12:05:12 +01:00
Patrik Nordwall
b2eaa854e8 Merge pull request #21327 from akka/wip-update-aeron
=pro update aeron to 1.0.1
2016-08-31 12:40:26 +02:00
Konrad Malawski
ed05a77f9c =pro update aeron to 1.0.1
Changes are https://github.com/real-logic/Aeron/releases/tag/1.0.1 :

> * Adjust incremental cleaning to avoid overwrite of cleaned log in loss scenarios to address Issue #271.
> * Correctly initialise cleaning position for late joining a stream. Issue #268.
> * Make clientLivenessTimeout configurable from Context.
> * Shadow samples into aeron-all JAR.
> * Support creating Agent threads via ThreadFactory to enable pinning.
> * Update to Agrona 0.5.4.
> * Update to ByteBuddy 1.4.20.
2016-08-31 10:09:07 +01:00
Konrad Malawski
b1d07498e2 =htp fix for infinite timeout disabling timeout infrastructure (#20817) (#21295)
* fix for infinite timeout disabling timeout infrastructure (#20817)

* filtering out timeout-access header in tests where necessary (#20817)

* filtering out timeout-access header in additional tests (#20817)

* added DummyCancellable object to avoid allocation (#20817)

* added test showing that timeout is correctly reset for both infinite as well as finite initial request-timeout (#20817)
2016-08-31 09:49:41 +01:00
Patrik Nordwall
3c4508d9b5 Merge pull request #21325 from akka/wip-sync-artery-dev-patriknw
sync artery with latest master (2.4.9++)
2016-08-31 10:06:19 +02:00
Patrik Nordwall
90cce8579a Merge branch 'master' into wip-sync-artery-dev-patriknw 2016-08-31 08:59:49 +02:00