Commit graph

541 commits

Author SHA1 Message Date
Patrik Nordwall
066bd2a91b
remove failing PersistentFSMTest, #30820 (#31128)
* annoying test failures of deprecated feature
* keeping example that is used in docs
2022-02-15 16:29:50 +01:00
Peter Vlugter
e5a2db132e
Update headers for cross-compiled sources (#31121) 2022-02-11 13:41:21 +01:00
Renato Cavalcanti
7abc41cf4e
update copyright year to 2022 (#31057) 2022-02-04 12:36:44 +01:00
Patrik Nordwall
4375fe6bd7
Change number of slices to 1024 (#30990)
* more flexible with some more
2021-12-15 14:22:03 +01:00
Arnout Engelen
9b174a31a6
scala3: remove runtime trait ordering check (#30904) 2021-11-18 14:44:43 +01:00
Francisco Lopez-Sancho
3db7cf9ba5
fix: JavaSerializationException on akka.persistence.journal.Tagged with inmem (#30900)
JavaSerializationException on akka.persistence.journal.Tagged
for test with `akka.persistence.journal.inmem` plugin
2021-11-18 09:23:23 +01:00
Patrik Nordwall
e51c0a92ed
Add slice utilities to Persistence (#30879)
* Add slice utilities to Persistence
* These will be used by a persistence plugin when it supports
  eventsBySlices
* Good to have these implementations in a single place in Akka rather
  than duplicating it in different plugins
* The numberOfSlices is hardcoded to 128 with the motivation described in
  doc comment, but by placing it in the Persistence extension we have the
  possiblity to make it configurable in the future if that is necessary
2021-11-14 18:56:53 +01:00
Patrik Nordwall
e0ce825a55
Remove ApiMayChange from Durable State (#30733) 2021-10-06 17:22:07 +02:00
Andrei Arlou
8db6362d71
Fix external links - fourth iteration (#30697) (#30736) 2021-10-04 12:13:43 +02:00
Arnout Engelen
6c2ed1b17d
Build akka-persistence-query on scala3 (#30663)
* Build akka-persistence-query on scala3

* Build and test on scala3 on GHA

* scalafmt

* Also akka-persistence-shared

* Add mima exclusions

* Add type to implicit, not to probe
2021-09-10 14:53:57 +02:00
Arnout Engelen
5c4e1f271e
Fix MiMa exclusions for 2.6.16 (#30665)
These were originally added as exclusions relative to 2.6.15
in #30406, but we released 2.6.16 before merging.
2021-09-08 14:27:13 +02:00
Ignasi Marimon-Clos
6275c06cca
akka-persistence compiling on Scala3 (#30406)
Co-authored-by: Ignasi Marimon-Clos <ignasi@lightbend.com>
Co-authored-by: Arnout Engelen <arnout@bzzt.net>
2021-09-08 13:00:51 +02:00
Patrik Nordwall
a1cff3044e
Harden PersistentActorBoundedStashingSpec, #30619 (#30629)
* make sure that it's fully started first, otherwise the first
  command might be stashed and also delivered to deadLetters
2021-09-03 16:57:44 +02:00
Arnout Engelen
c2bd4c196a
Improve InmemPersistentActorSpec stability
Intended to improve #30498
2021-08-16 15:25:01 +02:00
Patrik Nordwall
78a549c7a6
Merge pull request #30521 from akka/wip-gh-actions-patriknw
Add (some) GH Actions nightly jobs
2021-08-11 13:27:09 +02:00
Ignasi Marimon-Clos
3a76aa1ad2 Migrate PRValidation to GHActions
* Set sbtopts inline
* Ignore flaky, obsolete test
* Adds concurrency limit (run only latest commit
* Don't run scala3 workflows until ready to merge
* split publishLocal from pr validation
2021-08-11 11:26:04 +02:00
Patrik Nordwall
59eabdd2e0
Merge pull request #30444 from akka/dev-durable-state
Introducing DurableStateBehavior (#30277)
2021-08-10 17:02:30 +02:00
Ignasi Marimon-Clos
cb97ae1240
Stabilise InmemPersistentActorSpec (#30499) 2021-08-06 18:44:26 +02:00
Debasish Ghosh
dbafc24fda Misc changes as suggested in the PR review 2021-08-02 17:00:11 +05:30
Patrik Nordwall
942982a900 sprinkle ApiMayChange over durable state 2021-07-08 15:55:12 +02:00
Raymond Roestenburg
c4903ebe1e Moved inmem temporarily to query because of DurableStateStoreQuery.
* move to akka-persistence-testkit
* Delegating to scaladsl InMemDurableStateStore.
* InMemDurableStateStore -> PersistenceTestKitDurableStateStore
* implement changes query
2021-07-08 14:19:09 +02:00
Debasish Ghosh
b1f5aa88e3
Changed seqNr to revision for all durable state APIs and implementations (#30344) 2021-06-28 18:58:35 +05:30
Patrik Nordwall
cbf717b6fc fix default DurableStateStore pluginId and config, #30277 2021-06-04 15:50:21 +02:00
Debasish Ghosh
78ff85d0fb Initial implementation of DurableStateStore and one test 2021-06-03 14:41:02 +02:00
Patrik Nordwall
2168cec497 First implementation of DurableStateBehavior, #30277
* implementation is based on a copy of the EventSourcedBehavior and then
  refactoring all things that are not needed or different such as:
  * remove replicated event sourcing
  * remove ReplayingEvents recovery phase
  * remove retention and snapshotting
  * remove SnapshotSelectionCriteria and snapshots
  * remove PersistAll
  * remove event handler, event types
  * rename EventSourced
  * single static tag
  * DurableStateAdapter
  * DurableStateSignal

* DurableStateStore plugin api with similar extension mechanism as query plugins
  * DurableStateStore, DurableStateUpdateStore
  * DurableStateStoreQuery

* note that the DurableStateStore can be pretty useful for other things also
2021-06-03 13:21:55 +02:00
Johan Andrén
e43f2be6cd
Byte array allocation/copy hunt (#30266)
* Loads of byte array copy/allocations squashed
* Use a central place for the proto unsafe instead of ad hoc
* Extra docs on serializer toBinary about not mutating bytes after returned
* Found some more toArray:s that can potentially benefit from being unsafe
* Array handed to user callback so extra docs needed
* Unsafe reading of underlying bytes of strings fixed
2021-06-02 17:28:37 +02:00
Johan Andrén
d4fdf5639e
Deprecate LevelDB (#30213)
* Deprecate LevelDB

In preparation of moving into the testing infra (or deleting it completely) at some distant future point in time

* Remove leveldb tests where there also is an inmem one

* More details in deprecation text, recommend inmem + journal proxy for testing etc.
2021-06-02 13:37:52 +02:00
Patrik Nordwall
e09de4fc84
Possibility to make snapshot load failures non-fatal, #30234 (#30238)
Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be>
2021-05-31 21:50:28 +02:00
Johan Andrén
c5655a9ce6
Upgrade to Scala 2.13.5 (#30072) 2021-03-30 20:57:23 +02:00
Nicolas Vollmar
278a36d036
Adds explicit ! method (#30004)
Needed for Scala 3
2021-02-10 13:20:29 +01:00
Andrea Peruffo
da70e0ccd4
Scala 3 cross compatible akka-actor / akka-testkit / akka-actor-tests (#29956)
* Remove @switch when it doesn't take effect
* Use ActorRef.noSender
* Minor tweaks to SchedulerSpec
* Disambiguate TypedActor for Scala 3
* Bump ScalaTest to a version compatible with Scala 3
* Bump ScalaCheck
* Disambiguate Event in SupervisorHierarchySpec
* Scala 3 compatible EventBusSpec
* Prevent private unused variables to be erased by Scala 3
* Bump mockito
* Explicit actorRef2Scala import
* restore original .scalafix.conf
* Scala 3 compatible tailrec
* Reminder to re add switch annotation in case
* Move to nowarn instead of silencer
* Bump to Scala 2.12.13
* Cross compatible annotations
* fix docs generation
* adapt the build for Scala 3
* fix errors but bus
* remove more SerialVersion from trait
* scalacheck only from scalatest
* cross-compile akka-actor-tests
* restore cross-compilation
* early initializers workaround
* scalacheck switch
* cross compatible FSM.State class
* cross compatible LARS spec
* Change results to pass LineNumberSpec
* fix stackoverflow in AsyncDnsResolverIntegrationSpec
* FSM.State unapply
* fix Scala 2.13 mima
* SerialVersionRemover compiler plugin
* removed unused nowarns
2021-02-01 16:38:29 +01:00
Arnout Engelen
31f654768f
Update copyright to 2021 2021-01-08 17:55:38 +01:00
ohze.net
9416dedad7
Use scalafix to update scala 2.13.3, silencer 1.7.0 (#29367) 2020-12-09 09:20:13 +01:00
Josep Prat
12513ec7df
Normalize Event Sourcing wording #29577 (#29856) 2020-12-07 08:41:43 +01:00
Patrik Nordwall
6becd8e0ee
Merge pull request #29539 from akka/wip-27786-setDeliverySnapshot-patriknw
Fix time in AtLeastOnce.setDeliverySnapshot, #27786
2020-09-07 15:15:47 +02:00
Patrik Nordwall
cd8d5c5d08 Fix time in AtLeastOnce.setDeliverySnapshot, #27786
* to be consistent with internalDeliver when recoveryRunning
2020-09-01 12:08:05 +02:00
Christopher Batey
9ba9571b4a Ignore java warnins in persistence typed and mima
Warnings are from protobuf
2020-08-17 09:32:22 +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
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
Christopher Batey
7e91428428 Metadata for snapshots for active active (#29362) 2020-08-17 07:37:58 +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
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
Arnout Engelen
327e16980d
Make warnings in Java code fatal (#28402) 2020-08-04 13:47:38 +02:00
Patrik Nordwall
d2afff6bfc
update protobuf 3.11.4
* supposed to be more native image friendly for Cloudstate
2020-05-06 11:05:30 +02:00
kerr
0e4d41ad33
+build Add sort imports support. (#28780)
* Add scalafix plugin for jdk 9.
* Add command alias sortImports.
* Excludes some sources from SortImports.
* Update SortImports to 0.4.0
* Sort imports with `sortImports` command.
2020-04-27 14:32:18 +02:00
ohze.net
ea7205eaf7
dotty phase 2: scalafix ExplicitNonNullaryApply (#28949)
* scalafix ExplicitNonNullaryApply prepare

+ Temporarily use com.sandinh:sbt-scalafix because scalacenter/scalafix#1098
+ Add ExplicitNonNullaryApply rule to .scalafix.conf
+ Manually fix a NonNullaryApply case in DeathWatchSpec that cause
  `fixall` fail because ExplicitNonNullaryApply rule incorrectly rewrite
  `context unbecome` to `context unbecome()` instead of `context.unbecome()`

* scalafix ExplicitNonNullaryApply

fix by enabling only ExplicitNonNullaryApply rule in .scalafix.conf then:
```
% sbt -Dakka.build.scalaVersion=2.13.1
> fixall
```

* scalafmtAll

* Revert to ch.epfl.scala:sbt-scalafix

Co-authored-by: Bùi Việt Thành <thanhbv@sandinh.net>
2020-04-27 12:31:16 +02:00
Bùi Việt Thành
02b9b30354 scalafix ExplicitResultTypes - for implicit members 2020-04-20 17:59:50 +07:00