Commit graph

23710 commits

Author SHA1 Message Date
Patrik Nordwall
3efc1c2877
Disable Java serialization by default, #22333 (#27285)
* akka.actor.allow-java-serialization = off
* Moved primitive (Long, Int, String, ByteString) serializers
  from akka-remote to akka-actor since they had no dependency
  and are useful also in local systems, e.g. persistence.
  * e.g. needed for persistence-tck
  * less allow-java-serialization=on in tests
* CborSerializable in Jackson/test module for ease of use
* JavaSerializable for Java serialization in tests, already in akka-testkit,
  but misconfigured
* Made tests pass
  * allow-java-serialization=on in akka-persistence
  * allow-java-serialization=on in classic remoting tests
  * JavaSerializable and CborSerializable in other remoting tests
* Added serialization for
  * Boolean
  * java.util.concurrent.TimeoutException, AskTimeoutException
* support for testing serialization with the inmem journal
* utility to verifySerialization, in SerializationTestKit
* remove AccountExampleWithCommandHandlersInState becuase not possible to serialize State when it's not static
  * Effect() is factory in EventSourcedBehavior  class
* test the account examples
* SharedLeveldbJournal.configToEnableJavaSerializationForTest
* support for exceptions from remote deployed child actors
  * fallback to akka.remote.serialization.ThrowableNotSerializableException
    if exception is not serializable when wrapped in system messages from
    remote deployed child actors and Status.Failure messages
  * it's implemented in `WrappedPayloadSupport.payloadBuilder`
* update reference documentation
* serialize-messages=off in most places, separate ticket for
  improving or removing that feature
* migration guide, including description of rolling update

* fix 2.13 compiler error

* minor review feedback
2019-07-11 14:04:24 +02:00
Patrik Nordwall
a4f090b622
Merge pull request #27308 from 412b/fix-java9+-ctor-call-compat
Java 9+ compilation compat nitpicks
2019-07-10 15:43:13 +02:00
Patrik Nordwall
8d69388d0a Deprecate classic remoting classes (#27237)
* Sprinkle deprecated annotation to public classes for classic remoting
* Use right dispatcher setting for a few remoting actors
* New Artery events for QuarantinedEvent, GracefulShutdownQuarantinedEvent
  and ThisActorSystemQuarantinedEvent because old were not good
  and would cause binary compatibility trouble when we remove classic
* silence more deprecation warnings
2019-07-10 14:26:51 +02:00
Johan Andrén
83d0f8bb05
One more deprecation for IOResult(n, ex) (#27314) 2019-07-10 14:20:12 +02:00
Patrik Nordwall
041db6f549 Rename widen to transformMessages, #27253 2019-07-10 14:17:59 +02:00
Johannes Rudolph
b1a7ff5749 Fix Scaladoc typo (#27320) 2019-07-10 14:08:47 +02:00
Patrik Nordwall
e5dbd939be
Merge pull request #27256 from akka/wip-26684-additional-bindings-patriknw
Remove additional-serialization-bindings, #26684
2019-07-10 12:14:37 +02:00
Patrik Nordwall
06a98667da
Merge pull request #27313 from johanandren/wip-27184-router-doc-test
Make the router doc test actually verify that it works
2019-07-10 11:59:25 +02:00
Arnout Engelen
8e952fa3a4
Update paradox-apidoc (#27270)
For easier referencing of typed javadsl/scaladsl classes
2019-07-10 08:11:31 +02:00
Johan Andrén
a054ae52c5 Make the router doc test actually verify that it works #27184 2019-07-09 22:53:12 +02:00
Patrik Nordwall
5388a65679
Style Guide: Functional vs object-oriented style, #22805 (#27271) 2019-07-09 18:33:38 +02:00
Patrik Nordwall
b52e03ecba Serialization for more Cluster Sharding query messages (#27306)
* GetClusterShardingStats
* ClusterShardingStats
* GetCurrentRegions
* CurrentRegions
2019-07-09 08:34:19 -07:00
Johan Andrén
afa1d60047
Small fix and test coverage for unfoldResourceAsync #25862 2019-07-09 17:19:53 +02:00
Kirill Plyashkevich
0a11af2159 In Java 9 java.lang.Class.newInstance was deprecated in favour of java.lang.reflect.Constructor.newInstance.
In order to be able to at least compile Akka on Java 9+ provided changes are currently sufficient.
2019-07-09 16:42:47 +03:00
Christopher Batey
88e6933ba0 Remove warnings in persistence-tck (#27286) 2019-07-09 14:54:31 +02:00
James Roper
51e443ec72 Make shard homes retry request warning message less spammy (#27260) 2019-07-09 13:19:31 +01:00
Johan Andrén
6e69bc8713
Fix stack overflow in stream converters (#27305) 2019-07-09 13:58:26 +02:00
James Roper
0037998bfb Use SPDX short identifier for license (#27277)
* Use SPDX short identifier for license

The SPDX license list (https://spdx.org/licenses/) defines a standard
for identifying licenses that allows tooling to unambiguously identify a
license. This changes Akka to use the SPDX short identifier for the
Apache 2 license.

Any developer wishing to publish their own build of Akka to bintray will
need to make this change, as bintray uses the SPDX short identifier to
verify that artifacts being published to free accounts are indeed open
source. So this will make it easier for people to publish their own
builds.

* Update Apache license URL

Co-Authored-By: Arnout Engelen <github@bzzt.net>
2019-07-09 12:54:32 +01:00
Helena Edelson
4178050669 Minor spelling fix in doc (#27297)
* Fixed typo.

* More of the same spelling fixes.
2019-07-09 09:55:58 +02:00
Helena Edelson
3bc627ad42
Cluster Sharding: make askAllShards not a hard coded timeout #27273 (#27274) 2019-07-08 08:00:08 -07:00
Helena Edelson
501848dcca
cluster.joinSeedNodes(...) does not throw warnings when seed hostname contains underscores #25287 (#27222) 2019-07-08 05:52:22 -07:00
Christopher Batey
d4167bc930
Re-write file sink as a graph stage (#27247)
* Re-write file sink as a graph stage

Refs #26187
2019-07-08 08:54:59 +01:00
Arnout Engelen
47c65d266a Don't WARN when the user explicitly enabled unsafe features (#27289) 2019-07-05 18:25:35 +01:00
eyalfa
14c02302bc Akka 27103/streams zip all #27103 2019-07-05 16:40:06 +02:00
Patrik Nordwall
98865d7fb6
Merge pull request #27284 from akka/wip-27283-jackson-case-object-patriknw
Serialization of case object with Jackson, #27283
2019-07-05 13:38:55 +02:00
Christopher Batey
c564a0ff54 Rewrite actor ref sink as a graph stage (#27267) 2019-07-05 13:20:36 +02:00
Patrik Nordwall
b006567751
Merge pull request #27282 from akka/wip-release-deployRsync-patriknw
use Scala 2.13 for last step in release script
2019-07-05 13:17:16 +02:00
Christopher Batey
b9f02aba0c Deprecation removal hunt (#27250) 2019-07-05 13:16:51 +02:00
Patrik Nordwall
3f4179c316 Remove additional-serialization-bindings, #26684
This should be safe for a rolling update between Akka 2.5.x and 2.6.0
also if additional-bindings were disabled in 2.5.x because:
* if 2.6.0 sends one of those the serializer (akka-misc) exists in 2.5.x
  so deserialization will work via the serializerId
* if 2.5.x sends one of those with java serialization it can be
  deserialized in 2.6.0 since the java serializer exists
  (disabling java serialization by default is another ticket)

* historical problems with serialization of remote Deploy messages
  in Akka 2.4.x should be gone now
2019-07-05 13:12:36 +02:00
Patrik Nordwall
72730036be Serialization of case object with Jackson, #27283
* the serializer must treat case objects specially since
  the way the class is loaded is different, and Jackson
  object mapper shouldn't be involved in fromBinary
2019-07-05 11:38:28 +02:00
Christopher Batey
2db03309ce
Akka Persistence instrumentation improvements (#26946) (#27280) 2019-07-05 10:06:07 +01:00
Christopher Batey
7c151a4279 Pattern for responding to a sharded actor (#27077) 2019-07-05 10:29:23 +02:00
Christopher Batey
1dfe55fcc3 Typed Stash: Create via factory method on Behaviors (#27200)
* changing to trait in javadsl
2019-07-05 10:28:07 +02:00
Patrik Nordwall
72680e93bf EventSeq in Typed EventAdapter (#27130)
EventSeq in Typed EventAdapter, refs #26909
2019-07-05 09:46:10 +02:00
Patrik Nordwall
daac56cc40 use Scala 2.13 for last step in release script 2019-07-05 09:37:06 +02:00
Patrik Nordwall
16f2009786 fix two log messages related to use-unsafe-remote-features-without-cluster (#27241)
* one was always logged at startup when using cluster provider
* the other was logged (at debug) each time an ordinary local actor was started
2019-07-05 08:11:33 +01:00
Xin Yin
44dcfe057a Fix an issue of prolonged delay in the Delay stage #26470 2019-07-05 09:07:16 +02:00
Patrik Nordwall
51041b1faf
Merge pull request #27081 from dwijnand/make-EntityRef-and-EntityTypeKey-contravariant
Make EntityRef & EntityTypeKey contravariant
2019-07-05 09:05:49 +02:00
Patrik Nordwall
ff76211f4d
Merge pull request #27257 from hepin1989/nullMsg
Add sender to the exception message when the message sent is null.
2019-07-05 08:27:14 +02:00
Johan Andrén
beb35bf12d
First step in restructuring the docs for 2.6 #26487 2019-07-05 08:21:38 +02:00
Johan Andrén
5fe12a3e9d
Subscription timeouts not working #19980 2019-07-05 08:19:46 +02:00
Christopher Batey
62f639e054 Replace ActorPublishers in leveldb with stages #26187 2019-07-04 16:57:17 +02:00
Christopher Batey
7c94367d13
Cluster heartbeat timings (#26757)
* Serializer for Heartbeat and HeartbeatRsp that includes sendTime and sequenceNr

A future release will be required to use the serialiser once there has
been a release with this PR so that old nodes can deserialise the new
message.

* Cross DC heartbeating sequenceNr and sendTime
2019-07-04 14:21:24 +01:00
Patrik Nordwall
f9d76aa030
Log Dropped from DeadLetterListener, #26432 (#27160)
* Log Dropped from DeadLetterListener, #26432

* Move Dropped from akka-actor-typed to akka-actor
* Use it in Artery
* Use in right way from GroupRouter, not via deadLetters
* Remove "without sender" in log message from DeadLetterListener,
  since there is no sender in Typed
* mima filter
* add sender to Dropped
2019-07-04 14:52:42 +02:00
Patrik Nordwall
7a16403f1b
Merge pull request #27246 from 2m/wip-expect-no-message-sub-2m
Add expectNoMessage to subscriber probe
2019-07-04 14:49:14 +02:00
hepin1989
a11d2b6b3a Add sender to the exception message when the message sent is null. 2019-07-04 19:05:36 +08:00
Martynas Mickevičius
f75f1943a2
Add expectNoMessage to subscriber probe 2019-07-04 13:52:53 +03:00
Johan Andrén
7c6d3b818a FlowDelay with EmitEarly caused a NPE (#27170) 2019-07-04 11:06:24 +02:00
Christopher Batey
139d9a3c0c Remove ApiMayChange from typed testkit (#27096)
* Remove ApiMayChange from typed testkit

* Don't disable mima plugin to highlight times we break bin cmompat

Refs #26897

* Add api may change to test inbox and behavior test kit
2019-07-04 11:03:27 +02:00
Patrik Nordwall
310b861d69
Merge pull request #27178 from akka/wip-typed-testkit-docs-patriknw
move synchronous behavior testing docs
2019-07-04 11:01:15 +02:00