Commit graph

24394 commits

Author SHA1 Message Date
Enno
70c3cdfa97
RetryFlow: retries of individual stream elements with backouff (#27742)
RetryFlow wraps a flow with context and allows to individually retry elements. A decider function decides if another try should be made and gives the element to try with.
Retries are backed off exponentially.
Retries are limited by maxRetries.

Inspired by the work of Gilad Hoch <gilad.hoch@thomsonreuters.com> and Martynas Mickevičius <self@2m.lt>
2019-10-15 18:41:30 +02:00
Patrik Nordwall
5e61c4123d
Merge pull request #27594 from jrudolph/jr/stream-cancellation-modes
Stream cancellation modes
2019-10-15 16:00:53 +02:00
Patrik Nordwall
2b28c721d1
Merge pull request #28007 from akka/wip-osgi-patriknw
cleanup OSGi build properties
2019-10-15 15:17:45 +02:00
Patrik Nordwall
54856aecae
Merge pull request #28006 from akka/wip-link-quickstart-patriknw
remove FIXME for Quickstart link
2019-10-15 14:57:45 +02:00
Johannes Rudolph
7e6f351138
stream: add CancellationStrategy attribute to configure default stage cancellation behaviors 2019-10-15 14:24:47 +02:00
Patrik Nordwall
affb361c52 doc: minor clarification of ActorRef.toTyped (#28005) 2019-10-15 14:14:10 +02:00
Patrik Nordwall
f40b307785 use max seqNr in RecoverySuccess (#28002)
* backport from Classic
* the scenario was that the snapshot was kept but the journal was
  entirely deleted, and then it should anyway write next event
  with the sequence number from the snapshot
* doesn't look like the EventSourcedBehavior had this problem,
  but doesn't hurt to use the max
2019-10-15 14:13:40 +02:00
Patrik Nordwall
d33bc728a6 cleanup OSGi build properties 2019-10-15 13:29:43 +02:00
Patrik Nordwall
e6055b8d23 remove FIXME for Quickstart link
* https in urls
2019-10-15 13:21:00 +02:00
Johannes Rudolph
eb1236419d
stream testkit: add support for triggering and asserting cancellation with cause 2019-10-15 13:15:21 +02:00
Johannes Rudolph
28d4fb4b00
stream: refactoring: only one implementation for completeStage / cancelStage / failStage 2019-10-15 13:15:21 +02:00
Matthew Smedberg
3e71b8a8b8 Provide cancellation for CoordinatedShutdown tasks #27335 2019-10-15 13:01:13 +02:00
Christopher Batey
b5eb18a033 Document using an EventSourcedBehavior as a PersistentFSM (#27931)
Re-uses the code from the migration guide as the mgiration logic
is in adapters.

Almost seems very obvious you can do this but can't hurt to have.

* Apply suggestions from code review

Co-Authored-By: Helena Edelson <helena@users.noreply.github.com>
2019-10-15 12:22:14 +02:00
Patrik Nordwall
46fcca5f39
Add API for multi-dc Sharding/Singleton in Typed, #27705 (#27974)
* add withDataCenter in Entity, following same patterna as the role
* update cluster-dc.md, split in classic and new pages
* fix bug in ClusterSharding shouldHostShard
  * contains on String
* update multi-dc singleton sample
2019-10-15 12:20:41 +02:00
Patrik Nordwall
c83d04c1f8
Merge pull request #27978 from akka/wip-scala-2.12-simplifications-patriknw
small simplification since Scala 2.11 isn't supported
2019-10-15 11:17:54 +02:00
Patrik Nordwall
5de5dec6ee
Merge pull request #27988 from akka/wip-protobuf-3.10.0-patriknw
Update protobuf-java and protoc to 3.10.0
2019-10-15 11:09:30 +02:00
Christopher Batey
01b65550ed This -5 pads out the max level of a logger, remove when using [] (#27982)
When we use [] around the level it adds a space which then means
searching for [INFO] doesn't work. Left it in for the examples
that don't surround logger with []
2019-10-15 11:08:58 +02:00
Patrik Nordwall
50a2355ec6 inmem journal must not reset highestSequenceNr after journal cleanup, #27994 (#27995)
* add tck test (failed for exactly this)
* keep track of highest
2019-10-15 10:37:48 +02:00
Patrik Nordwall
4bd3edaa32 add missing apply for consistency types, #27997 (#27998) 2019-10-15 10:36:13 +02:00
Patrik Nordwall
4600b23c65 Handle ActorInitializationException from Classic child in Typed parent, #27970 2019-10-15 10:34:36 +02:00
Johan Andrén
3620017edf Tags from actor props goes into MDC, #27791 (#27856)
* Initialize logging things together. Save 2 fields in ActorContextAdapter (if logging isn't used)
* Dealt with bincomp by handcoding things in Deploy.
* Pass tags in remote deploy messages (serialization)
* Docs plus signature that works for Java API
* Allow tags to be empty or else we can't create an `.empty`
2019-10-14 17:57:11 +02:00
Patrik Nordwall
4e8a5d333b
More structured logger names, #27922 (#27934)
* some cluster logging improvements
* most logger names are actually good, when using ActorLogging since
  config can be setup on the package (prefix)
* override logSource when StageLogging is used
* replace system.log with more specific logger
2019-10-14 17:55:12 +02:00
Patrik Nordwall
6557967d88
Merge pull request #27993 from akka/wip-lastSequenceNr-patriknw
lastSequenceNr should reflect the snapshot sequence
2019-10-14 16:40:08 +02:00
Johan Andrén
6190f0bc58 Provide Scheduler implicitly from implicit typed actorsystem (#27986) 2019-10-14 16:33:06 +02:00
Tanju Erinmez
9d21207f41 lastSequenceNr should reflect the snapshot sequence and not start with 0 when journal is empty (#27496)
* lastSequenceNr should reflect the snapshot sequence number and not start
at 0 when there was no journal to begin with.

* Use LevelDBJournal in Test Case

The test case now properly simulates a recovery from a snapshot without
a journal.

(cherry picked from commit df2a1d8a52e13aa09edd20bcf95ff617cd7acf9c)
2019-10-14 14:51:09 +02:00
Patrik Nordwall
78281ba92f
doc: improvements to Distributed Data docs (#27971)
* doc: improvements to Distributed Data docs

* leftover

* java formatting
2019-10-14 14:03:04 +02:00
Johan Andrén
b5400975e5 Upgrade to Config 1.4.0 (#27985) 2019-10-14 11:55:56 +01:00
Scala Steward
b50ebde456 Update aeron-client, aeron-driver to 1.22.1 (#27979) 2019-10-14 11:55:05 +01:00
Scala Steward
1649bf5508
Update sbt to 1.3.3 2019-10-14 12:06:47 +02:00
Scala Steward
63df007685 protoc version 3.10.0 2019-10-14 11:11:21 +02:00
tison
853b5b62a1 Remove ActorSubscriber #26187 2019-10-14 10:41:24 +02:00
Patrik Nordwall
ac08ca8729 small simplification since Scala 2.11 isn't supported 2019-10-11 16:55:30 +02:00
Patrik Nordwall
bb622e639b
Merge pull request #27977 from johanandren/wip-unbreak-EventSourcedSequenceNumberSpec
Two new test cases missed the PersistenceId.ofUniqueId
2019-10-11 16:37:51 +02:00
Patrik Nordwall
fb1dc73da0
Merge pull request #27959 from akka/wip-doc-minor-singleton-patriknw
doc: minor improvements to cluster-singleton.md
2019-10-11 16:18:41 +02:00
Johan Andrén
f7a88447ca Two new test cases missed the PersistenceId.ofUniqueId 2019-10-11 15:46:26 +02:00
Patrik Nordwall
6f48dece1b
Merge pull request #27947 from johanandren/wip-27944-runWith-javadsl-coverage
API compile coverage for Java DSL runWith
2019-10-11 15:44:57 +02:00
Johan Andrén
2f7dfbfc01 Last sequence number fix (#27964)
* Reproducer for the bug

* Separate state when waiting for snapshot write #27935

Allows for accessing seqNr while snapshot in progress
2019-10-11 13:45:40 +01:00
Patrik Nordwall
ca7cad3a6d fix TlsSpec on JDK 11, #27956 (#27961)
* one less cause wrapping in JDK 11
2019-10-11 10:11:06 +02:00
Patrik Nordwall
f0e4ece497
Merge pull request #27958 from SageM/fix-wording-in-documentation
Fix wording
2019-10-11 09:31:02 +02:00
Christopher Batey
40bf6bf5d5 Rename LoggingEventFilter to LoggingTestKit (#27888) 2019-10-11 08:38:20 +02:00
Patrik Nordwall
c8570f277d doc: minor changes to sharding docs (#27967) 2019-10-10 23:27:08 -06:00
SageM
190ab3f0e7 Fix wording
Update akka-docs/src/main/paradox/stream/stream-parallelism.md

Co-Authored-By: Helena Edelson <helena@users.noreply.github.com>
2019-10-10 17:00:13 +02:00
Christopher Batey
8c70430d2f Document typed extensions (#27946) 2019-10-10 16:45:17 +02:00
Patrik Nordwall
34096e671d
Fail startup if mixed versions are used, #27965 (#27966)
* good to make it more strict in Akka 2.6.0
* possibility to opt out via config
* migration guide
  * clarification of why
  * don't mention opt-out in migration guide because it shouldn't be abused
2019-10-10 16:31:51 +02:00
Patrik Nordwall
e40a2591d3
Merge pull request #27811 from akka/wip-more-deprecation-2-patriknw
Deprecate JavaLogger (java.utl.logging)
2019-10-10 16:30:22 +02:00
Arnout Engelen
9db8fc6cb5 Avoid using mockito in akka-cluster-sharding (#27845) 2019-10-10 07:38:56 -06:00
Patrik Nordwall
832510208d missing barrier in RemoteFeaturesSpec, #27838 (#27963) 2019-10-10 06:19:25 -06:00
Patrik Nordwall
bb6d6365b1
Scaladoc improvements (#27929)
* private[akka] visibility on some internal classes
  * found via unidoc
* fix Scaladoc links
2019-10-10 14:17:01 +02:00
Patrik Nordwall
544c5fa17c
Merge pull request #27952 from scala-steward/update/aeron-client-1.22.0
Update aeron-client, aeron-driver to 1.22.0
2019-10-10 14:10:27 +02:00
Scala Steward
36e4cbcb79 Update agrona to 1.0.8 (#27905) 2019-10-10 14:09:56 +02:00