Commit graph

23757 commits

Author SHA1 Message Date
kenji yoshida
94857fd4e1 update mima url (#27407) 2019-07-24 14:22:10 +02:00
Dale Wijnand
5997f516de Reword the "Where to define messages" style docs (#27393) 2019-07-24 13:26:43 +02:00
Kun Song
38be540467 Use min of numberOfMessages and buffer size when unstash. (#27398) 2019-07-24 12:32:22 +02:00
Christopher Batey
7cc7d86971
Instructions for generating protobuf (#27402)
* Instructions for generating protobuf

* Update CONTRIBUTING.md

Co-Authored-By: Arnout Engelen <github@bzzt.net>
2019-07-24 10:25:53 +01:00
Arnout Engelen
6d4fbfc43d Loosen expectation of TlsTcpWithHostnameVerificationSpec (#27394) (#27396) 2019-07-24 08:34:25 +01:00
Arnout Engelen
ccd2c9aff6 Include version error in the docs (#27365)
So the relevant section will show up in google
2019-07-24 07:47:37 +01:00
Arnout Engelen
c4d4dd3875 Persistence typed context (#27404)
* Add context parameters to persistence typed
* Add hooks to capture event-written
2019-07-23 18:47:25 -07:00
Johannes Rudolph
743c542e18 streams: clarify how to complete a Source.actorRef in Scaladocs and docs (#27325)
* streams: clarify how to complete a Source.actorRef in Scaladocs and docs
2019-07-23 19:17:11 +02:00
Christopher Batey
6c416c2818 User serializer for protobuf3 (#27362)
* User serializer for protobuf3
2019-07-23 16:22:07 +02:00
kerr
d4dcbee4c9 Use a dedicated mismatching indicator instead of null for WidenInterceptor. (#27292) 2019-07-23 15:58:03 +02:00
Kun Song
5e68cd0297 Fix a typo in Stash document (#27399) 2019-07-23 09:35:31 +02:00
Dale Wijnand
f2eec1106d Reword the "ask versus ?" typed style docs (#27390) 2019-07-23 09:25:34 +02:00
Dale Wijnand
fb653cc336 Fix some grammar in the typed style guide (#27388)
Also, use English ("for example") rather than Latin ("e.g.") in docs.
2019-07-22 15:25:01 +02:00
Christopher Batey
69fd98a39d Fix SurviveNetworkInstabilitySpec (#27383) 2019-07-19 07:27:08 -07:00
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