Commit graph

24340 commits

Author SHA1 Message Date
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
Patrik Nordwall
0215d0543c add Java API for DistributedPubSubMediator.Count, #27728
* similar naming and class structure as existing getTopicsInstance
2019-11-22 10:15:58 +01:00
Patrik Nordwall
a5c8c352e1
Merge pull request #28187 from ygree/interpret-unstashed-interceptor
Add interceptors for interpretUnstashedMessage and onReplayingSnapshot.
2019-11-22 09:55:49 +01:00
Robert Stoll
8d9758580f [doc] typo add missing you (#28222) 2019-11-22 09:46:46 +01:00
Robert Stoll
6d9bfa45eb [doc] typo remove superfluous the (#28223) 2019-11-22 09:46:15 +01:00
Johan Andrén
b35dbb9912 Remove scoverage since we don't really use it (#28220) 2019-11-21 06:41:41 -08:00
Fabio Tiriticco
041b6243a5 Add docs for stream operator Sink.collection (#28210) 2019-11-21 14:29:20 +01:00
Arnout Engelen
949ee7ea21 Don't update scalafmt from scala-steward (#28216)
(as discussed in Athens)
2019-11-21 12:20:38 +00:00
Patrik Nordwall
1eb1c03918 move mima filter to 2.6.0 (#28214) 2019-11-21 11:18:18 +01:00
Piotr Lewandowski
d90bfc6a0e 27729 consistent hashing routing (#28141) 2019-11-21 09:23:59 +01:00
Christopher Batey
4bf94fee2d
Dump name server logs if resolve fails (#28192)
* Dump name server logs if resolve fails

* Revert error check
2019-11-20 16:59:46 +00:00
Christopher Batey
ffde39c5c3
Fix race condition in print tree (#28191) 2019-11-20 16:58:52 +00:00
Helena Edelson
1da15d99b8
Reconsider cluster.role.<role-name>.min-nr-of-members fallback #28177 (#28203) 2019-11-20 08:07:08 -08:00
Yury Gribkov
9fabd36fb5 Add interceptors for interpretUnstashedMessage and onReplayingSnapshot. 2019-11-20 08:08:06 -05:00
Patrik Nordwall
6185fbde18 doc: Broadcast Stream operator, #25468 (#28091)
* doc: Broadcast Stream operator, #25468

* example intro text
2019-11-20 13:03:03 +01:00
Christopher Batey
35dbfd7883 Don't log AskTimeout strack trace for dns resolve timeout (#28120)
* Don't log AskTimeout strack trace for dns resolve timeout

* Reduce error log to info when there are more servers to try
2019-11-20 12:19:31 +01:00
Christopher Batey
0edf75b884 Use specific exception for discovery timeout (#28152)
* Use specific exception for discovery timeout

Unfortunately, as the API is the SPI we can't do this once for all implementations

Fixes #28149
2019-11-20 12:15:31 +01:00
Helena Edelson
ec7be4922f Mention no implicit sender in coexistence.md #28074 (#28173)
* Mention no implicit sender in coexistence.md #28074
2019-11-20 11:56:35 +01:00
Enno
70766dfa18 Docs: Remove extra type params in RetryFlow signature (#28097)
* Docs: Remove extra type params in RetryFlow signature

* Add link to API docs
2019-11-20 11:48:30 +01:00