Commit graph

412 commits

Author SHA1 Message Date
Andrea
cd3d68a77c =act switch to java std lib ThreadLocalRandom 2015-11-06 14:04:33 +01:00
Konrad Malawski
81cba2e580 Merge pull request #18772 from ktoso/wip-persist-nil-ktoso
=per #18728 allow persistAll(Nil)
2015-10-26 14:43:15 -07:00
Konrad Malawski
4a3bc59c48 =per #18728 allow persistAll(Nil) 2015-10-26 14:42:33 -07:00
Patrik Nordwall
ac82354077 Merge pull request #18552 from johanandren/wip-18371-warn-about-java-serialization-johanandren
=act #18371 Warn if the default Java serializer is used
2015-10-26 08:34:11 +01:00
Martynas Mickevičius
4ffe267835 =pro verify BC against all binary compatible versions 2015-10-23 09:10:25 +03:00
Johan Andrén
146bb89e23 =act #18371 Warn if the default Java serializer is used
Unless the message is in akka.* or the configuration setting 'akka.actor.warn-about-java-serializer-usage'
is disabled a warning is logged for each class that the Java serializer is choosen for.
2015-10-21 10:10:24 +02:00
Patrik Nordwall
6b6a16637b Merge pull request #18689 from akka/wip-doc-asyncWriteMessages-concurrency-patriknw
=per Clarify concurrency of asyncWriteMessages
2015-10-21 09:25:48 +02:00
Patrik Nordwall
ba12c04026 Merge pull request #18721 from eshepelyuk/highestSeqNoKeptAfterMsgDeletion-18559-eshepelyuk
=per #18559 TCK tests for highestSequenceNr not reset after journal message deletion
2015-10-20 19:41:48 +02:00
Evgeny Shepelyuk
4eaa77608c +per #18559 TCK tests for highestSequenceNr not reset after journal message deletion
* added tests
* docs about highestSeqenceNr behaviour after message deletion
* clarification about highestSequenceNr in AsyncRecovery#asyncReadHighestSequenceNr and AsyncWriteJournal#asyncDeleteMessagesTo
2015-10-19 19:36:13 +03:00
cheehau.lim
795daa41a5 =doc =per fixed a few typos from 'Unknow' to 'Unknown' 2015-10-15 19:32:22 +08:00
Patrik Nordwall
550aa10db1 =per Clarify concurrency of asyncWriteMessages 2015-10-09 16:00:06 +02:00
Patrik Nordwall
233ea96690 cleanup some test configuration 2015-10-05 10:29:09 +02:00
Johan Andrén
9d576b4eb5 =per #18527 fix race condition in async stash test 2015-09-23 11:59:15 +02: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
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
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
Konrad Malawski
05827b1728 Merge pull request #18448 from akka/wip-18050-query-adapter-patriknw
!per #18050 Make event adapter lookup more efficient
2015-09-16 12:17:52 +02:00
Patrik Nordwall
45318b94c1 =per #18439 Preserve original manifest for IdentityEventAdapter
* when WriteMessages is sent directly to the  journal for testing
  purposes we want to preserve the original manifest instead of
  letting IdentityEventAdapter clearing it out
2015-09-11 16:40:20 +02:00
Patrik Nordwall
b3fedb4cf8 !per #18050 Make event adapter lookup more efficient 2015-09-10 19:48:57 +02:00
Patrik Nordwall
8ce4622783 =per #18415 Don't start redelivery during recover 2015-09-08 13:27:24 +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
Konrad Malawski
9bf6b65e72 Merge pull request #18395 from akka/wip-fix-persisting-manifest-ktoso
=per #18394 persist EventAdapter manifest in default proto serializer
2015-09-04 11:32:37 +02:00
Patrik Nordwall
40936e8333 Merge pull request #18355 from akka/wip-18296-readHighestSequenceNr-patriknw
=per #18296 Use 0L or snapshot seqNr as asyncReadHighestSequenceNr param
2015-09-04 11:32:02 +02:00
Konrad Malawski
9e5a2d5c17 =per #18394 persist EventAdapter manifest in default proto serializer 2015-09-04 10:56:56 +02:00
Roland Kuhn
c3ecb87a65 =all #13783 replace protobuf dependency by embedded version
- created new subproject akka-protobuf (and added COPYING and LICENSE)
- renamed com.google.protobuf -> akka.protobuf everywhere
- also added such renaming step to the results of protoc compilation in
  project/Protobuf.scala
- had to include transcriptions of Netty’s ProtobufEncoder/Decoder to
  make multi-node-testkit compile again
2015-09-04 09:06:50 +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
Patrik Nordwall
af3bc52480 =per #18296 Use 0L or snapshot seqNr as asyncReadHighestSequenceNr param
For example, a new persistent actor (no snapshots, no events) should use
0L so that it makes sense that journal returns 0L and the first persisted
event gets 1L.
2015-08-28 16:05:59 +02:00
Konrad Malawski
e185718189 =per #18303 avoid causing match error in AsyncWriteJournal 2015-08-24 15:57:19 +03:00
Patrik Nordwall
fed622eb9f =per #18288 Add docs of leveldb queries 2015-08-21 15:33:21 +02:00
Patrik Nordwall
8f723deda1 +per #18192 leveldb impl of EventsByTag query
* also refactoring of EventsByPersistenceIdPublisher

* increase test timeouts
2015-08-21 08:48:32 +02:00
Patrik Nordwall
1561e9badb =per #18273 Make leveldb numericId thread safe 2015-08-20 13:27:50 +02:00
Patrik Nordwall
3d317de01b Merge pull request #18270 from akka/wip-18191-leveldb-AllPersistentIds-patriknw
+per #18191 Leveldb impl of AllPersistenceIds query
2015-08-20 13:08:32 +02:00
Patrik Nordwall
75535bba43 +per #18191 Leveldb impl of AllPersistenceIds query 2015-08-19 20:17:15 +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
Patrik Nordwall
145eb1240e Merge pull request #18255 from akka/wip-18219-plugin-constructor-patriknw
=per #18219 Find plugin constructor automatically
2015-08-19 15:31:24 +02:00
Patrik Nordwall
b4e482e092 +act #16629 Possibility to receive messages that not reset receiveTimeout
Need this for AtLeastOnceDelivery

Messages marked with `NotInfluenceReceiveTimeout` will not reset the timer.
This can be useful when `ReceiveTimeout` should be fired by external inactivity
but not influenced by internal activity, e.g. scheduled tick messages.

add to rst docs also
2015-08-19 15:29:22 +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
Patrik Nordwall
15828db19f =per #18123 Deprecate PersistentView
* marked PersistentFSM as experimental
* also changed the order of some sections in migration guide
* link to 2.2->2.3 migration guide
* update experimental index page
2015-08-14 15:05:59 +02:00
Patrik Nordwall
8652e37711 Merge pull request #18195 from akka/wip-17837-writerUid-patriknw
+per #17837 Detect (and repair) corrupt event streams
2015-08-14 15:04:15 +02:00
Patrik Nordwall
467b9636b8 Merge pull request #18215 from akka/wip-18112-deleteSnapshots-timestamp-patriknw
=per #18112 Use timestamp in deleteSnapshots
2015-08-14 14:02:35 +02:00
Patrik Nordwall
c5851600f0 +per #17837 Detect (and repair) corrupt event streams
refactoring of plugin config
2015-08-14 14:01:45 +02:00
Konrad Malawski
9422baf5a2 Merge pull request #18214 from ktoso/wip-18061-testactorref-dislikes-persistentactor-ktoso
=per,doc #18061 doc that Persistence won't work with TestActorRef
2015-08-14 13:49:23 +02:00
Patrik Nordwall
0cd94e2c8c =per #18112 Use timestamp in deleteSnapshots
It was actually used for finding the right metadata, but the local store
deleted all files with matching seqNr.
Note that we use 0L as undefined value for the timestamp when deleting
single snapshot (and therefore it makes sense to delete all in that case)
2015-08-14 12:42:25 +02:00
Konrad Malawski
296aa5ede6 =per #18108 document that batch contains the same persistenceId events 2015-08-14 12:35:23 +02:00
Konrad Malawski
f629171833 =per,doc #18061 doc that Persistence won't work with TestActorRef 2015-08-14 12:12:20 +02:00
Konrad Malawski
d84492e581 Merge pull request #18196 from akka/wip-17033-AtLeastOnceDeliveryLike-patriknw
=per #17033 AtLeastOnceDelivery extends PersistentActor
2015-08-13 22:31:15 +02:00
Patrik Nordwall
9cb5ff6a26 Merge pull request #18206 from akka/wip-15889-tck-snap-patriknw
=per #15889 Add tck test for save snapshot with same seqNr
2015-08-13 20:31:47 +02:00