Commit graph

77 commits

Author SHA1 Message Date
Raymond Roestenburg
2404a9da01 #19246 Auto and manual reset and BackoffOptions.
Also moved `TransparantExponentialBackoffSupervisor` to `akka.pattern` (renamed to `BackoffOnRestartSupervisor`)
2015-12-29 21:23:16 +02:00
Konrad Malawski
ec96c5ddb7 =per,tck #18639 introduce capability flags for journal features 2015-11-27 10:29:34 +01:00
Patrik Nordwall
5bd245fbc8 !per #18463 Make Persistence Query API explorable
* make the standard queries "single method interfaces" that may be implemented
  by a query journal plugin
* remove hints (major problems with varargs anyway), the hints for standard
  queries  should be given in configuration instead, e.g. refresh-interval
2015-09-17 10:43:13 +02:00
Patrik Nordwall
f13143e7da =per #18228 Convert Persistence schema evolution guide to Java 2015-09-16 10:52:03 +02:00
Patrik Nordwall
0b1f280739 =per #18342 Improve docs for leveldb plugin config
* clarify how to enable the plugin
* added empty class property in fallback config in reference
  to have a proper place to document that and throw a more
  specific exception if it is not defined
* also some formatting of reference.conf
2015-09-04 11:49:00 +02:00
Patrik Nordwall
d63e5417b7 !per #18360 Move Tagged to akka.persistence.journal
breaking api since 2.4.0-RC1, but only related to new things in 2.4 anyway
2015-09-01 08:15:01 +02:00
Konrad Malawski
05825008ea =doc code snippet include in persistence docs (scala) was broken 2015-08-23 21:12:01 +02:00
Patrik Nordwall
3d4b5f57b0 Merge pull request #18290 from akka/wip-18288-leveldb-query-doc-patriknw
=per #18288 Add docs of leveldb queries
2015-08-21 15:37:49 +02:00
Patrik Nordwall
fed622eb9f =per #18288 Add docs of leveldb queries 2015-08-21 15:33:21 +02:00
Konrad Malawski
3036012e58 =act #17372 warn when non-zero push timeout detected 2015-08-21 14:15:36 +02:00
Konrad Malawski
e1f54d5367 Merge pull request #18269 from ktoso/wip-18128-poisonpill-persistentActor-ktoso
=doc #18128 explain PoisonPill interaction with PA
2015-08-20 15:21:00 +02:00
Konrad Malawski
8c4cc9a93f =doc #18128 explain PoisonPill interaction with PA 2015-08-20 13:57:08 +02:00
Patrik Nordwall
87bc51220d Merge pull request #18264 from akka/wip-18190-leveldb-EventsByPersistenceId-patriknw
+per #18190 leveldb impl of EventsByPersistenceId query
2015-08-19 20:16:01 +02:00
Patrik Nordwall
009d80dd35 +per #18190 leveldb impl of EventsByPersistenceId query
* also changed EventsByPersistenceId query type to return
Source[EventEnvelope]
2015-08-19 18:58:58 +02:00
Konrad Malawski
7679b7e63f Merge pull request #18265 from ktoso/wip-event-adapters-split-ktoso
+per #18137 EventAdapter => can be Read / Write or both
2015-08-19 16:20:16 +02:00
Konrad Malawski
4e59f0ea35 +per #18137 EventAdapter => can be Read / Write or both 2015-08-19 15:26:30 +02:00
Patrik Nordwall
7ec0493923 =per #18219 Find plugin constructor automatically 2015-08-18 16:10:29 +02:00
Konrad Malawski
270c566fea +doc #17613 document persistence schema evolution 2015-08-14 10:50:19 +02:00
Konrad Malawski
3314de4cb9 +per #16541 add missing java samples for persistence query 2015-08-12 20:42:44 +02:00
Patrik Nordwall & Konrad Malawski
893578a8af +per #16541 java docs for persistence query 2015-08-12 18:14:02 +02:00
Patrik Nordwall & Konrad Malawski
f849793f36 +per #16541 initial version of the Persistence Query module 2015-08-11 16:35:28 +02:00
Konrad Malawski
b335b6ae9b +per #16339 adds actorSelection support to AtLeastOnceDelivery
TODO: need to add docs updates
2015-08-11 11:33:15 +02:00
Konrad Malawski
bbd5b2c739 Merge pull request #17925 from ktoso/wip-move-BackoffSupervisor-ktoso
!per +act #17842 move BackoffSupervisor to akka.pattern
2015-07-09 11:14:42 +02:00
Konrad Malawski
86c00d4716 !per +act #17842 move BackoffSupervisor to akka.pattern 2015-07-08 16:45:23 +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
Konrad Malawski
a59c9f73b6 =per #15640 support nested persist/persistAsync 2015-06-26 10:54:32 +02:00
Patrik Nordwall
4638f5630e !per #17832 Remove SyncWriteJournal 2015-06-26 07:12:11 +02:00
Patrik Nordwall
6eea0ddae6 !per #17799 Remove support for non-permanent deletes
* The permanent flag in deleteMessages
* old records stored with deletion flag are still not
  replayed
2015-06-25 15:43:45 +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
Konrad Malawski
2a5161ff6f !per #17755 removes the saved callback in plugins and adds receive 2015-06-25 13:44:03 +02:00
Konrad Malawski
63baaf1b2b !per #17586 async snapshot delete and remove timestamp from deleteSnapshot() 2015-06-25 10:19:55 +02:00
Konrad Malawski
7e86dac542 +per #17579 #17617 Introduces EventAdapter
+ per plugin scoped adapters
+ could be swapped during runtime
+per EventAdapter now has manifest and is configurable ai la serializers
+ json examples in docs
+ including "completely manual" example in case one wants to add
  metadata TO the persisted event
+ better error reporting when misconfigured bindings
+ manifest is handled by in memory plugin
- did not check if it works with LevelDB plugin yet
> TODO: json example uses Gson, as that's simplest to do, can we use
+per allows 1:n adapters, multiple adapters can be bound to 1 class
2015-06-23 16:57:43 +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
Konrad Malawski
d782cf59af !per #16797 rename defer to deferAsync, remove Seq version 2015-05-28 01:37:38 +02:00
Patrik Nordwall
85be3045bb !per #17249 Avoid init problems of persistence tck
* in the end TestKitBase eagerly initialize the ActorSystem and
  to avoid the need for using lazy val tricks I changed the trait
  to abstract class with config constructor parameter
2015-05-06 14:20:40 +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
Roland Kuhn
a029a90502 fix warnings in contrib, docs, osgi, persistence and slf4j 2015-02-06 18:45:58 +01:00
Andrei Pozolotin
7b9f77a073 + akka-cluster-metrics: new akka module
* new akka module split from akka-cluster
* provide sigar provisioning
* fix ewma usage
* resolve #16121
* see #16354
2015-01-19 10:23:54 -06: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
Marek Prochera
b43f3639d6 Fix #16364 - Doc - Persistent actor - clarification of the recovery customization 2014-11-25 23:13:16 +01:00
Patrik Nordwall
1ffd05db49 =act #13981 Encode name of Balancing dispatcher config path 2014-08-29 12:33:18 +02:00
Viktor Klang
cd8e97c060 +act - 15757 - Reworks implementation of ActorSystem shutdown
* deprecates awaitTermination, shutdown and isTerminated
  * introduces a terminate-method that returns a Future[Unit]
  * introduces a whenTerminated-method that returns a Future[Unit]
  * simplifies the implementation by removing blocking constructs
  * adds tests for terminate() and whenTerminated
2014-08-25 15:49:28 +02:00
Konrad 'ktoso' Malawski
90bc347607 +per #13815 akka-persistence-tck based on @krasserm's work
Original here: https://github.com/krasserm/akka-persistence-testkit

New features:
* merged martin's tests
* usable from java (junit 4)
* simple bench test, which helps checking if ordering is perserved under
  bigger workloads and simple perf checking
* does NOT include tests for already deprecated features (deleteMessages)
* docs

Resolves #13815

Conflicts:
	project/AkkaBuild.scala
2014-07-14 19:39:30 +02:00
Pavel Zalunin
f730b60bd9 =doc,sam RecoveryCompleted handled by receiveRecover typo 2014-07-03 13:58:14 +03:00
Patrik Nordwall
bc2aeaf0d3 =per #15441 Remove persistent stream in docs and sample
We must first release akka-stream with dependency to akka 2.3.4
and it should be maintained in the akka-release-dev branch

(cherry picked from commit a97a067701cfc527b235707882e72326277415f3)

Conflicts:
	akka-samples/akka-sample-persistence-scala/build.sbt
	akka-samples/akka-sample-persistence-scala/src/main/scala/sample/persistence/StreamExample.scala
2014-06-28 17:24:25 +02:00
Patrik Nordwall
33c7f6bb4f !per Change for journal plugin compatibility
* A few more adjustments, found when verifying source compatibility of a few
  journal plugins
* Note that PersistentId will be removed with deleteMessage and we should
  not break plugins because of that
* Add missing section of at-least-once delivery in migration guide

(cherry picked from commit 6727eac6d07280d277968e2e25db44e02be3b102)

Conflicts:
	akka-persistence/src/main/scala/akka/persistence/JournalProtocol.scala
	akka-persistence/src/main/scala/akka/persistence/Persistent.scala
	akka-persistence/src/main/scala/akka/persistence/Snapshot.scala
	akka-persistence/src/main/scala/akka/persistence/journal/AsyncWriteProxy.scala
2014-06-28 17:11:06 +02:00
Patrik Nordwall
32ca608c97 +per #15327 Add AtLeastOnceDelivery trait
* also remove final of around methods, and let deliver send when not recoveryRunning

(cherry picked from commit 312b0d107a179accaf135f64ed9c3b78f3e351d1)
2014-06-26 22:58:46 +02:00