Commit graph

23853 commits

Author SHA1 Message Date
Patrik Nordwall
c14c326f95
Merge pull request #27566 from akka/mimaFor213
Check MiMa for 2.13 artifacts, too
2019-08-28 19:26:38 +02:00
Arnout Engelen
bc4a4a5837 Create a new flightrecorder instance per connection (#27577) 2019-08-28 19:19:46 +02:00
Patrik Nordwall
f9f2542a14 fix JavaDoc of ReceiveBuilder, #27536 (#27559) 2019-08-28 16:45:35 +02:00
Johan Andrén
0faf0bb94a
Don't rely on OS DNS lookup failure in spec #27031 (#27571)
Instead mock out the DNS provider and return failure to lookup immediately
2019-08-28 16:44:41 +02:00
Johan Andrén
6fd9d01b19
Circuitbreaker spec cleanup (#27560)
Test cleanup:

 * No need to use mockito, replaced with TestProbe (side effect is that it actually also
  makes some test cases more explicit in what they expect)
 * Use matchers to get reasonable failure messages
 * Use types where it makes sense
 * Remove mockito dependency from akka-actor-tests
2019-08-28 16:44:07 +02:00
Patrik Nordwall
5c0f213fba fix config in ArteryUpdSendConsistencySpec (#27575)
* was still using default, i.e. tcp
2019-08-28 13:36:59 +02:00
Johannes Rudolph
f51dc373be Handle rethrows in recover more gracefully (#27506)
The idea is that `.recover { xyz => throw newException }` is common enough
not to log an ERROR message just because we didn't catch it in the Recover stage.

On the other hand, using `mapError` can be a better choice if you just want to
map the error (but there might be other occurrences where a partial function is not
enough to avoid throwing an error from recover).
2019-08-28 10:44:02 +02:00
Helena Edelson
c03cec2979
[2.6 Docs Cleanup] Move things to new Package/Deploy/Run section (#27550) 2019-08-27 07:41:14 -07:00
Patrik Nordwall
32318141fc
doc: stylish actor-lifecycle.md, #24717 (#27543) 2019-08-27 16:16:51 +02:00
Patrik Nordwall
c074b227ab harden ClusterSingletonManagerLeave2Spec, #27555 (#27565)
* from logs it can be seen that the singleton actor on third node is started
  after 3 seconds and the expectMsg("preStart") timeout is also 3 seconds
* increasing that timeout
2019-08-27 13:19:26 +02:00
Johan Andrén
bc4c6bab13 Upgrade to reactive streams tck 1.0.3 (#27553)
* Upgrade to reactive streams tck 1.0.3

* One more dependency
2019-08-27 11:20:37 +02:00
Enno
24af722dc6 Scaladoc: link to source and canonical (#27546) 2019-08-27 11:02:15 +02:00
Johan Andrén
83a08ba4c1 Race condition in BackoffSupervisorSpec fixed #27556 (#27564)
Also cleaned up some expected log output.
2019-08-27 10:46:04 +02:00
Arnout Engelen
b1746d6258
Fix race when binding to port '0' in artery tcp (#27525)
* Fix race when binding to port '0' in artery tcp

Splitting the 'binding' and 'starting inbound streams' seems to make
it a bit easier to follow as well
2019-08-27 10:26:15 +02:00
Arnout Engelen
3c018c044f
Add monitoring section (#27486)
* Add monitoring section (#27223)

* Make it a little less sparse

* Update akka-docs/src/main/paradox/additional/monitoring.md

Co-Authored-By: Peter Vlugter <pvlugter@users.noreply.github.com>

* Further suggestions

* Update akka-docs/src/main/paradox/additional/observability.md

Co-Authored-By: Helena Edelson <helena@users.noreply.github.com>
2019-08-27 10:18:58 +02:00
Arnout Engelen
9102e6f95f
Check MiMa for 2.13 artifacts, too 2019-08-27 10:12:27 +02:00
Arnout Engelen
0357f763c3
Update sbt-reproducible-builds (#27545) 2019-08-27 09:28:05 +02:00
Arnout Engelen
6a32c00b80
Remove explicit scala-xml test dependency (#27561)
This one is old and a newer one is coming in transitively anyway
2019-08-26 16:02:48 +02:00
Johan Andrén
45c826a218
System wide materializer (#27491)
Introduces a materializer started through an extension and then an implicit
conversion for Scala turning an implicitly available ActorSystem into a
materializer. The Java APIs has been ammended with run-methods accepting
an ActorSystem.
2019-08-23 18:19:27 +02:00
Patrik Nordwall
77d1d33dbc
Merge pull request #27450 from chbatey/utilities-docs-cleanup
Clean up of utilities docs
2019-08-23 16:54:30 +02:00
Christopher Batey
d6289c7e7c Clean up of utilities docs
* Removes sections that describe language features: Futures and Duration
* Keeps section for logging and circuit breaker
* Keep logging as is for now, to be updated with the Typed SL4J logging

Creates issues for
* Documenting typed extensions https://github.com/akka/akka/issues/27448
* Future interactions in https://github.com/akka/akka/issues/27449

Refs #27223

Add redirects from removed pages to 2.5 docs

Make indexes complete and fix link

'Classic' in the title for docs for classic API's
2019-08-23 14:54:20 +02:00
Patrik Nordwall
df34e548bf
Merge pull request #27542 from akka/wip-24717-doc-apply-style2-patriknw
doc: stylish coexisting.md, #24717
2019-08-23 13:49:38 +02:00
Patrik Nordwall
b6f4e768aa
Merge pull request #27541 from akka/wip-24717-doc-apply-style1-patriknw
doc: stylish actors.md, #24717
2019-08-23 13:49:05 +02:00
Patrik Nordwall
d3fd3e6319
Merge pull request #27540 from akka/wip-24717-doc-actors-patriknw
doc: Rewrite general actors page, #24717
2019-08-23 13:48:00 +02:00
Patrik Nordwall
cf8e23be79 fix signal handler 2019-08-22 14:50:50 +02:00
Patrik Nordwall
c22b4bca40 doc: stylish coexisting.md, #24717 2019-08-22 12:14:23 +02:00
Patrik Nordwall
cd6822dec6 doc: stylish actors.md, #24717 2019-08-22 11:14:11 +02:00
Patrik Nordwall
4931c2ecef doc: Rewrite general actors page, #24717
* incorporate "A Little Bit of Theory" into general concepts
* remove "Relation to Akka (untyped) Actors"
2019-08-22 10:29:47 +02:00
Johannes Rudolph
682a76e928 streams: move lastCancellationCause helper variable to GraphStageLogic (#27531)
It seems in the previous `_lastCancellationCause = cause` caused a trait
forwarder method to be called.

Refs #27529
2019-08-21 12:43:40 +02:00
Patrik Nordwall
0d8c4c4d8f update latestPatchOf25 (master) (#27535) 2019-08-21 10:50:44 +02:00
Johan Andrén
2c9f0c9ff0
Give the large source test some more time #27497 (#27524) 2019-08-20 12:48:14 +02:00
Patrik Nordwall
e61ac07f7e
Merge pull request #27527 from akka/wip-singleton-leaving-master-patriknw
Fix singleton issue when leaving several nodes, #27487
2019-08-19 18:45:12 +02:00
Patrik Nordwall
ddb085255d Fix singleton issue when leaving several nodes, #27487 (#27488)
* Fix singleton issue when leaving several nodes, #27487

* When leaving several nodes at about the same time the new singleton
  could be started before previous had been completely stopped.
* Found two possible ways this could happen.
  * Acting on MemberRemoved that is emitted when the self
    cluster node is shutting down.
  * The HandOverDone confirmation when in Younger state,
    but that node is also Leaving so could be seen as Exiting
    from a third node that is the next singleton.

* keep track of all previous oldest, not only the latest

* Option => List
* Otherwise in BecomingOldest it could transition to Oldest
  when the previous oldest was removed even though the previous-previous wasn't removed yet

* fix failure in ClusterSingletonRestart2Spec

* OldestChanged was not emitted when Exiting member was removed
* The initial membersByAge must also contain Leaving, Exiting members

(cherry picked from commit ee188565b9f3cf2257ebda218cec6af5a4777439)
2019-08-19 15:11:49 +02:00
Arnout Engelen
c97e966f8b
Update some SBT plugins (#27502)
Including akka-paradox, to get the new banner
2019-08-19 12:29:09 +02:00
Helena Edelson
3dd8c7e7e2
Upgrade sbt-paradox-akka 0.18 -> 0.23 (#27473) 2019-08-17 09:40:12 -07:00
Arnout Engelen
34f9faf5fa
Convert 'Blocking needs Careful Management' from classic (#27498)
* Convert 'Blocking needs Careful Management' from classic

* Move triggering blocking calls to separate methods

* Remove classic examples of dispatching
2019-08-16 17:35:52 +02:00
Marcos Pereira
9caae087a2 Add configuration for all Jackson Features (#27409)
* Support configuration for Jackson MapperFeatures in Jackson Serializer

* Add JsonParser.Feature configuration support

* Add JsonGenerator.Feature configuration support

* Fix formatting issues

* Add examples for each feature configuration

* Test coverage of the override methods
2019-08-16 11:33:47 +02:00
Patrik Nordwall
16f4971f64 update to reactive-streams-tck 1.0.3-RC1 (#27513) 2019-08-16 11:07:10 +02:00
Patrik Nordwall
c4a87431be
Merge pull request #27485 from akka/removeHowToCommonPatterns
Remove 'How To' section of the docs
2019-08-16 10:56:04 +02:00
Patrik Nordwall
3dac8b9072
Merge pull request #27512 from akka/wip-jackson-2.9.9.3-patriknw
Update to jackson-databind 2.9.9.3
2019-08-16 10:55:24 +02:00
Johannes Rudolph
16033eaf5e Propagate stream cancellation causes (#27266)
* base functionality
* fix-restart-flow
* Fix subSource / subSink cancellation handling
* GraphStage-fix
* Fix ambiguity between complete and cancellation (for isAvailable / grab)
* rename lastCancellationCause
* add mima
* fix cancellation cause propagation in OutputBoundary
* Fix cancellation cause propagation in SubSink
* Add cancellation cause logging to Flow.log
* add more comments about GraphStage portState internals
* Add some assertions in onDownstreamFinish to prevent wrong usage
* Also deprecate onDownstreamFinish() so that no one calls the wrong one
accidentally
* add SubSinkInlet.cancel(cause)
* Propagate causes in two other places
* Suggest to use `cancel(in, cause)` but don't deprecate old one
2019-08-16 10:53:14 +02:00
Arnout Engelen
836d020e78
Remove 'How To' section of the docs (#27223) 2019-08-16 09:28:25 +02:00
Patrik Nordwall
911f6ab6c5 Update to jackson-databind 2.9.9.3
* a few more gadget types added to blacklist
* https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.9#micro-patches
2019-08-16 08:31:45 +02:00
Christopher Batey
6c13949aec Use protobuf3 for internal serialization (#27366)
* Only load akka protobuf serializer if protobuf on the classpath
2019-08-15 17:43:19 +02:00
James Roper
bbff92ade6 RebalanceWorker should watch shard regions (#27261)
* RebalanceWorker should watch shard regions

Fixes #27259.

The RebalanceWorker actor needs to watch the shard regions that it's
expecting a BeginHandOffAck message from, in case the ShardRegion shuts
down before it can receive the BeginHandOff message, preventing hand
off.  This can be a problem when two nodes are shut down at about the
same time.
2019-08-15 16:36:02 +02:00
Patrik Nordwall
c1eb0719da
Merge pull request #27504 from akka/wip-deprecate-persistent-fsm-patriknw
Deprecate PersistentFSM (for validation)
2019-08-15 14:14:19 +02:00
Christopher Batey
e3164916ad Deprecate PersistentFSM
Refs #26490
2019-08-15 11:17:40 +02:00
Johannes Rudolph
a19bd1597a Fix assertion in dns tests wrt changed docker json API #27489 2019-08-14 16:24:11 +02:00
Patrik Nordwall
251fdff519
Merge pull request #27484 from akka/collapseProjectAndAdditionalInformation
Collapse 'project information' and 'additional information'
2019-08-14 15:35:29 +02:00
Patrik Nordwall
f808dd0f30
Merge pull request #27494 from akka/dispatchersDoc
Move generic dispatcher docs from Classic
2019-08-14 15:19:31 +02:00