Commit graph

14129 commits

Author SHA1 Message Date
Ilya Epifanov
5954302658 +act #15502: Pluggable DNS resolution in akka-io 2014-07-29 00:12:58 +04:00
drewhk
b88c964bd4 Merge pull request #15573 from spray/w/fix-TCP-pull-mode
=act #15572 don't read recursively in pullMode when a complete buffer was read
2014-07-28 10:19:19 +02:00
Johannes Rudolph
1e0b61a160 =act #15572 don't read recursively in pullMode when a complete buffer was read 2014-07-24 11:02:08 +02:00
Martynas Mickevičius
bb56b88b9a Merge pull request #15568 from HawaiianSpork/socketOptionAfterConnect
!act #13490 Changed the callback to SocketOption to accept a channel instead of a Socket, this allows for using the nio features.
2014-07-24 11:24:47 +03:00
Konrad Malawski
69aa415f43 Merge pull request #15586 from ktoso/forward-port-test-hardedning-ktoso
For Validation, 3 test hardening commits from release-2.3
2014-07-23 17:06:53 +02:00
Konrad 'ktoso' Malawski
c76b8a0338 =con #15574 impr TimerBasedThrottlerSpec stability
* the lower bound was rather racy, depends on "where in it's Tick"
  time the throtteler currently was. In general the upper bound is also
  not exact, but "good enough" because the `.5` is an estimation of "the
  throtteler must finish it's previous tick, and then it sends the data"
2014-07-23 15:48:59 +02:00
Konrad 'ktoso' Malawski
ad2a800298 =per #15559 use the same config as all other peristence tests
* this includes the default expect timeout of 10s (instead of 3s)
2014-07-23 15:48:51 +02:00
Konrad 'ktoso' Malawski
ba3543b046 =per #15575 lessen timing issue in AtLeastOnce spec
* lower redelivery interval does not change semantics here (no one
  answers anyway), and lessens the changes to be "unlucky" with gc pauses
* was unable to reproduce error with snapshotting in 80 builds on
  jenkins. Brainstormed possible errors but not found yet..
2014-07-23 15:48:46 +02:00
Michael R. Maletich
a6d3704ef6 !act #13490 Changed the callback to SocketOption to accept a channel instead of a Socket, this allows for using the nio features.
For example in Java 7 you can now join a multicast group:

case class JoinGroup(group: InetAddress, networkInterface: NetworkInterface) extends SocketOption {

  override def afterConnect(c: DatagramChannel): Unit = {
    c.join(group, networkInterface)
  }
}

  IO(Udp) ! Udp.Bind(self, new InetSocketAddress(MulticastListener.port),
    options=List(ReuseAddress(true),
      JoinGroup(MulticastListener.group, MulticastListener.interf)))

Other minor changes:

 - changed all methods in SocketOption to take a Channel instead of a Socket.  The socket can be gotten from the Channel but not the reverse.
 - all methods that are called before the bind are now called beforeBind for consistency.
 - All network connections now call the beforeBind and afterConnect.
2014-07-22 20:22:53 -05:00
Konrad Malawski
cb05725c1e Merge pull request #15561 from ktoso/master
=act #13970 Send transistion on goto(CurrentState) in FSM
2014-07-19 14:57:17 +02:00
Łukasz Dubiel
2c88bb1169
=act #13970 Send transistion on goto(CurrentState) in FSM
When in `A`:
* `goto(A)` will trigger `onTransition(A -> A)`
* `stay()` will NOT trigger `onTransition`

Includes:
* migration guide
* docs updates
* test
2014-07-18 17:36:55 +02:00
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