Commit graph

23734 commits

Author SHA1 Message Date
Philippus Baalman
0f7dbf6fcb Replace link to scalariform with link to scalafmt (#27239) 2019-07-15 15:51:32 +02:00
Johan Andrén
f0e42d2b9c
Cluster aware routers for typed #26355 2019-07-15 15:25:00 +02:00
Christopher Batey
d2f5d2daa3 Allow java serialization for TypedActorRemoteDeploySpec (#27354)
* Allow java serialization for TypedActorRemoteDeploySpec

* Also delete ignore for 2.12 annotation
2019-07-15 14:00:34 +02:00
rohitkumbhar
50b63464fa Hostname verification should be done by the client only (#26906)
Setting the endpoint identification algorithm to HTTPS on the server engine
forces the client to preset a certificate that contains the server name. This
is rather unlikely and it fails TLS handshake today

This change will allow hostname verification to be done by the client only
2019-07-15 13:43:50 +02:00
Helena Edelson
a110be8f69
Fix intercept of Watch in use of safe remote features #27333 (#27334)
And added one more case for cluster watcher, watching remote no cluster watchee, and the reverse.
2019-07-12 12:18:37 -07:00
Patrik Nordwall
d27be3fa48
Merge pull request #27337 from akka/wip-22805-style4-patriknw
Style Guide: enum msg, ask, tot fun, naming, meth ref, intro, #22805
2019-07-12 19:21:02 +02:00
Patrik Nordwall
6f94707cfd Style Guide: Additional sections, #22805
* Behavior factory method
  * AbstractBehavior via Behaviors.setup
* Where to define messages
* Public vs. private messages
* Singleton messages, enum
* ask vs ?
* Partial vs. total Function
* Additional naming conventions
* Lamdas vs. method references
* intro

Co-Authored-By: Helena Edelson <helena@users.noreply.github.com>
2019-07-12 17:13:58 +02:00
Patrik Nordwall
0f01df713f
Merge pull request #27302 from akka/wip-27301-copyUSAsciiStrToBytes-patriknw
Harden copyUSAciiBytesToStr, so that it works on Raspberry Pi, #27301
2019-07-12 16:48:24 +02:00
Patrik Nordwall
ac4e8eee62
Merge pull request #27332 from akka/wip-jackson-2.9.9.1-patriknw
Update to Jackson databind 2.9.9.1 to fix CVE-2019-12384 and CVE-2019-12814
2019-07-12 13:48:36 +02:00
Patrik Nordwall
32726dad5f
Merge pull request #27272 from akka/wip-22805-helloworld-patriknw
Style: Update HelloWorld sample to OO style for Java, #22805
2019-07-12 13:47:24 +02:00
Patrik Nordwall
17b192a795
Merge pull request #27322 from akka/wip-25708-test-conf-patriknw
Use application-test.conf for typed testkit, #25708
2019-07-12 13:46:01 +02:00
Patrik Nordwall
6241f7a92a Move event stream messages to EventStream.*, #27211
* Move event stream messages to EventStream.* for better prefix usage, e.g. EventStream.Publish and consistency with Receptionist
* move ReceptionistImpl to internal package
* improve Scaladoc of Receptionist
2019-07-12 13:39:48 +02:00
Patrik Nordwall
7505a13fc2 fix FIXMEs in Jackson serializer and docs (#27316) 2019-07-12 13:31:24 +02:00
Patrik Nordwall
2f7f512625
Merge pull request #27326 from akka/wip-22805-style2-patriknw
Style Guide: Passing around too many parameters, #22805
2019-07-12 11:59:09 +02:00
Patrik Nordwall
d2d4aa96e3 Style Guide: Passing around too many parameters, #22805 2019-07-12 11:58:33 +02:00
Patrik Nordwall
af77bf3fb0 Use application-test.conf for typed testkit, #25708
* solves the problem that previously it loaded application.conf
  if no Config parameter is used, but not otherwise
* application.conf should normally not be used by tests,
  but if someone prefer that it's easy enough to use it via
  `ConfigFactory.load()` or via include in application-test.conf
2019-07-12 11:55:29 +02:00
Patrik Nordwall
4561994a59 fix serialization failure in ClusterShardingSpec (#27344) 2019-07-12 11:38:03 +02:00
Arnout Engelen
fe09b41ffe
Remove infinite redirect from docs (#27341)
Fixes https://github.com/akka/akka.github.com/issues/624
2019-07-12 11:17:08 +02:00
Patrik Nordwall
8f8684ae6c Doc trait+object (enum) serialization for Jackson (#27244)
* Doc trait+object (enum) serialization for Jackson

* move to separate file
2019-07-12 08:25:10 +01:00
Patrik Nordwall
2a57ec4e3d adjust Cluster in docs ToC (#27323) 2019-07-12 08:23:59 +01:00
Christopher Batey
fe2d1ee917
Snapshot adapter for typed persistence (#27319)
* WIP

* Snapshot adapter for typed persistence

* Pesky java

* Move no op snapshot adapter to internal package

* remove unused import

* More private

* Formatting

* Add cbor serializeable to messages
2019-07-11 16:22:19 +01:00
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
86efe39afd Update to Jackson databind 2.9.9.1 to fix CVE-2019-12384 and CVE-2019-12814
* Block  gadget type for CVE-2019-12384
* Block gadget type CVE-2019-12814
* new classes blocked in SubTypeValidator.DEFAULT_NO_DESER_CLASS_NAMES,
  which we use from Akka so updating the dependency is enough
2019-07-11 13:51:05 +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
Patrik Nordwall
1c30efe8ce Harden copyUSAciiBytesToStr, so that it works on Raspberry Pi, #27301
* With JDK 11 on ARM32 the copyUSAsciiStrToBytes injected a 0 byte
  inbetween each char
* Select optimization algorithm at startup by testing the result.
* Final fallback is plain str.getBytes("us-ascii")
2019-07-09 08:50:35 +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