Commit graph

23421 commits

Author SHA1 Message Date
Enno Runne
857aaf9575 Typed docs: include the import in the code snippet where it is used 2019-03-26 12:03:34 +01:00
Johan Andrén
6d719e9cf7
Typed guardian startup and actor adapter simplification (#26590) 2019-03-26 08:09:58 +01:00
Helena Edelson
43bd0dc4e5
Add DeleteEventsCompleted in signal handler for logging consistency #26606 2019-03-25 12:19:53 -07:00
Helena Edelson
6a46185f87
Typed Persistence: docs / sample for deleting snapshots and events (#26603)
#26543
2019-03-25 10:26:24 -07:00
Adriaan Groenenboom
1fe5505f84 Accept TTL values of 0 in CachePolicy #26427
As per RFC spec https://www.ietf.org/rfc/rfc1035.txt (Section 3.2.1)
2019-03-25 17:28:10 +01:00
Johan Andrén
4f7b78feb0 Make typed persistence side effect internal (#26520)
* Make akka-persistence-typed SideEffect internal #26044

* Minimal docs update

* More private. Formatting.

* More public usages of SideEffect

Also: made scaladsl.Effect a pure trait for consistency

* Review feedback
2019-03-25 15:40:04 +00:00
Patrik Nordwall
482aa29a41
Merge pull request #26605 from akka/wip-26601-snap-race-patriknw
fix race condition in Running.storingSnapshot, #26601
2019-03-25 14:38:13 +01:00
Patrik Nordwall
7e24f5dfb5
Merge pull request #26585 from akka/wip-26581-SnapshotterResponse-patriknw
remove ??? in SnapshotMutableStateSpec, #26581
2019-03-25 13:42:09 +01:00
Patrik Nordwall
aff69033d5
Merge pull request #26538 from akka/wip-24687-more-persistence-tests5-patriknw
add tests for missing journal and snapshot plugin config, #24687
2019-03-25 13:41:22 +01:00
Patrik Nordwall
395b55ffec
Merge pull request #26578 from akka/wip-24687-more-persistence-tests7-patriknw
test when event handler throws during replay, #24687
2019-03-25 12:10:46 +01:00
Patrik Nordwall
0807130f74 remove ??? in SnapshotMutableStateSpec, #26581
* ??? is probably fatal error and therefore the Boxed Error
* this test should attempt to delete snasphots, but that is another issue
2019-03-25 12:09:23 +01:00
Patrik Nordwall
1a463ab248
Merge pull request #26583 from akka/wip-26580-npe-snapshotstore-patriknw
fix NPE in SnapshotStore, #26580
2019-03-25 12:01:57 +01:00
Patrik Nordwall
9d74ad11e4 add tests for missing journal and snapshot plugin config, #24687
* extract validation of persistence plugin config
  * The reason for the duplicate check in EventSourcedSettings
    is for better user experience. Fail fast before the actor is
    started.
  * The checks must still also be done when plugin is loaded, since
    that is what is used by untyped.
  * Extracted into static utility methods in Persistence
2019-03-25 11:59:19 +01:00
Johan Andrén
1a90f22fb4 Fix of the new javadoc search functionality (#26604)
Search target for classes would contain a module path part which
was undefined. Disabled with --no-module-directories
2019-03-25 11:15:07 +01:00
Patrik Nordwall
af2ac0aac8 fix race condition in Running.storingSnapshot, #26601
* When storing a snapshot, and waiting for the response, it received a
  response from a previous/concurrent delete snapshot (DeleteSnapshotSuccess)
  which it handled as a response for the save snapshot, i.e. tryUnstashOne, applySideEffects,
  and changing phase to HandlingCommands. Thereby missing the SaveSnapshotSuccess.
2019-03-25 10:21:38 +01:00
Patrik Nordwall
03897dd6e0 Replace SnapshotSelectionCriteria and SnapshotMetadata, #26536 (#26596)
* This may look like a duplicating the existing classes from untyped
  persistence without any value, but those two classes were there only
  two from untyped that were exposed in end user APIs.
* This makes the API independent of untyped.
* Those classes can be evolved (much) easier since they are not case classes.
2019-03-22 16:04:14 -07:00
Patrik Nordwall
2c1d721fb7
Merge pull request #26595 from akka/wip-26584-snap-delete-patriknw
Typed Persistence: fix snapshot deletion algorithm, #26584
2019-03-22 15:10:28 +01:00
Patrik Nordwall
1f17fa192a fix snapshot deletion algorithm, #26584
* Subtraction of sequenceNr (keepNSnapshots * snapshotEveryNEvents) was missing when
  calling internalDeleteSnapshots directly from SaveSnapshotSuccess, i.e. when not
  triggered via delete events.
* Improved the test
* Also found that the responses for deletion of events and snapshots were not
  handled in all 3 running phases. Since they are performed in the background
  they may be received in all.
2019-03-22 11:22:36 +01:00
Helena Edelson
48b0865141 Test update on params per issue suggestion, and a few minor untyped test deprecation/warning fixes. 2019-03-21 14:01:35 -07:00
Ignasi Marimon-Clos
aadaa46853 Small typos (#26575)
* Small typos

* Update akka-docs/src/main/paradox/discovery/index.md

Co-Authored-By: ignasi35 <ignasi@lightbend.com>
2019-03-20 15:40:29 +01:00
Patrik Nordwall
b76891adcc
Merge pull request #26576 from TimMoore/patch-1
Update Akka Management version to 1.0.0
2019-03-20 15:38:45 +01:00
Patrik Nordwall
ed65752bb5 test when event handler throws during replay, #24687
* and not accept wrong event before persisting it
* cleanup EventSourcedBehaviorFailureSpec
2019-03-20 15:03:01 +01:00
Patrik Nordwall
9165cb6c6b
Merge pull request #26539 from akka/wip-24687-more-persistence-tests4-patriknw
add EventSourcedBehaviorTimersSpec, #24687
2019-03-20 14:58:22 +01:00
Johan Andrén
322b07a2fd
Typed version of the ForkJoinActorBenchmark #25986 2019-03-20 14:52:00 +01:00
Patrik Nordwall
f8be7ddb6f
Merge pull request #26521 from akka/wip-24687-more-persistence-tests-patriknw
a few more persistence tests from PersistentActorSpec, #24687
2019-03-20 14:40:21 +01:00
Patrik Nordwall
875170d2cf
Merge pull request #26519 from akka/wip-26273-persistence-javadsl-patriknw
add missing API in javadsl.EventSourcedBehavior, #26273
2019-03-20 14:39:13 +01:00
Patrik Nordwall
532c204e29
Merge pull request #26557 from jroper/clarify-read-write-local
Clarified the failure conditions for Read/WriteLocal
2019-03-20 14:21:30 +01:00
Patrik Nordwall
610a89c2d0 fix NPE in SnapshotStore, #26580
* access of context.system from Future callback
* also changed import context.dispatcher, shouldn't be needed but
  rather safe than sorry
2019-03-20 13:10:52 +01:00
Tim Moore
ee0cb1578e
Update Akka Management version to 1.0.0
0.50.0 was renamed to 1.0.0-RC1 before it was released.
2019-03-20 19:56:26 +10:30
Christopher Batey
886088f03b Strict compiler settings for discovery (#26552) 2019-03-20 09:12:40 +01:00
James Roper
71084b4c96 Clarified the failure conditions for Read/WriteLocal 2019-03-20 12:13:13 +11:00
Patrik Nordwall
d681eb10ab
Merge pull request #26571 from akka/updateGenJavadoc
Update genjavadoc
2019-03-19 18:17:12 +01:00
Arnout Engelen
0139058610
Update genjavadoc
This should produce Java code that is valid enough to be processed even in the
presence of -Yrangepos #23756
2019-03-19 15:16:59 +01:00
Patrik Nordwall
157ef9929d enable serializer for ShardRegionStats, #25348 2019-03-19 15:12:13 +01:00
Johan Andrén
dffd5da3a4
Make sure actor started timer before we change time #25799 2019-03-19 14:02:50 +01:00
Arnout Engelen
b214115051
Update scalatest 2019-03-19 11:25:48 +01:00
Arnout Engelen
97d7eadb6f
Explicitly require jdk9+ for javadoc generation (#26515)
Refs #26502
2019-03-19 11:00:55 +01:00
Patrik Nordwall
a8741a696d Notice too long quarantine-after-silence config value #26512 2019-03-19 08:13:51 +01:00
Arnout Engelen
d7f12d3568 akka-distributed-data compiler warnings #26088 2019-03-19 08:12:51 +01:00
Vasilis Nicolaou
4a04eddf7d give cached value back in ddata sample(#26476) 2019-03-19 08:06:26 +01:00
Helena Edelson
3ef7bf5ef5
Typed Persistence: Rename internal.JournalInteractions for clarity #26551 (#26553)
#26551
2019-03-18 10:18:53 -07:00
Renato Cavalcanti
4d0e6669c9 Fix pattern for matching SRV service names (#26332) 2019-03-18 17:52:07 +01:00
Arnout Engelen
6f66981542
Include 'reproducible builds' sbt plugin (#26546)
This does 2 things:
* publish a 'buildinfo' report along with the project artifacts to describe
the build context and parameters
* post-process the jars to remove 'arbitrary' differences, such as jar file
ordering and timestamps.

This makes it easier to detect and explain when 2 builds of the same source
don't produce a bit-per-bit identical result. This for example can improve
our confidence that our distribution pipeline has not been compromised.
2019-03-18 17:12:21 +01:00
Johan Andrén
17c80b3be9 Race condition in lazy sink on immediate failure (#25413)
* Race condition in lazy sink on immediate failure #25410
2019-03-18 14:28:31 +01:00
Helena Edelson
d358a0c3b5 Typed Persistence: deleting snapshots / events #24698 2019-03-18 13:22:52 +01:00
Johan Andrén
440a85aef1
Wrong filename for some 2.5.20 mima excludes (#26547) 2019-03-18 13:04:21 +01:00
Johan Andrén
9f36e8e647
Expected behavior on Terminated with orElse signal handling #26518 2019-03-18 12:45:16 +01:00
Patrik Nordwall
12ca3ec08a add EventSourcedBehaviorTimersSpec, #24687 2019-03-15 12:50:33 +01:00
Patrik Nordwall
b7842e9137 add missing API in javadsl.EventSourcedBehavior, #26273 2019-03-15 12:48:49 +01:00
Patrik Nordwall
0c65635cbd a few more persistence tests from PersistentActorSpec, #24687 2019-03-15 12:46:55 +01:00