Commit graph

25218 commits

Author SHA1 Message Date
Patrik Nordwall
7348939ff4 DRY ReplicatedEventSourcedBehavior.apply (#29454)
* and change signature of withEventPublishing and withDirectReplication
2020-08-17 07:54:33 +01:00
Patrik Nordwall
cd821fe3f8 Minor adjustments to replicated es docs (#29450)
* Minor adjustments to replicated es docs

* and a few aa leftovers

* link to more examples
2020-08-17 07:54:33 +01:00
Johan Andrén
9fb76bbea4 Tagging for replicated event sourcing (#29442)
* Tagging for replicated event sourcing
* Docs improvements
* Support for currentEventsByTag in persistence testkit and test coverage for tags in replicated
2020-08-17 07:54:33 +01:00
Christopher Batey
c945fbd7a1 Java auction example (#29443) 2020-08-17 07:37:59 +01:00
Christopher Batey
742352caba Restart replication stream from correct seen seqNr (#29436) 2020-08-17 07:37:59 +01:00
Johan Andrén
4b27bc34a8 Document hot standby for replicated event sourcing (#29439) 2020-08-17 07:37:59 +01:00
Johan Andrén
bf5ec198a4 Test case for three replicated event sourced entities added (#29438) 2020-08-17 07:37:59 +01:00
Johan Andrén
b03412d5b2 Rename active active to replicated event sourcing (#29435)
* Move active active internals into the internal package

* Renaming active active to Replicated Event Sourcing

* Rename of Active Active to Replicated Event Sourcing

* Revert changes to testkit

* Java test formatting...

* Gave up on getting apidoc to link to EventSourcedBehavior and made code snippets of it

Co-authored-by: Christopher Batey <christopher.batey@gmail.com>
2020-08-17 07:37:59 +01:00
Christopher Batey
0b11ae362c PersistentRepr serializer support for metadata (#29434)
And fixing the warnings for the 2.13 build, not sure why PR
validation passes for these

The write side of the JDBC plugin works now as it
persists the PR
2020-08-17 07:37:58 +01:00
Johan Andrén
b8a1584e10 Active active journal support changes (#29421)
* Add missing serializers (and rename classes because metadata is a word)
* Add test instances for journal and snapshot support
* Method to add metadata to existing snapshotmetadata
* Better error message if replicated stream does not have metadata
* Snapshot store tck support for metadata
* Docs for tck coverage of AA metadata
2020-08-17 07:37:58 +01:00
Christopher Batey
e4f5781d65 Detect illegal access to context (#29431) 2020-08-17 07:37:58 +01:00
Johan Andrén
f63ca66e56 Active active docs mention plugin support (#29418)
* Mention specific support for active active is needed in plugins
* Align metadata name journal vs snapshot
2020-08-17 07:37:58 +01:00
Johan Andrén
7ec631d3c1 ActiveActiveSharding make it possible to use with custom envelope (#29417) 2020-08-17 07:37:58 +01:00
Johan Andrén
3d5fae809d Don't log user event toString in active active #29393 (#29416) 2020-08-17 07:37:58 +01:00
Johan Andrén
827dc14dbb EventPublishing API for Java (#29413) 2020-08-17 07:37:58 +01:00
Johan Andrén
165b39d1e0 Incorrect assumption about event ordering in test fixed (#29411) 2020-08-17 07:37:58 +01:00
Johan Andrén
a563a9b69e Make sure to gracefully stop replication streams when aa actor stops #29406 2020-08-17 07:37:58 +01:00
Johan Andrén
9830988566 Active active sharding (#29364) 2020-08-17 07:37:58 +01:00
Christopher Batey
f531d1e57d Docs and example for triggers (#29396) 2020-08-17 07:37:58 +01:00
Johan Andrén
21713bbc30 Active active java apis #29266 2020-08-17 07:37:58 +01:00
Christopher Batey
116c13677a Port CRDTs from multi dc (#29372)
* Metadata for snapshots for active active

* Port CRDTs from multi dc

* Review feedback
2020-08-17 07:37:58 +01:00
Christopher Batey
7e91428428 Metadata for snapshots for active active (#29362) 2020-08-17 07:37:58 +01:00
Christopher Batey
2c0e837183 Initial docs for active active (#29386) 2020-08-17 07:37:58 +01:00
Johan Andrén
36a8b6f24a Active active per replica journal selection (#29350)
* Support for having multiple isolated testkit journals and corresponding read journals in persistence testkit
* Read journal selection per active-active replica 
* a dedicated ReplicaId type to avoid stringly typed mismatches
2020-08-17 07:37:58 +01:00
Christopher Batey
398ab2efe0 Introduce version vectors for replicated events (#29332)
* ActiveActive: Events with metadata and events by persistence id for  (#29287)
* Introduce version vectors for replicated events

* Set concurrent on recovery

* Group together AA related fields in a published event
2020-08-17 07:37:58 +01:00
Johan Andrén
82b8d699ca Test coverage for active active published events after replay (#29335)
* Test coverage for published events after recovery
* Keep track of origin seqnrs when replaying
2020-08-17 07:37:58 +01:00
Johan Andrén
b86b6df7c7 Support persistAll for active active (#29337) 2020-08-17 07:37:58 +01:00
Patrik Nordwall
238d55a413 message adapter in ActiveActiveShardingDirectReplication (#29328)
* I don't think it's worth cheating with Any and narrow just to save
  one or two allocations given how many other things that are needed for
  sending the messages
2020-08-17 07:30:12 +01:00
Patrik Nordwall
e79f5ac3c4 better timestamp format for active-active (#29329) 2020-08-17 07:30:12 +01:00
Johan Andrén
c44302bd1e Speculative replication - step 1 (#29289)
* Step 1: general event-publishing-to-topic feature

* Step 2: an actor subscribes to the topic and forwards events to the sharded replicas

* Another half piece of the puzzle, receive the PublishedEvent in the ESB internals

* Stash published events while replaying rather than drop

* Publish on the event stream instead of a topic

* Active active actor receiving a published event

* Some smaller changes

 * Public API for published event
 * Better name for the sharding component

* Naive test for the Active Active Sharding Replication

* Java API for ActiveActiveShardingReplication

* Spelling

* Use ShardingEnvelope for publishing the event across sharding

* Fast forwarding filter stage

* Move test to testkit, enable the see-event-twice test (fails)

* Use persistence testkit journal

* Various smaller review feedback things

* Trying to figure out why duplicate event write test fails

* Missing unstash after processing published event

Co-authored-by: Christopher Batey <christopher.batey@gmail.com>
2020-08-17 07:30:12 +01:00
Christopher Batey
e98f1311f3 Alternative approach for storing metadata (#29309) 2020-08-17 07:30:12 +01:00
Christopher Batey
08182bbdeb ActiveActive: Events with metadata and events by persistence id for (#29287) 2020-08-17 07:27:57 +01:00
Christopher Batey
ad2d7e2d00 Initial prototype of active active event sourcing (#29265) 2020-08-17 07:25:34 +01:00
Chiyu Zhong
94dc84d5d0
Add random factor for CircuitBreaker (#29478)
* Multiply reset timeout with randomFactor
* add old constructor to make it binary compatible
* add scaladoc for randomFactor
2020-08-14 10:48:19 +02:00
Patrik Nordwall
4b08c7e6c3
Merge pull request #29489 from raboof/correctly-check-java-test-has-ran
Correctly check Java test has ran
2020-08-13 16:56:58 +02:00
Arnout Engelen
3b99110ea7
Correctly check Java test has ran
This check was introduced in #28402, but apparently incorrectly

Refs #29475
2020-08-13 14:14:39 +02:00
Peter Vlugter
cf0fe82c16
Handle dispatcher aliases for stash config (#29485) 2020-08-13 11:24:59 +01:00
yiksanchan
57d4368bed
Remove val from case class (#29488) 2020-08-13 11:24:34 +01:00
Johannes Rudolph
0d51b6e79b
actor: sync allModules with current set of published modules (#29487)
Refs #29351. With this fix, a version warning will be shown instead of failing
with "Serializer identifier ... is not unique"
2020-08-13 09:26:28 +02:00
Christopher Batey
4826477c36
Remove doclint from javac for docs (#29476) 2020-08-12 08:12:08 +01:00
Arnout Engelen
c41c0420ad
Update scala to 2.13.3 and silencer to 1.7.0 (#28991)
* Update scala to 2.13.3 and silencer to 1.7.0
* Also travis
* Fix various warnings
2020-08-10 12:54:38 +02:00
James Mulcahy
f7bfed02bc
Fix documentation about the way to enable the akka async dns resolver (#29468) 2020-08-10 11:06:35 +01:00
Patrik Nordwall
249af61ede
Merge pull request #29382 from JoelWee/25468-docs-merge-preferred-prioritized
Add mergePreferred, mergePrioritized docs (#25468)
2020-08-10 09:00:09 +02:00
Patrik Nordwall
991d29d482
Merge pull request #29425 from scala-steward/update/sbt-dynver-4.1.1
Update sbt-dynver to 4.1.1
2020-08-10 08:57:29 +02:00
Patrik Nordwall
f097400c92
Merge pull request #29429 from scala-steward/update/metrics-core-4.1.11
Update metrics-core, metrics-jvm to 4.1.11
2020-08-10 08:49:55 +02:00
Patrik Nordwall
95e2eb97dc
Merge pull request #29444 from johanandren/wip-banner-update
Update to paradox akka theme 0.35 to get new LB.com links
2020-08-10 08:46:38 +02:00
Patrik Nordwall
0f412c0aa0
Merge pull request #29469 from ennru/docs-deploy-rename
docs: redirect to deploying from old URL
2020-08-10 08:44:25 +02:00
Patrik Nordwall
2709fa6862
add akka-docs to nonFatalJavaWarningsFor (#29470) 2020-08-10 07:15:43 +01:00
Patrik Nordwall
686729c75b
Harden multi-dc joining, #29280 (#29346)
* Harden multi-dc joining, #29280

* failing test MultiDcJoinSpec
* require that all have seen the gossip seen for the first member in other DC
* the test also revealed that gossip wasn't propagated between DCs when
  the VectorClock was the same and only seen is different
* add a SHA-1 disgest of the seen in the GossipStatus to detect that they
  are different and that full gossip should be exchanged

* comments

* another test

* mima version
2020-08-07 17:02:31 +01:00
Enno Runne
52c005baec docs: redirect to deploying from old URL
refs https://github.com/akka/akka-management/pull/732
2020-08-07 10:56:58 +02:00