Commit graph

36 commits

Author SHA1 Message Date
Patrik Nordwall
90d589ec43 Optimized recovery #25072
* Optimize LoadSnapshot if toSequenceNr == 0, i.e. SnapshotCriteria.none,
  then no need to involve the snapshot store
* Optimize ReplayMessages if toSequenceNr == 0, i.e. Recovery.none,
  then no need to do asyncReplayMessages, but asyncReadHighestSequenceNr
  is still needed
* should still load snapshot if critera != none and toSeqNr == 0,
  weird case for saving/loading snapshots with seqNr 0
2018-07-11 10:07: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
Jimin Hsieh
3685ce619e Remove some of Unused import warning (#24750)
* Remove `Unused import` of `akka-actor-typed`

* Remove `Unused import` of `akka-actor-typed-tests`

* Remove `Unused import` of `akka-stream-tests`

* Remove `Unused import` of `akka-persistence`

* Remove `Unused import` of `akka-persistence-typed`

* Remove `Unused import` of `akka-cluster-typed`

* Remove `Unused import` of `akka-cluster-sharding-typed`

* Format source code
2018-03-20 12:01:15 +09:00
Konrad `ktoso` Malawski
563c7fbcf0 Issue 24594: Integration with sbt-headers and initial header population 2018-03-13 15:45:55 +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
Patrik Nordwall
11d628d27f enforce right order of Timers and PersistentActor trait, #24076 (#24081)
* the order was also wrong in the AbstractPersistentActorWithTimers
* mima complains about this change for AbstractPersistentActor and
  AbstractPersistentActorWithAtLeastOnceDelivery, but I think it is ok
2017-12-05 14:24:56 +09:00
Niko Will
fe34dd163c
Fix typos in PersistentActor.scala #23962
I found some typos in PersistentActor.scala and fixed them.
2017-11-10 15:26:16 +01:00
Patrik Nordwall
5f059d18b5 Add AbstractPersistentActorWithTimers, #23652 (#23653) 2017-09-19 13:04:09 +02:00
Konrad `ktoso` Malawski
1f63ebf911 =per #23042 Recover.none should immediately carry None snapshot crit (#23043)
* =per #23042 Recover.none should immediately carry None snapshot crit

* Update migration-guide-2.4.x-2.5.x.md
2017-05-29 16:04:43 +02:00
Richard Imaoka
e82d2c2817 Update deferAsync doc #20873 2017-03-30 11:34:09 +02:00
Johan Andrén
8b5018ba21 Fix AbstractPersistentActor ambiguity with Scala 2.12 #22218 2017-02-20 14:50:25 +01:00
Patrik Nordwall
a9198880ce remove deprecated persist method, #21423
* superseded by persistAll
2017-01-24 13:35:51 +01:00
Patrik Nordwall
4bd6b7aab1 improve AbstractActor, #21717
* Receive class that wraps PartialFunction, to avoid
  scary scala types
* move AbstractActorContext to AbstractActor.ActorContext
* converting docs, many, many UntypedActor
* removing UntypedActor docs
* add unit test for ReceiveBuilder
* MiMa filters
* consistent use of getContext(), self(), sender()
* rename cross references
* migration guide
* skip samples for now
* improve match type safetyi, add matchUnchecked
  * the `? extends P` caused code like this to compile:
    `match(String.class, (Integer i) -> {})`
  * added matchUnchecked, since it can still be useful (um, convenient)
    to be able to do:
    `matchUnchecked(List.class, (List<String> list) -> {})`
* eleminate some scala.Option
  * preRestart
  * findChild
  * ActorIdentity.getActorRef
2017-01-23 18:30:52 +01:00
Philippus Baalman
6c7085252a extended copyright into 2017 2017-01-04 17:37:15 +01:00
Patrik Nordwall
675e137d06 =act let onReceive throw Throwable, #20231 (#20781)
* I also tried to change the lifecycle methods (e.g. postStop) but
  that would break source compatibility for code that called super.postStop
2016-07-05 17:58:33 +02:00
Johan Andrén
896ea53dd3 recovery timeout for persistent actors #20698 2016-06-03 14:17:41 +02:00
Björn Antonsson
c66ce62d63 Update to a working version of Scalariform 2016-06-02 22:12:36 +02:00
Wojciech Langiewicz
2cdf447f6e =doc fix scaladoc warnings #18500 2016-03-16 09:18:39 +01:00
Wojciech Langiewicz
afce1b7529 fixing scaladoc warnings reported by jenkins 2016-03-10 13:05:32 +01:00
Johan Andrén
62e30b3c08 Update copyrights and links to the new company name #19851 2016-02-23 12:58:39 +01:00
Roland Kuhn
2f9cc7d04f Merge pull request #19626 from MQ-EL/master
=per #19551 support stash overflow strategy
2016-02-16 13:50:40 +01:00
qian miao
952d768693 =per #19551 support stash overflow strategy 2016-02-15 15:27:15 +08: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
Patrik Nordwall
6d0416f0aa !per #17918 Make deleteMessages reply msgs public 2015-08-13 17:13:13 +02:00
Jeroen Gordijn
188d5836d3 +per #18032 Removed final from all persist & deferAsync methods
This opens PersistentActor for extension.
2015-08-10 11:00:29 +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
Patrik Nordwall
450a43e5dd Merge pull request #17742 from akka/wip-15644-persist-seq-patriknw
!per #15644 Rename persist(seq) to persistAll
2015-06-18 11:35:03 +02:00
Patrik Nordwall
6d26b3e591 !per Make persistent failures fatal
* remove PersistentFailure and RecoveryFailure messages
* use stop instead of ActorKilledException
* adjust PersistentView
* adjust AtLeastOnceDeliveryFailureSpec
* adjust sharding
* add BackoffSupervisor
2015-06-17 15:49:47 +02:00
Patrik Nordwall
74b97b3bd4 !per #15644 Rename persist(seq) to persistAll 2015-06-16 15:26:48 +02: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
Andrei Pozolotin
18dfd39686 +per #15587 Make it possible to use multiple persistence plugins 2015-02-19 21:25:52 -06:00
Patrik Nordwall
9b5a446a4a =per #15942 Support resume after recovery failure
* also improved fault handling in various places (bugs found)

* and manually triggered Update must be distinguished from scheduled
  auto updates, otherwise manual Update will schedule extra auto updates
2015-02-06 10:29:07 +01:00
Patrik Nordwall
72d54626f3 =per #15943 Avoid initite restart loop when recovery fails
* also include the failing message and sequenceNr in the RecoveryFailure
  message
* remove the "putting back" the message first in the mailbox
2015-02-06 10:29:07 +01: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