Commit graph

414 commits

Author SHA1 Message Date
Patrik Nordwall
a2e5b3f8a4 =per #16542 Don't store sender in PersistentRepr
* I think it originated from channels, or some idea that
  the sender should be revived (as good as possible) during replay,
  but that is pretty useless
* It must still be in PersistentRepr for remote serialization
* I didn't want to change to the built in sender when looping to the
  journal because keeping it together with the message makes it easier
  to do batching (queueing)
* adjust tck
2015-06-18 12:46:50 +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
leonidb
47348f6280 =per #17630 FAILED: PersistenceFSMActorSpec
* Changed the timeouts to make tests less sensitive to environment issues
* Marked the timeout tests as TimingTest
2015-06-03 15:56:19 +03:00
Patrik Nordwall
1dac401099 Merge pull request #17601 from akka/wip-17576-manifest-patriknw
+act #17576 Support serializer with string manifest
2015-06-01 13:46:17 +02:00
Patrik Nordwall
740f006a38 +act #17576 Support serializer with string manifest
* useful when evolution is needed, e.g. Akka Persistence

* docs, comments, cluster-metrics and cluster-tools serializers
2015-06-01 13:45:31 +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
228ace497f Merge pull request #17593 from ktoso/wip-deferAsync-ktoso
!per #16797 rename defer to deferAsync, remove Seq version
2015-05-29 15:13:00 +02:00
Martynas Mickevičius
0b15a8c2f4 Merge pull request #17532 from 2m/wip-pr-multi-jvm
=pro run multi-jvm tests when validating pr
2015-05-28 16:03:34 +03:00
Martynas Mickevičius
7fc2790458 =pro run multi-jvm tests when validating pr
* addunidoc task via an AutoPlugin that depends on PrValidation and Unidoc autoplugins
* separate cli option logic to a case class
* remove autoplugin for root project
2015-05-28 13:57:50 +03:00
Konrad Malawski
5c45d9e3be =per #16802 no need to verify serialization on journal protocol 2015-05-28 02:43:58 +02:00
Konrad Malawski
d782cf59af !per #16797 rename defer to deferAsync, remove Seq version 2015-05-28 01:37:38 +02:00
Patrik Nordwall
daf1a46f92 Merge pull request #17433 from akka/wip-16695-dependencies-patriknw
=pro #16695 Update dependencies
2015-05-19 11:30:10 +02:00
Patrik Nordwall
c3c05b159b Merge pull request #17478 from akka/wip-17150-AtLeastOnceDeliverySpec-patriknw
=per #17150 Harden AtLeastOnceDeliverySpec
2015-05-19 09:09:25 +02:00
Patrik Nordwall
a8687f9c4e =pro #16695 Update dependencies
io.netty:netty: 3.8.0.Final -> 3.10.3.Final
org.slf4j:slf4j-api: 1.7.7 -> 1.7.12
org.fusesource.leveldbjni:leveldbjni-all:optional;provided: 1.7 -> 1.8
org.apache.camel:camel-core: 2.13.0 -> 2.13.4

ch.qos.logback:logback-classic:test: 1.0.13 -> 1.1.3
junit:junit:test: 4.10 -> 4.12
org.scalatest:scalatest:test: 2.1.3 -> 2.2.4
org.mockito:mockito-all:test: 1.9.5 -> 1.10.19
org.scala-lang.modules:scala-xml:test: 1.0.1 -> 1.0.4
com.novocode:junit-interface:test : 0.8 -> 0.11
org.slf4j:jul-to-slf4j:test: 1.7.7  -> 1.7.12
org.slf4j:log4j-over-slf4j:test: 1.7.7  -> 1.7.12
com.codahale.metrics:metrics-core:test: 3.0.1  -> 3.0.2
com.codahale.metrics:metrics-jvm:test: 3.0.1  -> 3.0.2
org.scalacheck:scalacheck:test: 1.11.3 -> 1.11.6
org.apache.commons:commons-math:test: 2.1 -> 2.2
commons-codec:commons-codec:test: 1.7 -> 1.10
2015-05-19 08:37:54 +02:00
Roland Kuhn
18688fc84b = #17380 fix doc comments for java8 doclint
* actor and cluster-metrics comments
* agent/camel/cluster/osgi/persistence/remote comments
* comments in contrib/persistence-tck/multi-node/typed
2015-05-18 12:51:36 +02:00
Patrik Nordwall
10c0d64381 =per #17150 Harden AtLeastOnceDeliverySpec
* UnconfirmedWarning message spilled over from previous test step,
  using separate probes instead of testActor
* the resend interval was too short so that unexpected resend occured
  as seen by the `failed: expected Action(4,a-4), found Action(3,a-3)`
2015-05-13 15:18:22 +02:00
Konrad Malawski
8b045173ad =pro #17397 improve PR validation speed tremendously (skipping things)
+ enable parallel execution
+ exclude perf tests (TODO mark more as such)
+ uses sbt-dependency-graph plugin
+ implement dependency tracking for testing of only these
+ project which could have been affected by a given PR
2015-05-08 14:09:12 +02:00
Patrik Nordwall
cc636929a5 =per #16737 avoid NPE when snapshot dir is removed
* also best effort to recreate the directory if it is removed
2015-04-01 14:50:28 +02:00
Patrik Nordwall
7aa9fe25f2 Merge pull request #17024 from carrot-garden/persistence-leveldb-dependency
!per #15884 Make LevelDB an optional dependency
2015-03-25 09:07:55 +01:00
Andrei Pozolotin
5c5e07ec4e !per #15884 Make LevelDB an optional dependency 2015-03-24 13:58:09 -05:00
Julian Tescher
00f6a58e7c Changes all occurances of Typesafe copyright to extend to 2015 2015-03-10 14:12:19 -07:00
Patrik Nordwall
30df518421 =tes Use ConversionCheckedTripleEquals 2015-03-10 08:17:03 +01:00
Andrei Pozolotin
6332f888ce +all #16632 Make serialization identifiers configurable in reference.conf 2015-03-05 11:55:05 -06:00
Andrei Pozolotin
18dfd39686 +per #15587 Make it possible to use multiple persistence plugins 2015-02-19 21:25:52 -06:00
Roland Kuhn
5e1fd1db6c Merge pull request #16763 from akka/wip-cleanup-actor-∂π
fix all non-deprecation warnings
2015-02-06 20:54:12 +01:00
Roland Kuhn
a029a90502 fix warnings in contrib, docs, osgi, persistence and slf4j 2015-02-06 18:45:58 +01: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
da7991a3d5 =per #16187 PersistenceFailure after persistAsync failure
* this was fixed by the refactoring in 15423
2015-02-06 10:29:07 +01:00
Andrei Pozolotin
98ac9f7020 + akka-persistence: add internal message protocol traits
2 more snapshot messages used for internal plugin acknowledgement in
https://github.com/akka/akka/blob/master/akka-persistence/src/main/scala/akka/persistence/snapshot/SnapshotStore.scala
* see #16612 
* see #16633
2015-01-27 10:04:11 -06:00
Roland Kuhn
93ef92bcfb =per #16659 fix deserialization of SnapshotHeader
This needs to be done differently for Scala 2.10 and 2.11 since
scala.Option’s serialVersionUID changed between these series.
2015-01-16 14:34:59 +01:00
Andrei Pozolotin
4208aacd2c + akka-persistence: add internal message protocol traits
* resolve #16612
2015-01-13 12:40:40 -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
adamw
57f67bc58c +per #16348 Limit the number of messages redelivered at each interval
Helps to prevent flooding destinations which are unavailable for a long time with messages once they become available.
2014-11-30 13:30:57 +01:00
Patrik Nordwall
c3f16ad740 =per #16009 Serialize SnapshotHeader without Java serialization
* it is backwards compatible, i.e. it can read old snapshots

(cherry picked from commit 690905eac9619da91d7b1fcbc633d1fa2e411ee7)

Conflicts:
	akka-persistence/src/test/scala/akka/persistence/serialization/SerializerSpec.scala
2014-11-03 18:10:00 +01:00
Patrik Nordwall
24f21292bc Merge pull request #16117 from jgordijn/16104-AtLeastOnceDelivery_and_crash_actor-jgordijn
=per #16104 fix no longer send messages when actor crashed on recovery
2014-10-31 10:00:51 +01:00
Patrik Nordwall
4120757224 Merge pull request #16126 from mwegrz/mwegrz-allow-persistentactor-to-be-used-as-a-stackable-modification
=per #15937 Allow PersistentActor to be used as a stackable modification
2014-10-31 09:53:34 +01:00
dawidmalina
551f611809 =per fixed small typo in parameter name
Small typo. Was replayPersistent instead replyPersistent and withReplyPersistent did not work
2014-10-30 13:47:00 +01:00
Martynas Mickevičius
9311e9474e =pro Grab binary version for MIMA combatibility testing from a setting.
Thanks to @jsuereth
2014-10-28 15:13:13 +02:00
Michał Węgrzyn
4f52158b0a =per #15937 Allow PersistentActor to be used as a stackable modification
* PersistentActor correctly calls `super.around*` and allows to be mixed into e.g. ActorSubscriber
 * Tests have been added on PersistentActor and Processor to verify the stackable behavior of `around*` and `pre*` methods
 * Delegation in Processor has been simplified
2014-10-27 21:58:47 +01:00
Jeroen Gordijn
9196dc9a60 =per #16104 fix no longer send messages when actor crashed on recovery 2014-10-22 20:59:10 +02:00
Björn Antonsson
bb75040f88 =pro Cleaner way to declare Scala Version dependent dependencies
Port of PR #15887 to master
2014-09-16 10:53:04 +02:00
Roland Kuhn
ec55ab2d22 =per #15730 fix context.become in PersistentView
(cherry picked from commit 561bd00cf69b0070693db397fe0dbda824792335)
2014-08-29 13:02:06 +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 Malawski
2a8d1c4727 Merge pull request #15713 from ktoso/port-fix-local-snapshotstore-recovery-ktoso
=per #15671 fix local snapshot store picking up wrong file (Validation)
2014-08-21 15:47:01 +02:00
Brendan Lawlor
f336b24830 =per #15671 fix local snapshot store picking up wrong file.
Added spec test to cover fix for bug 15671

Replaced deprecated NamedProcessor with NamedPersistentActor. Cleaned up unused message handling. Typos and misspellings.
2014-08-21 13:56:19 +02:00
Konrad 'ktoso' Malawski
fdb0d9ee3b =per #15590 Increase efforts to in-order on start of ALOD
AtLeastOnceDelivery can delivery out-of-order, and that's OK.
Although, in the case of message replay followed by taking user land
commands which may trigger `deliver` calls, it is nicer to at least once
try to send the replayed but not confirmed deliveries *first*, before
sending the completely new deliveries.

This change acomplishes this by triggering redelivery explicitly when
recovery has finished, and setting the timestamps on these messages a
bit in the past, so they hit their redelivery deadline right away during
this recovery induced redelivery.

Resolves #15590
2014-08-12 11:28:25 +02:00