Commit graph

24358 commits

Author SHA1 Message Date
Patrik Nordwall
a02a1e8ccb
Merge pull request #28262 from akka/fixTimerTest
Use timer key for tests that require it
2019-11-28 13:22:44 +01:00
Johan Andrén
4588a3904f
Include host and port in mdc if clustered or remote #28073 2019-11-28 11:35:11 +01:00
Robert Stoll
38c938124e [doc] rephrase actor handles msgs of common super type (#28265)
* [doc] rephrase actor handles msgs of common super type

* Update akka-docs/src/main/paradox/typed/actors.md

Co-Authored-By: Arnout Engelen <github@bzzt.net>
2019-11-28 10:52:40 +01:00
Scala Steward
5c0d7bf3dc Update sbt-header to 5.3.1 (#28259) 2019-11-27 18:22:12 +01:00
Robert Stoll
5fdd63b011 [doc] typo, add missing a (#28257) 2019-11-27 17:52:17 +01:00
Robert Stoll
efb8a41e6e [doc] typo, add missing are (#28263) 2019-11-27 17:51:32 +01:00
Enno
4946c957eb Docs: link pages with TLS (#28258) 2019-11-27 17:33:44 +01:00
Jean-Baptiste Giraudeau
6d893fb571 Flow.delayWith allows custom delay for each element. (#25000) 2019-11-27 17:30:56 +01:00
Arnout Engelen
a6392f0a40 Use timer key for tests that require it 2019-11-27 16:22:08 +01:00
Patrik Nordwall
db141d0373
Merge pull request #28256 from akka/revertExtensionLoadFailureHandling
Revert to old extension load failure handling logic
2019-11-27 12:58:59 +01:00
Piotr Lewandowski
270f15f620 adding address typed actorsystem #28206 2019-11-27 09:55:15 +01:00
Arnout Engelen
838c3355ae Revert to old extension load failure handling logic
Partially reverting #28248 to make the existing tests succeed again
Fixes #28254
2019-11-26 21:23:15 +01:00
Lim Chee Hau
571c7bd545 Include host and port in BindException message (#27785) (#27984) 2019-11-26 19:48:19 +01:00
Christopher Batey
8027f2123b Example for mapConcat (#28243)
* Example for mapConcat
2019-11-26 19:39:42 +01:00
Johan Andrén
a9d545bf2b Re-enable multicast tests (#28252)
* Re-enable multicast tests #28147

Some change on jenkins node a4 seems to have made the test pass again.
2019-11-26 18:45:31 +01:00
Christopher Batey
f2f3f64f21 Example for unfoldResourceAsync (#28080)
* Example for unfoldResourceAsync

Co-Authored-By: Enno <458526+ennru@users.noreply.github.com>
2019-11-26 18:38:23 +01:00
Patrik Nordwall
5f21c2264b doc: filter and filterNot streams operator, #25468 2019-11-26 15:54:42 +01:00
Arnout Engelen
4b632c4537 Add convenience method to start timer without key (#27875)
* Add convenience method to start timer without key

It is probably common that there is no need to allow different timers
that send the same message, and this makes that more convenient to write.

Updated one method to gather feedback, if we like the change I can apply
it to the others as well.

* Add alternative to all typed timer API's

Update java/scaladoc, update tests

Not updated classic actors and FSM API's
2019-11-26 13:26:49 +00:00
Patrik Nordwall
38d41e11fb doc: Partition Streams operator, #25468 (#28090)
* doc: Partition Streams operator, #25468

* example intro text
2019-11-26 13:11:43 +00:00
Johan Andrén
4d99440e00
Example for Source.unfoldAsync (#28111) 2019-11-26 14:10:31 +01:00
Patrik Nordwall
938322ac4e more efficient and correct clear in Slf4jLogger (#28094)
* more efficient MDC.put and clear in Slf4jLogger

* no advantage of using mdcAdpater for put
2019-11-26 13:10:04 +00:00
Arnout Engelen
2bf43d394c Remove scalac javabootclasspath hack (#28156)
This should have been implicit with the -release flag, and now
this indeed appears to be the case. Tested with 2.12 and 2.13.0

Fixes the scalac part of #27079
2019-11-26 12:58:29 +00:00
Arnout Engelen
afa9a348b1 Split akka-streams interop pages (#28219)
This is a balance between having huge pages and having a huge ToC,
but it seemed to make sense to split this
2019-11-26 12:56:31 +00:00
Arnout Engelen
8bfb891d38
Missing creation of second actor (#28251)
* Update ActorHierarchyExperiments.java

Missing creation of second actor:
context.spawn(StartStopActor2.create(), "second");

* sbt akka-docs/test:javafmt
2019-11-26 12:57:44 +01:00
Christopher Batey
09a97ce1c9 Document scanAsync (#28239)
* Document scanAsync

* Include async function in scanAsync example
2019-11-26 12:25:20 +01:00
Patrik Nordwall
82db446bb7 Don't loadExtensions at startup if already terminated, #27840 (#28248)
* Problem could be recreated with DowningProviderSpec when running
  with -Dakka.remote.artery.enabled=off
* The exception from the downing provider caused cluster shutdown
  followed by CoordinatedShutdown and ActorSystem.finalTerminate
* The ActorSystem had still not fully initialized so it tried to
  load the configured extensions and the SystemMaterializer extension
* SystemMaterializer can't create child actor
* The thrown exception isn't wrong but might be confusing
* Skip loading extensions if ActorSystem already terminated
* The reason for different behavior with Artery and classic remoting
  is that Artery inits the SystemMaterializer earlier
2019-11-26 11:44:37 +01:00
Johan Andrén
8febed2aed Use dedicated message for PersistentShardCoodinator termination #28093 (#28244)
with a dedicated ShardCoordinator termination message
2019-11-26 11:41:14 +01:00
Arnout Engelen
0e81641b65
Make akka-protobuf-v3.jar reproducible (#28108)
This needs 'special treatment' because the akka build overrides
`packageBin` for this subproject
2019-11-26 11:02:06 +01:00
Lim Chee Hau
444a86291e Add scanAsync examples to akka-docs (#25468) (#27990)
* Add scanAsync examples to akka-docs (#25468)

* Sync scan with scanAsync in akka-docs (#25468)
2019-11-26 10:57:12 +01:00
Lim Chee Hau
2ee63f5386 Add recover example to akka-docs (#25468) (#28004)
* Add recover example to akka-docs (#25468)

* Apply scalafmtAll (#25468)
2019-11-26 10:55:26 +01:00
Robert Stoll
f3eb1772ea [doc] typo actor instead of cator (#28246) 2019-11-26 09:57:22 +01:00
Robert Stoll
f974f8b8d9 [doc] typo remove superfluous a (#28245) 2019-11-26 08:13:38 +01:00
Patrik Nordwall
bb99bdb02f fix race condition in WriteAggregatorSpec, #25581 (#28242)
* sometimes failed: "WriteAggregator with delta must timeout when less than required acks"
* the DeltaNack will trigger immedediate send of Write
* seems to be a race condition of when the probe is receiving the Write
  from the DeltaNack vs the last expected DeltaPropagation
2019-11-25 17:06:27 +01:00
Patrik Nordwall
2ef50cb054 clarify async appender (#28241)
* increase queue size in prod example
* remove async from dev example
* links to ELK-stack
2019-11-25 17:06:13 +01:00
Christopher Batey
bc2d3aa4db Use embedded media driver for StressSpec (#27037)
* Use embedded media driver for StressSpec

The current setup starts a media driver for each JVM in the same
directory which is caused the cnc file to be courruped in some way
so that the client in Akka timed out waiting for it to be initialized.

This test is disabled for Artery, see
https://github.com/akka/akka/issues/21810 so all it does is startup
and then end the test right away.

Will look at enabling the test again separately.

Fixes #27030
2019-11-25 16:58:58 +01:00
Christopher Batey
b52271da1c Don't include protobuf settings for all projects #28227
Only akka-actor got the protobuf files due to the assembled jar being
added to the unmanaged jars for ease of use when importing into
Intellij. Removing that from default settings seems to have fixed it.

Fixes 

* Remove protobuf Any import from doc spec
2019-11-25 14:36:09 +01:00
Arnout Engelen
3381b3cd12 Update only jackson-core-databind from scala-steward (#28217)
The rest will follow, to avoid creating too many PR's
2019-11-25 14:03:15 +01:00
Johan Andrén
ac15cb3289
Operator docs for Source.tick (#28225) 2019-11-25 13:25:07 +01:00
Scala Steward
5e2435a424 Update sbt to 1.3.4 (#28230) 2019-11-25 11:11:29 +00:00
Patrik Nordwall
66686c3afa
Use stop supervision for PropsAdapter, #28035 (#28182)
* scaladsl.PropsAdapter and javadsl.Adapter.props should use stop supervision,
  otherwise it will restart (from classic) by default
* PropsAdapter is used by Cluster Singleton and Sharding
* also typed.ActorSystem.systemActorOf
* removed default param value in internal.PropsAdapter to make the
  decision of rethrowTypedFailure more explicit
 * rethrowTypedFailure=true is used for the child faild propagation to
   parent and only makes sense when the parent is Typed
2019-11-25 11:57:15 +01:00
Robert Stoll
adcb4a78df [doc] typo actors need instead of needs (#28224)
* [doc] typo actors `need` instead of `needs`

* typo now `takes` instead of `take`
2019-11-25 10:58:24 +01:00
Arnout Engelen
31aaa9d609
Fix type on cluster-usage page (#28228) (#28237) 2019-11-25 10:52:26 +01:00
Christopher Batey
1b68951f86 =doc: take and takeWhile (#28078)
* Switch java examples to pass in actorsystem instead of materializer
2019-11-25 10:50:41 +01:00
Johannes Rudolph
0384baa53e Small interpreter metadata fixes (#28218)
* stream: debug dot output should point `shouldPush` in the right direction

* stream: also support Pushing and Pulling states for ConnectionSnapshot

Using ShouldPull for Pushing and ShouldPush for Pulling is not quite accurate
but probably good enough for now.
2019-11-25 10:48:25 +01:00
Robert Stoll
3a15e2f9a3 fix listing, add newline beforehand (#28221) 2019-11-25 10:46:11 +01:00
Robert Stoll
39cf9399c2 [doc] typo, add missing ` (#28234) 2019-11-25 10:34:14 +01:00
Helena Edelson
cf688444b1 Change uninitialized throw of IllegalArgumentException from ClusterSharding.shardRegionProxy to IllegalStateException #28198 (#28205) 2019-11-22 15:06:23 +01:00
Johan Andrén
d385c1098a
Operator docs for Source.combine (#28195) 2019-11-22 14:42:36 +01:00
Johan Andrén
61bd3d42b6
Document and fix getAsyncCallback thread safety issues #27999 2019-11-22 13:38:06 +01:00
Taeguk Kwon
897443da40 Add omitted logPrefixSkipList in getting logger class in EventSourcedBehavior (#28168) 2019-11-22 10:17:46 +01:00