Commit graph

23509 commits

Author SHA1 Message Date
Patrik Nordwall
6122966fca Jackson serializer as replacement for Java serialization, #24155
* Copied from Lagom, with the following differences
  * Jsonable and CompressedJsonable not included
  * pcollection and guava modules not enabled by default
  * added scala and afterburner modules
* JSON, CBOR and Smile options (different serializers)
* JMH benchmark
* jackson version 2.9.9
* test polymorphism
* serializer for ActorRef
* Address serializer
* FiniteDuration serializer, same as java.time.Duration
* use blacklist from Jackson databind against gadgets
* disallow binding to open ended types, such as java.io.Serializable
* Configurable ObjectMapper ser/deser features
* testing date formats with WRITE_DATES_AS_TIMESTAMPS on/off
* ActorSystemSetup for ObjectMapper creation
  * and possibility to lookup created ObjectMapper via ObjectMapperProvider extension
* createObjectMapper without ActorSystem, needed by Lagom test
* add basic docs
* skip Scala 2.13 for akka-serialization-jackson for now, until the Jackson
  Scala module has been released
2019-05-24 09:03:45 +02:00
Nicolas Vollmar
dd6924465b Use function instead of scala partial function for java api #26970 (#26972)
* Use function instead of scala partial function for java api #26970

* Remove deprecated function #26970
2019-05-24 08:13:22 +02:00
Arnout Engelen
814cfa286c Scala 2.13.0 rc2 (#26967) 2019-05-24 08:11:50 +02:00
Patrik Nordwall
24a3bba135
Add reason for deprecating TypedActor, #25516 (#26993)
* Add reason for deprecating TypedActor, #25516

Co-Authored-By: Helena Edelson <helena@users.noreply.github.com>
2019-05-24 08:07:58 +02:00
Johan Andrén
2051b7ce6b Routers.pool now takes a factory (#26987)
Previously took a Behavior which made it impossible to safely use an
AbstractBehavior with mutable state as routees without using Behaviors.setup
2019-05-23 18:26:17 +02:00
Patrik Nordwall
8d1dcea5d2
ClusterReceptionist using own ddata Replicator #26936 (#26994)
* ClusterReceptionist using own ddata Replicator #26936

* otherwise application configuration, such as role may break it
* creating it as a child actor, path will be same on all nodes
* rolling update from 2.5 not supported
* mention in migration guide

* update migration note about receptionist rolling update
2019-05-23 18:21:34 +02:00
Arnout Engelen
686b36962e
Don't branch while releasing (#26966)
Don't introduce a new branch while releasing, so the release is just a tag on
master.

Use -Dakka.build.version to pass version to sbt

See also #26675.
2019-05-23 17:48:48 +02:00
Christopher Batey
138ffe25d7
Hooks for Akka Persistence Typed lifecycle (#26999) 2019-05-23 15:10:32 +01:00
Johan Andrén
55ae1ad5c4
Stash before getting first listing in group router #26951 2019-05-23 14:58:19 +02:00
Patrik Nordwall
a6f717c9b0 fix a race condition in ClusterReadView #24710 (#26922)
* remove lazy initialization for _cachedSelf
* don't update _state and friends after close()
2019-05-23 14:08:25 +02:00
Arnout Engelen
3015f197f1
Typed testing docs: imports and scalatest dependency (#26890) 2019-05-23 14:05:06 +02:00
Patrik Nordwall
7815d16e94
Merge pull request #26997 from akka/wip-travis-branches-patriknw
specify travis safelist for branches
2019-05-23 13:02:13 +02:00
Patrik Nordwall
2fd7b83637 specify travis safelist for branches
* master, release-2.5
* release tags, e.g. v2.5.24, v2.6.0-M2
2019-05-23 08:39:39 +02:00
Patrik Nordwall
737eb30d04
Merge pull request #26995 from akka/wip-2.5.23-master-patriknw
update latestPatchOf25 to 2.5.23
2019-05-22 21:22:30 +02:00
Patrik Nordwall
7a2ce2826a update latestPatchOf25 to 2.5.23
* also minor update of release instruction
* moved some mima filters to 2.5.x
2019-05-22 16:39:19 +02:00
Arnout Engelen
dcf61a83c0
More specific test timing expectations (#26918)
* More specific test timing expectations (#22098)

* Add another retry to justify the wider expectMsg margin
2019-05-22 16:38:10 +02:00
Patrik Nordwall
7e31ff719b
Merge pull request #26943 from akka/wip-26942-ddata-alias-patriknw
add missing unapply for response types in DData Typed, #26942
2019-05-21 21:12:33 +02:00
Patrik Nordwall
0458b5624d
Merge pull request #26980 from helena/deprecate-actor-typedactor
Deprecate akka.actor.TypedActor #25516
2019-05-21 21:06:23 +02:00
Patrik Nordwall
6dc7898a2a
Merge pull request #26981 from helena/deprecate-serde-class-opt
Deprecate Serialization.deserialize that takes  parameter #25945
2019-05-21 20:52:28 +02:00
Patrik Nordwall
80fd6532e0
Merge pull request #26984 from akka/raboof-patch-1
Discovery: clarify what versions migration applies to
2019-05-21 20:47:59 +02:00
Dale Wijnand
5a893fff7b Use Def.settings (#26945) 2019-05-21 18:35:42 +02:00
Patrik Nordwall
a4a61649f6 add InternalStableApi annotation (#26949) 2019-05-21 16:29:11 +01:00
Helena Edelson
593f9501b5 * Deprecate akka.actor.TypedActor #25516 2019-05-21 10:38:38 -04:00
Christopher Batey
14d070298d Remove extra cherrypick step from contributing (#26939) 2019-05-21 08:31:00 -04:00
Charies Gavin
7e9366095e Update cluster-metrics.md (#26937)
delete duplicate dependency content
2019-05-21 08:30:17 -04:00
Arnout Engelen
4ac513a523
Unicode arrows (#26965) 2019-05-21 13:35:11 +02:00
Arnout Engelen
f9f3d2b683
Clarify what versions migration applies to 2019-05-21 10:42:34 +02:00
Helena Edelson
36ff77124c Deprecate Serialization.deserialize that takes parameter #25945 2019-05-20 17:39:46 -04:00
Patrik Nordwall
9f76d55c2b
Merge pull request #26969 from akka/wip-26956-ByteStringSpec-patriknw
fix ByteStringSpec for Scala 2.13, #26956
2019-05-20 15:20:13 +02:00
Johan Andrén
7c6025b06a
Snapshot when stages stopped incorrect and can cause crash #26902 2019-05-20 13:56:23 +02:00
Vasilis Nicolaou
a7c3e2b014 Wrap the system event stream with a typed ActorRef (#26810) 2019-05-20 12:22:10 +02:00
Nicolas Vollmar
f37f41574d Implements actorRef source variant with backpressure #17610 (#26633)
* Implements actorRef source variant with backpressure #17610

* Small improvements to documentation and source #17610

* Small improvements to test #17610

* Small improvements to implementation and tests #17610

* Adds API for akka-typed #17610

* Adds ack sender and java api for typed #17610
2019-05-20 12:19:44 +02:00
Patrik Nordwall
3e32cdc3ca fix ByteStringSpec for Scala 2.13, #26956
* simply ignore that compat test for 2.13 because the only reason for
  testing Java serialization compat is that in Akka 2.4 it used
  Java serialization (and in 2.5 when additional-serialization-bindings
  was disabled)
2019-05-20 12:07:27 +02:00
Patrik Nordwall
a9f4f2dd96
akka.build.version property, #26958 (#26959)
* akka.build.version property, #26958

* and use timestamped snapshot version if "timestamp" is passed in
* to support publishing snapshots with same version for Scala 2.12 and 2.13
  with +publish
* remove stampVersion plugin, since it's no longer needed

* store currentDateTime in system property

* to survive reloads
2019-05-20 11:31:46 +02:00
Patrik Nordwall
d9b6f633a0
Merge pull request #26962 from akka/wip-26957-ClusterShardingFailureSpec-patriknw
Deliver buffered messages after passivation, #26957
2019-05-20 11:06:00 +02:00
Dale Wijnand
03c4efdc1d Rewrite some code for Scala 2.13 (#26944)
* Rewrite some code for Scala 2.13

Rewrote some code to avoid some deprecations coming in 2.13.

* Drop usage of scala.Symbol in the tests
2019-05-20 08:59:49 +02:00
Patrik Nordwall
1ef65091f6 Deliver buffered messages after passivation, #26957
* This problem was introduced in the optimization in PR #26878,
  and that regression has not been released.
* While waiting for the ddata update response it buffers messages
  for the entity that is stopped/started and in the case of passivation
  those buffered messages were not delivered afterwards. Therefore
  the test failed when waiting for the expected response.
2019-05-20 08:37:58 +02:00
Patrik Nordwall
a2658cc8a0
Merge pull request #26933 from akka/wip-ClusterSingletonProxySpec-patriknw
more classic remoting leftovers
2019-05-17 11:07:29 +02:00
Arnaud Burlet
e6be88d35f Gracefully handle exception throw in SnapshotOffer, #26699 (#26700) 2019-05-17 10:47:10 +02:00
Patrik Nordwall
5db334f2b1
Merge pull request #26893 from jrudolph/jr/remove-fjp-copy
act: remove shaded fork join pool implementation
2019-05-17 10:44:55 +02:00
Renato Cavalcanti
8eef461b7b Adds EventSourcedEntity with EnforcingReplies (#26692) 2019-05-17 09:09:18 +02:00
Martynas Mickevičius
18d970fc8e Add setup operator #26192 2019-05-17 08:54:18 +02:00
Patrik Nordwall
0141e83f00 add missing unapply for response types in DData Typed, #26942 2019-05-16 15:59:01 +02:00
Arnout Engelen
7b20b89ce0
Add ByteString.emptyByteString to Java API (#26931)
* Add ByteString.emptyByteString to Java API

To work around https://github.com/scala/bug/issues/11509

* Add note to 2.6 migration document
2019-05-16 14:02:49 +02:00
Patrik Nordwall
b399e728a2
Merge pull request #26923 from akka/wip-25444-patriknw
Reduce DDataShardCoordinator memory usage during unreachability (#25444)
2019-05-16 13:31:56 +02:00
Patrik Nordwall
52752021d3
Merge pull request #26878 from akka/wip-optimize-DDShard-patriknw
Improve performance of DDataShard stashing, #26877
2019-05-16 13:16:03 +02:00
Christopher Batey
90f137646e
Move incorrect deprecated annoation in BackoffSupervisor (#26914) 2019-05-16 11:06:44 +01:00
Patrik Nordwall
984f782917
Merge pull request #26921 from akka/persistentId
persistentId -> persistenceId
2019-05-16 11:41:10 +02:00
Patrik Nordwall
ce438637bb Improve performance of DDataShard stashing, #26877
* While waiting for update to comple it will now deliver messages to other
  already started entities immediately, instead of stashing
* Unstash one message at a time, instead of unstashAll
* Append messageBuffer for messages to the entity that we are waiting for,
  instead of stashing
* Test to confirm the improvements
* Fixing a few other missing things
  * receiveStartEntity should process the change before starting the entity
  * lastMessageTimestamp should be touched from overridden deliverTo
  * handle StoreFailure
2019-05-16 11:39:28 +02:00
Patrik Nordwall
35e7e07488
Some more internal-dispatcher usages, #26915
* tried to investigate the (small) increase in LatencySpec that occured
  when the internal-dispatcher was introduced
* couldn't see significant difference when running locally
* found a few more places where the internal-dispatcher should be used
* my thinking is that the additional latency could have been caused by
  hopping between dispatchers, but I'm not sure if any of these
  changes will have an effect (we'll see in Jenkins job)
* more clear router props
2019-05-15 19:35:57 +02:00