Commit graph

14118 commits

Author SHA1 Message Date
Konrad Malawski
466c20e3cd Merge pull request #15553 from ktoso/port-volatileLogLevel-ktoso
=act #15488 add @volatile logLevel, and benchmark (for validation)
2014-07-17 17:20:41 +02:00
Konrad 'ktoso' Malawski
6a09d478de =act #15488 add @volatile logLevel, and benchmark
Summary:
* made `logLevel` @volatile
* Perf benchmark and results are attached.

Please review @viktorklang
2014-07-17 14:59:32 +02:00
Konrad Malawski
f0c9f68368 Merge pull request #15549 from ktoso/port-fix-java-persistence-link-ktoso
=doc #15543 java docs should link to java persistence (for Validation)
2014-07-16 19:22:59 +02:00
Konrad 'ktoso' Malawski
8fcac922b4 =doc #15543 link to persistence in java docs should point to java persistence 2014-07-16 16:37:59 +02:00
Konrad Malawski
b28b290fe3 Merge pull request #15481 from duarten/master
Removed guard around _logLevel
2014-07-16 11:34:09 +02:00
Konrad Malawski
975e5d1455 Merge pull request #15541 from ktoso/port-doc-typed-router-ktoso
+doc #15537 add Typed router pattern (for validation)
2014-07-15 12:07:34 +02:00
Konrad 'ktoso' Malawski
ba2411833a +doc #15537 add Typed router pattern
Conflicts:
	akka-docs/rst/scala/code/docs/persistence/PersistenceDocSpec.scala
2014-07-15 10:22:23 +02:00
Konrad Malawski
5c80e35fe7 Merge pull request #15527 from ktoso/port-persistence-tck-ktoso
+per #13815 akka-persistence-tck based on @krasserm's work
2014-07-14 21:11:21 +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
Konrad Malawski
76bc8afe8c Merge pull request #15368 from michalrus/fsm-simple-redelivery
=sam #12702 Create FsmSimpleRedelivery sample
2014-07-13 11:36:26 +02:00
Michal Rus
ef9e64d791 =sam #12702 Create FsmSimpleRedelivery sample
This one is created instead of the batching pattern of #12702, as suggested by @ktoso in #12702's discussion.
2014-07-13 11:32:41 +02:00
Michal Knapik
7ca3a9699e +tes #12681 add EchoActor 2014-07-11 11:16:35 +02:00
Martynas Mickevičius
0e2f356d23 Merge pull request #15524 from ujay68/issue-15207-2
=doc #15207 add note about UndeclaredThrowableException when used from Java
2014-07-11 10:11:58 +03:00
John Ulric
d4ab6c8545 =doc #15207 add note about UndeclaredThrowableException when used from Java 2014-07-10 21:53:15 +02:00
Martynas Mickevičius
f685b42608 Merge pull request #15519 from 2m/wip-15516-actor-type-fix
=ben #15516 correct tell_commandPersist_reply test with right props (validation)
2014-07-10 16:51:16 +03:00
Konrad Malawski
71fd6f22bd =act fixed typo in scaladoc, and => an
Thanks @geoffjentry for spotting this :-)
2014-07-10 15:49:28 +02:00
kerr
fa488ecc75 =ben #15516 correct tell_commandPersist_reply test with right props 2014-07-10 13:25:38 +03:00
Martynas Mickevičius
ff17e69ca5 Merge pull request #15513 from sslavic/patch-1
Update books info
2014-07-10 13:13:14 +03:00
Stevo Slavić
53aa2f7457 Update books
Updated release date for "Akka Concurrency" and "Akka in Action" release date estimate, and added references to two books, "Effective Akka" and "Developing an Akka Edge".
2014-07-09 14:05:59 +02:00
Konrad Malawski
fa6a42d517 Merge pull request #15492 from gfaerie/master
=doc #15491 java circuit breaker doc update
2014-07-08 13:42:48 +02:00
Konrad Malawski
5cc9eb2a88 Merge pull request #15478 from kanerogers/patch-1
Add import for TestProbe
2014-07-07 15:48:56 +02:00
Konrad Malawski
e9d828c702 Merge pull request #15505 from ktoso/fix-typo-ktoso
=doc fix typo found in #15504 in the java version of docs
2014-07-07 00:12:15 +02:00
Konrad 'ktoso' Malawski
d7aa8fa9da =doc fix typo found in #15504 in the java version of docs 2014-07-07 00:11:13 +02:00
Konrad Malawski
017ee15705 Merge pull request #15504 from tsabirgaliev/patch-2
=doc fixed minor typo
2014-07-07 00:09:06 +02:00
Tair Sabirgaliev
a919fd1942 =doc fixed minor typo 2014-07-07 03:54:53 +06:00
Heiko Seeberger
7f92d2747e Merge pull request #15494 from hseeberger/wip-15493
=pro #15493 Upgrade to Mockito 1.9.5
2014-07-04 12:14:18 +02:00
Patrik Nordwall
40a8692ea8 Merge pull request #15486 from whiter4bbit/master
RecoveryCompleted handled by receiveRecover
2014-07-04 12:04:37 +02:00
Heiko Seeberger
ea13e6d869 Upgrade to Mockito 1.9.5 (closes #15493) 2014-07-04 09:45:35 +02:00
gfaerie
3b9ed6ac03 =doc #15491 java circuit breaker doc update 2014-07-03 18:41:58 +02:00
Duarte Nunes
e80d5e071a =act #15488 Removed guard around _logLevel
This patch removes a lock around the getter of _logLevel. The setter is
still guarded for consistency. Note that out of thin-air reads, while
not excluded under the current JMM, are forbidden by current hardware.

Signed-off-by: Duarte Nunes <duarte.m.nunes@gmail.com>
2014-07-03 16:57:17 +02:00
Pavel Zalunin
f730b60bd9 =doc,sam RecoveryCompleted handled by receiveRecover typo 2014-07-03 13:58:14 +03:00
Kane Rogers
e62610bbd7 Add import for TestProbe
The example for TestProbe doesn't seem to work very well without the TestProbe class imported. :-(
2014-07-02 12:55:48 +10:00
Patrik Nordwall
5608abdb9a Merge pull request #15476 from akka/wip-15472-15440-picks-master-patriknw
#15472 #15440 picks to master (for validation)
2014-06-30 14:35:42 +02:00
Patrik Nordwall
57dece5165 =per #15472 Flush instead of unstash when PersistentActor restarts
* When using the Processor batching buffer for persistAsync and defer
  the events were unstashed by Processor.aroundPreRestart and
  thereby were received as commands after restart
* Instead we must flush this buffer when using PersistentActor

(cherry picked from commit 627ce2fc85739e221524ec48725362ef7c0566ea)
2014-06-30 13:19:15 +02:00
Patrik Nordwall
a188099f91 =con #15440 Add invariant checks to ClusterSharding state
* I suspect that the issue #15440 happens because of replay of events
  in wrong order (ShardHomeAllocated received before ShardRegionRegistered)
  by the hbase journal
* This does not fix that issue, but the additional invariant checks and
  debug statements  would perhaps make it easier for us to diagnose such
  issues
* These changes also ensures that the allocation strategy does not return
  the wrong thing.
* It also tightens a possible error if a region is terminated while a
  rebalance is in progress

(cherry picked from commit d07b9db4958236d580b8bfb8f92461969ff88cbc)
2014-06-30 13:19:00 +02:00
Patrik Nordwall
68a5675220 Merge pull request #15468 from akka/wip-various-pick-master-patriknw
Persistence cherry picks to master (for validation)
2014-06-29 19:35:10 +02:00
Patrik Nordwall
9a4425ed19 =per Fix minor doc issues
(cherry picked from commit 45c07e1f2f131e70a03b82803f11fd390572ccba)
2014-06-28 17:33:08 +02: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
8eec3f92d3 =per #15457 Correlate persistAsync handlers with journal messages
We have assumed that the handlers can be popped when replies come back from journal, but if messages to journal are in flight when the actor is restarted the handlers does not match up with journal replies.

This solution ignores journal replies that were emitted by an old PersistentActor instance
by passing an uid with the journal messages. This means that the handler will not be
invoked for such messages.

(cherry picked from commit 7ebaaab669c9e467a1ffb4d9ed8b6500e1801a7c)

Conflicts:
	akka-persistence/src/main/scala/akka/persistence/JournalProtocol.scala
	akka-persistence/src/main/scala/akka/persistence/Processor.scala
	akka-persistence/src/main/scala/akka/persistence/journal/AsyncWriteJournal.scala
2014-06-28 17:21:55 +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
f6aa491ef0 !per Additional deprecations and cleanup
(cherry picked from commit 98619647e372121fb3c2072a0eab20de4148f7d9)

Conflicts:
	akka-persistence/src/main/scala/akka/persistence/JournalProtocol.scala
	akka-persistence/src/main/scala/akka/persistence/snapshot/SnapshotStore.scala
2014-06-28 16:07:08 +02:00
Patrik Nordwall
33027999da !per #15427 Deprecate deleteMessage and writeConfirmations in journal plugin api
(cherry picked from commit 4c271b6b092989ebde26fcd135e6ad56f797a763)
2014-06-28 15:59:58 +02:00
Patrik Nordwall
07e67b90ea !per #15428 Deprecate deleteMessage
(cherry picked from commit 4973d0b37d635a0a2c9a94c2898da988e4f14fc7)
2014-06-28 15:59:33 +02:00
Patrik Nordwall
018e0c33b5 Merge pull request #15465 from akka/wip-15284-throws-annotation-master-patriknw
+act #15284 Add throws TimeoutException to Inbox.receive
2014-06-27 14:56:23 +02:00
Patrik Nordwall
a60f828819 Merge pull request #15464 from akka/wip-13965-15361-master-patriknw
#13965 #15361 cherry picks to master (for validation)
2014-06-27 14:27:53 +02:00
Patrik Nordwall
f8d0929dc0 Merge pull request #15463 from akka/wip-15459-persistAsync-batching-master-patriknw
=per #15459 Use full batching for persistAsync and defer (for validation)
2014-06-27 14:26:54 +02:00
Patrik Nordwall
c11de95dd7 Merge pull request #15414 from akka/wip-13942-LoggingReceive-optimization-patriknw
=act #13942 Avoid allocations in LoggingReceived when disabled
2014-06-27 12:37:38 +02:00
Patrik Nordwall
3a94510869 +act #15284 Add throws TimeoutException to Inbox.receive
(cherry picked from commit ab19cc8a527f1a01a8180c2b199affcb47e5b1d2)
2014-06-27 12:29:11 +02:00
Patrik Nordwall
4e645bde23 =doc #13965 Fix wrong code sample for BalancingPool
(cherry picked from commit 24ce0605ac954d516a52d9ce14624414c1c79933)
2014-06-27 12:22:16 +02:00
Patrik Nordwall
7616a41733 =act #15361 Require non-abstract actor class (earlier)
* It was detected previously as well when trying to find constructor,
  but with a perhaps confusing error message

(cherry picked from commit 15e964b13e91962474c7907787c37121aae8fd4e)
2014-06-27 12:21:53 +02:00