Commit graph

23743 commits

Author SHA1 Message Date
jeremie-seguin
950ec71294 fix typo in stream doc (#27379) 2019-07-19 09:18:08 +02:00
Johan Andrén
03b8c543fc Serialization support for wrapped stream refs (#27353) 2019-07-16 10:11:33 -07:00
kerr
cdd7976c26 Don't use pattern matching to generate less bytecode. (#27293) 2019-07-16 08:30:54 -07:00
Arnout Engelen
c3e8a968d9
Test hostname verification (#27355) 2019-07-16 15:32:50 +02:00
Patrik Nordwall
10c2b0714a reduce message sizes for Gossip and DeltaPropagation in ddata, #27175 (#27176) 2019-07-16 14:22:16 +02:00
Johan Andrén
2626f17747
Select mailbox in Akka typed actors #27124 2019-07-16 13:52:23 +02:00
Johan Andrén
d03294d359
Align SpawnProtocol with style guide #27318 2019-07-16 11:36:12 +02:00
James Roper
511356177d Added actor termination coordinated shutdown task #27089
A convenience method that allows creating a
shutdown task by sending a message to an actor, and watching for its
termination.
2019-07-16 10:56:48 +02:00
Arnout Engelen
d3170a56ea Add fluent API for 2-stream merging (#27020)
* fluent API for 2-stream mergeLatest, mergePreferred and mergePrioritized
* Add javadocs and 'eagerClose' paramter to 'mergeLatest'
* fluent API's for
2019-07-16 10:54:18 +02:00
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