Commit graph

21419 commits

Author SHA1 Message Date
Patrik Nordwall
a10b00ed02 harden RestartSpec, less timing sensitive, #23593 (#23731) 2017-09-26 21:46:52 +09:00
Johan Andrén
af5f84ddac mockito version supporting jdk9 #23402 2017-09-26 08:51:53 +02:00
Christopher Batey
4a2b6b23e5 Remove structural type that relies on runtime type in sun.nio #23400, #23403 2017-09-26 08:43:52 +02:00
Patrik Nordwall
776191c31d Merge pull request #23595 from akka/wip-23585-multi-dc-restart-patriknw
Verify removal and add of new node incarnation in multi-dc, #23585
2017-09-25 17:58:48 +02:00
Patrik Nordwall
6085f78b72 Merge pull request #23617 from akka/wip-22156-lost-refuseUid-patriknw
Keep the refuseUid in a better way, #22156
2017-09-25 17:57:58 +02:00
Patrik Nordwall
5fc6d5a04a Verify removal and add of new node incarnation in multi-dc, #23585
* MemberRemoved must be published before MemberUp, e.g. when restarted
  in other DC
* remove from failureDetector when receiving gossip with new member,
  not only new joining member

* increase timeout in MultiDcSingletonManagerSpec
2017-09-25 16:47:06 +02:00
Kirill Yankov
dfd94d3aea New implementation of expectNoMsg in TestKit #23224 2017-09-25 16:37:47 +02:00
Patrik Nordwall
cd4ee59cc8 Add parameter eagerClose to Flow.interleave #22710 (#23718)
* overloaded methods added for binary compatibility
* Doc improve: remove unnecessary example, reword eagerClose description
* Test eagerClose = true when other stream closed
2017-09-25 23:26:54 +09:00
Patrik Nordwall
d660f8971e Keep the refuseUid in a better way, #22156
* The scenario described in the issue can cause the quarantine marker to
  be lost when creating a new endpoint for that address. Then when later
  creating another endpoint from an inbound connection the uid is considered
  confirmed and Ack message is accepted, triggering the unexpected seq number
  issue.
* The refuseUid was kept in the endpoint policy markers, but that is just very
  complicated and as illustrated by this issue not always safe.
* Instead, keep the refuseUid separately so it's not lost when registering
  new endpoint.
* The purpose of WasGated was only to try to keep the refuseUid (as far as I know),
  and that is not needed any longer.

mima filter
2017-09-25 16:25:09 +02:00
Guido Medina
9df5d80268 Java 9 Unsafe access to String value type mismatch. (#23710)
It needs to account for both Java 8 and 9 where the types are char[] and byte[] respectively.
2017-09-25 23:22:49 +09:00
gosubpl
9d7b81f11c fix issue with vvector handling in ORSet.mergeRemoveDelta #22890 2017-09-25 16:16:20 +02:00
Patrik Nordwall
12196d674e enforce same DC for isOlderThan, #23307 (#23625) 2017-09-25 11:50:28 +02:00
Christopher Batey
b43bdc49d8 Merge pull request #23713 from chbatey/docs-mjvm-link
=doc Fix multi jvm sample link
2017-09-25 10:21:19 +01:00
Rafał Sumisławski
d4c929d771 Make sending messages to dead letters by DistributedPubSubMediator configurable. #23462 (#23615) 2017-09-25 11:15:06 +02:00
Christopher Batey
d8cd40d250 =doc Fix multi jvm sample link 2017-09-25 09:46:25 +01:00
Christopher Batey
4669b4854d Fix minor docs typo (#23709) 2017-09-24 19:15:15 +02:00
Cause Chung
5892c2a569 Add more doc for framing on tcp streaming #23325 2017-09-23 12:09:05 +02:00
Patrik Nordwall
cd84f7006a Merge pull request #23705 from akka/wip-23690-sharding-EntityTypeKey-patriknw
EntityTypeKey in typed Cluster Sharding, #23690
2017-09-22 18:26:47 +02:00
Patrik Nordwall
0a5181c1ce EntityTypeKey in typed Cluster Sharding, #23690 2017-09-22 17:29:34 +02:00
Patrik Nordwall
b9461b721d Merge pull request #23700 from akka/wip-typed-sharding-patriknw
=typ,clu akka typed cluster sharding, #23698
2017-09-22 17:11:41 +02:00
Konrad `ktoso` Malawski
386289ee70 =typ,clu akka typed cluster sharding, #23698 2017-09-22 16:45:18 +02:00
Patrik Nordwall
01de74cf41 Merge pull request #23692 from akka/wip-cleanup-patriknw
provided cluster dependencies in Akka Typed
2017-09-22 16:39:07 +02:00
Patrik Nordwall
5718795aa7 Merge pull request #23644 from hseeberger/23640-actor-signal
Add signal method to Akka Typed DSL (closes #23640)
2017-09-22 16:19:44 +02:00
Patrik Nordwall
579b56a0ee provided cluster dependencies in Akka Typed
* and some additional cleanup
* on my mac upd doesn't work unless loopback address is used
2017-09-22 16:15:24 +02:00
Johan Andrén
846cfe0416 Typed library-extensions were loading the wrong thing (#23701)
* Typed library-extensions were loading the wrong thing

* And that actual fix...

* Formatting
2017-09-22 16:07:06 +02:00
Johan Andrén
ad103db43c Typed actorref serializer to allow for java serialization of messages (#23696)
* typed actorref serializer to allow for java serialization of messages

* review adressed
2017-09-22 15:35:53 +02:00
Patrik Nordwall
9388c69b50 Merge pull request #23688 from akka/andThenWithoutStateParameter
Add 'def andThen(callback: ⇒ Unit)'
2017-09-22 14:57:34 +02:00
Arnout Engelen
f7789103a2 Add 'def andThen(callback: ⇒ Unit)'
Cleans up the examples a bit, though it might make it easier to accidentally
look at the old state rather than the updated state.
2017-09-22 14:13:21 +02:00
Patrik Nordwall
61bbfbf040 Merge pull request #23674 from akka/wip-22273-typed-persistence-patriknw
Persistence API for Akka Typed, #22273
2017-09-22 13:52:44 +02:00
Patrik Nordwall
0c5440c036 Some additional api adjustments, #22273
* rename PersistentEffect to Effect
* change order of parameters, ctx first
* rename onEvent to applyEvent
* persistenceIdFromActorName for Cluster Sharding
* PersistenActor.immutable
2017-09-22 13:52:02 +02:00
Arnout Engelen
6d94eb426b Chaining side effects (callbacks and stopping)
Cleans up the API in a couple of places, but still needs type parameters
in spots where I wouldn't want to need them...

Allow multiple side effects in one 'andThen'

Making type inference actually work

Allow applying multiple side effects

In a way that allows 'inspecting' the effects if you want to, but
doesn't require you to repeat generic parameters when you don't.
2017-09-22 12:44:30 +02:00
Patrik Nordwall
7c1e5f3396 impl and test of signals 2017-09-22 12:44:30 +02:00
Arnout Engelen
25567ea868 Move ApiTest to PersistentActorCompileOnlyTest 2017-09-22 12:44:30 +02:00
Patrik Nordwall
b671d2a47b first impl of Typed PersistentActor, #22273
* illustrate problem with wrapping behavior
2017-09-22 12:44:03 +02:00
Arnout Engelen
be26edeb04 Some experiments with a typed api for persistence
* Expand example with a timer
* Move 'onRecoveryComplete' to 'builder' style
* rather than using a default parameter which is hard to
  evolve with binary compatibility
* Explicit snapshots
* Example spawning a child actor
* Taking a snapshot needs access to the state
* Added signal handler
* I like how simple the types of `commandHandler` and
 `signalHandler` are now, but it'd be nice if they were closer together and could perhaps even share the `state` switch. I'll give that a try.
* Attempt to get signal handling closer to command handling
* Always use the full state for snapshots
* If you want to add a mapping layer use event adapters or a custom
  serializer.
* Example of an actor that separates 'persistent' and transient state
* Use ordering 'command, event, state, context' consistently
* Allow multiple `andThen`
* Replace ask with spawned adapters
* Allow 'andThen' on each PersistentEffect
* Make 'onSignal' a partial function
* Remove unnecessary parens
* Simplify 'andThen', make sure it receives the State
2017-09-22 12:44:02 +02:00
Johannes Rudolph
c2e45fa6dc =type Cluster and local Receptionist, #23634
* a Receptionists extension

It's basically an improved copy of the former receptionist pattern which is
removed here as well.

* Cluster implementation using Distributed Data

* =typ make ActorRef.apply work for adapted actor systems
2017-09-22 11:38:07 +02:00
Heiko Seeberger
0d92122cbb Add onSignal behavior factory to Akka Typed DSL (closes #23640) 2017-09-21 22:26:31 +02:00
Johan Andrén
c31f6b862f cluster apis for typed, #21226
* Cluster management (join, leave, etc)
* Cluster membership subscriptions (MemberUp, MemberRemoved, etc)
* New SelfUp and SelfRemoved events
* change signature of awaitAssert to return the value (not binary compatible)
* Cluster singleton api
2017-09-21 17:58:29 +02:00
Patrik Nordwall
94f0492873 Merge pull request #23647 from akka/wip-typed-ddata-patriknw
Distributed Data API for Akka Typed
2017-09-21 13:14:13 +02:00
Konrad `ktoso` Malawski
0020e27f76 Add Code of Conduct, inspired by Play Framework's (#23673)
* Add Code of Conduct, inspired by Play framework's

* Update CODE_OF_CONDUCT.md

* Update CODE_OF_CONDUCT.md

* We also invite people not from companies
2017-09-21 19:23:19 +09:00
Kyle Song
280fcc9f37 =doc Remove duplicated 'to be's. issue #23646 (#23671) 2017-09-21 10:20:07 +09:00
Arnout Engelen
699a11144e Avoid side effect in ActorGraphInterpreter#toString #23656 2017-09-20 14:27:29 +02:00
Konrad `ktoso` Malawski
349a5f749a =jdk9,str JDK9 ready classes, in special directories (#23650)
* =jdk9,str JDK9 ready classes, in special directories

* =str,jdk9 prepare for releasing using JDK9 (needs sbt 1.0+ though)

* =str,jdk9 passing TCK spec touching some JDK9 types internally

* make sure to include linting options
2017-09-20 21:06:49 +09:00
Patrik Nordwall
6d78e30e1c DistributedData extension 2017-09-20 13:49:36 +02:00
Patrik Nordwall
8b2bde1396 convenience for ask 2017-09-20 13:20:39 +02:00
Patrik Nordwall
9eb8d3f853 add remaining commands 2017-09-20 13:20:39 +02:00
Patrik Nordwall
eee449ccb3 incorporate feedback 2017-09-20 13:20:39 +02:00
Patrik Nordwall
20fce37665 Subscribe 2017-09-20 13:20:39 +02:00
Patrik Nordwall
9496b59289 first stab at javadsl for Typed ddata 2017-09-20 13:20:39 +02:00
Patrik Nordwall
341d4e5ba9 WIP ddata api for Akka Typed 2017-09-20 13:20:39 +02:00