Commit graph

55 commits

Author SHA1 Message Date
Arnout Engelen
34df60a22f
some minor wording updates (#31326) 2022-04-11 16:13:47 +02:00
Renato Cavalcanti
7abc41cf4e
update copyright year to 2022 (#31057) 2022-02-04 12:36:44 +01:00
Arnout Engelen
c2bd4c196a
Improve InmemPersistentActorSpec stability
Intended to improve #30498
2021-08-16 15:25:01 +02:00
Ignasi Marimon-Clos
cb97ae1240
Stabilise InmemPersistentActorSpec (#30499) 2021-08-06 18:44:26 +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
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
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
Helena Edelson
6bf20f4117 Update all copyright headers to 2020 after new year's #27881 (#28434) 2020-01-02 13:24:59 +01:00
Johan Andrén
38e63a0e41 akka-persistence compiler warnings as fatal errors (#26654) 2019-04-05 14:43:23 +02: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
Patrik Nordwall
0c65635cbd a few more persistence tests from PersistentActorSpec, #24687 2019-03-15 12:46:55 +01:00
Auto Format
75579bed17 format source with scalafmt, #26511 2019-03-15 10:23:46 +01:00
Auto Format
ce404e4f53 format source with scalafmt 2019-03-11 16:58:55 +01:00
Patrik Nordwall
5c96a5f556 replace unicode arrows
* ⇒, →, ←
* because we don't want to show them in documentation snippets and
  then it's complicated to avoid that when snippets are
  located in src/test/scala in individual modules
* dont replace object `→` in FSM.scala and PersistentFSM.scala
2019-03-11 16:58:51 +01:00
kerr
bdc90052aa Update headers from 2018 to 2019 once for all. (#26165)
* Add CopyrightHeader support for sbt-boilerplate plugin.
* Add CopyrightHeader support for `*.proto` files.
* Add regex match for both `–` and `-` for CopyrightHeader.
* Add CopyrightHeader support for sbt build files.
* Update copyright from 2018 to 2019.
2019-01-02 11:55:26 +01:00
kerr
fafc59b19d update headers to regular comment (#25807) 2018-10-29 05:19:37 -04:00
Patrik Nordwall
9e66f7121f Enforce valid seqnr for deletes, #25487 (#25488) 2018-08-20 15:14:56 +09:00
kenji yoshida
5b3b191bac Remove procedure syntax (#25362) 2018-07-25 13:38:27 +02:00
Prada Souvanlasy
46c662965f fix #23618 : Support for persistence dynamic configuration at runtime (#23841) 2018-03-26 13:52:31 +02:00
Patrik Nordwall
11f2ef5784
Merge pull request #24508 from psliwa/patch-1-defer-method
Adding defer method to PersistentActor
2018-03-21 13:41:51 +01:00
ryota-sakamoto
6fa74789ce Exception from receiveRecover should stop the PersistentActor #24192 2018-02-21 17:20:52 +01:00
piotr.sliwa
2f6deace13 Adding defer method to PersistentActor 2018-02-20 23:30:56 +01:00
Christopher Batey
009214ae07
Update copyright to 2018 (#24241) 2018-01-04 17:26:29 +00:00
Nafer Sanabria
1dffa344c4 Fail fast on empty string persistenceId in PersistentActor (#24239) 2018-01-03 22:22:44 +01:00
ortigali
5ee25d9d40 customise test for race between GetState and persistAsync handler #22052 2017-01-26 19:11:08 +05:00
Philippus Baalman
6c7085252a extended copyright into 2017 2017-01-04 17:37:15 +01:00
Johan "Party Cannon" Andrén
3fe131652f Fail fast on null persistenceId in PersistentActor #22025 2016-12-16 16:54:53 +01:00
ortigali
ef1e0e01a2 =per Allow persisting events when recovery has completed (#21893)
* be able to persist events that happen during recovery, #21736

* prohibit persiting events during recovery, #21736

* change error message #21736
2016-12-14 13:32:27 +01:00
Nafer Sanabria
80d48ead5a per bugfix #21824 pass the message which cause restart in PersistentActor 2016-11-17 14:11:34 +01:00
Johan Andrén
62e30b3c08 Update copyrights and links to the new company name #19851 2016-02-23 12:58:39 +01:00
Prayag Verma
b7783968a0 =pro #19068 All copyrights ranges and single years updated to a range ending in 2016 2016-01-25 10:20:30 +01:00
Konrad Malawski
4a3bc59c48 =per #18728 allow persistAll(Nil) 2015-10-26 14:42:33 -07:00
Patrik Nordwall
d2cc69e65a =per #18497 Handle large deleteMessages ranges in leveldb journal
* creating a large scala range is very inefficient and also impossible
  above Int.MaxValue, which can happen if deleteMessages(Long.MaxValue)
  is used
* solved by capping the upper seq nr by the highest know seq nr
* similar issue in inmem journal
2015-09-17 14:04:10 +02:00
Johan Andrén
4d95fd569d =per #16528 improved persistent actor stash test coverage
Existing tests covering stashin in PersistentActor moved to separate
test class.

New async write journal for tests SteppingInmemJournal allows to
control the async journal operations tightly from a test. Each journal
operation requires a token which the test then can wait for consumption of.
2015-09-16 15:27:43 +02:00
Patrik Nordwall
6d0416f0aa !per #17918 Make deleteMessages reply msgs public 2015-08-13 17:13:13 +02:00
Konrad Malawski
f9201c7e05 Merge pull request #17960 from ktoso/wip-additional-test-ktoso
=act,per additional test for onTransition behaviour when initialize() called
2015-07-14 15:51:28 +02:00
Konrad Malawski
5d746b40b1 =act,per additional test for onTransition behaviour when initialize() called 2015-07-10 00:52:26 +02:00
Konrad Malawski
874d07c0ae !per #17518 harmonize and document failure handling in persistence
+ added tests for all failure scenarios (callbacks)
2015-07-07 14:50:42 +02:00
Konrad Malawski
33fbfec222 !per,doc,sam #17574 #17626 make recovery a method, move lambda samples
+ LambdaDoc samples now in the docs project
= simplified internal state by removing recoveryPending
= recovery is now triggered in around* method, so user is free to use
  preStart freely - recovery works even if one forgets to call super on
  preStart
2015-06-30 16:01:52 +02:00
Konrad Malawski
83e931ea7e Merge pull request #17828 from ktoso/wip-nested-persist-ktoso
~per #15640 support nested persist calls
2015-06-26 12:53:16 +02:00
Patrik Nordwall
77df1372ad +per #17799 Fix refactoring bug in deleteMessages
* add missing test
* use DeleteMessagesFailure and add onDeleteMessagesFailure (logging)
2015-06-26 12:05:38 +02:00
Konrad Malawski
a59c9f73b6 =per #15640 support nested persist/persistAsync 2015-06-26 10:54:32 +02:00
Patrik Nordwall
8c47e01e9d !per #15377 Mandate atomic writes for persistAll, and support rejections
* changing Plugin API for asyncWriteMessages and writeMessages
* passing explicit AtomicWrite that represents the events of
  persistAll, or a single event from persist
* journal may reject events before storing them, and that
  will result in onPersistRejected (logging) and continue in the
  persistent actor
* clarified the semantics with regards to batches and atomic writes,
  and failures and rejections in the api docs of asyncWriteMessages
  and writeMessages
* adjust the Java plugin API, asyncReplayMessages, doLoadAsync
2015-06-25 15:28:37 +02:00
Patrik Nordwall
74b97b3bd4 !per #15644 Rename persist(seq) to persistAll 2015-06-16 15:26:48 +02:00
Patrik Nordwall
d2a00d3b98 Merge pull request #16255 from leonidb/master
+per #15279 FSM for PersistentActor
2015-06-01 13:13:47 +02:00
leonidb
09b6abd614 +per #15279 FSM for PersistentActor 2015-05-29 18:30:38 +03:00
Konrad Malawski
d782cf59af !per #16797 rename defer to deferAsync, remove Seq version 2015-05-28 01:37:38 +02:00
Julian Tescher
00f6a58e7c Changes all occurances of Typesafe copyright to extend to 2015 2015-03-10 14:12:19 -07:00
Patrik Nordwall
c566d5a106 per #15423 Remove deprecated features from akka-persistence
* remove channels
* remove View
* remove Processor
* collapse the complicated internal state management
  that was spread out between Processor, Eventsourced and Recovery
* remove Recovery trait, this caused some duplication between Eventsourced
  and PersistentView, but but the enhanced PersistentView will not be based
  on recovery infrastructure, and therefore PersistentView code will be replaced anyway
* remove PersistentBatch
* remove LoopMessage
* remove deleteMessages of individual messages
* remove Persistent, PersistentRepr and PersistentImpl are kept
* remove processorId
* update doc sample code
* note in migration guide about persistenceId
* rename Resequencable to PersistentEnvelope
2014-12-12 16:18:47 +01:00