Commit graph

15070 commits

Author SHA1 Message Date
Patrik Nordwall
acf0e76244 Merge pull request #18398 from akka/wip-13584-WeaklyUp2-patriknw
+clu #13584 Accept joining to be WeaklyUp during network split
2015-09-04 14:10:23 +02:00
Patrik Nordwall
22b8853314 =clu #13584 mark as experimental and some doc clarificiations 2015-09-04 14:09:41 +02:00
Veiga Ortiz, Héctor
c08bc317e2 +clu #13584 Accept joining to be WeaklyUp during network split
* experimental feature, disabled by default
* Adding documentation to mention weakly up members.
  plus adding new diagram.
2015-09-04 12:44:47 +02:00
Patrik Nordwall
c9662d8083 Merge pull request #18324 from akka/wip-15646-sharding-initial-watch-patriknw
=cls #15646 Optimize the initial watch in shard coordinator
2015-09-04 12:02:17 +02:00
Patrik Nordwall
3a436bb4a3 Merge pull request #18376 from akka/wip-18342-leveldb-config-patriknw
=per #18342 Improve docs for leveldb plugin config
2015-09-04 11:49:41 +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
Patrik Nordwall
e32350c3be Merge pull request #18396 from akka/wip-18345-leave-address-patriknw
=clu #18345 Support local address in cluster commands
2015-09-04 11:31:04 +02:00
Patrik Nordwall
4b6382f780 Merge pull request #18363 from akka/wip-13783-embedded-protobuf-patriknw
=all #13783 replace protobuf dependency by embedded version
2015-09-04 11:30:01 +02:00
Patrik Nordwall
35f5e28ad3 Merge pull request #18338 from akka/wip-18337-down-removal-margin-patriknw
=clu #18337 Disable down-removal-margin by default
2015-09-04 11:29:05 +02:00
Patrik Nordwall
bfde1eff19 =clu #18337 Disable down-removal-margin by default
For manual downing it is not needed. For auto-down it doesn't add any extra safety, since that
is not handling network partitions anyway.

The setting is still useful if you implement downing strategies that handle network partitions,
e.g. by keeping the larger side of the partition and shutting down the smaller side.
2015-09-04 11:28:33 +02:00
Konrad Malawski
9e5a2d5c17 =per #18394 persist EventAdapter manifest in default proto serializer 2015-09-04 10:56:56 +02:00
Patrik Nordwall
f8c1671903 =rem #13783 Make ProtobufSerializer independent of protobuf version
* well, as long as they provide the parseFrom and toByteArray
* it is using reflection to find the `parseFrom` and `toByteArray` methods to avoid
  dependency to `com.google.protobuf`.
* also special case com.google.protobuf when loading serialization binding
* migration guide
* mima filters for the serializers (all types changed)
* add real test for ProtobufSerializer
2015-09-04 09:12:34 +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
baa4399521 Merge pull request #18391 from drewhk/wip-17555-forward-port-drewhk
=rem #17555: Quarantine should clear pending connections (forward port)
2015-09-04 09:05:08 +02:00
Patrik Nordwall
f98b4c1f5e =clu #18345 Support local address in cluster commands
* and clarify the doc sample for leave
2015-09-04 08:53:36 +02:00
Patrik Nordwall
4cbfe3d682 Merge pull request #18332 from akka/wip-17253-cluster-startup-patriknw
=clu #17253 Improve cluster startup thread usage
2015-09-03 18:10:22 +02:00
Patrik Nordwall
737a50ebf3 =clu #17253 Improve cluster startup thread usage
When using a dispatcher (default or separate cluster dispatcher)
with less than 5 threads the Cluster extension initialization
could deadlock.

It was reproducable by adding a sleep before the Await of GetClusterCoreRef
in the Cluster extension constructor. The reason was that other cluster actors were
started too early and they also tried to get the Cluster extension and thereby blocking
dispatcher threads.

Note that the Cluster extension is started via ClusterActorRefProvider before
ActorSystem.apply returns.

The improvement is to start the cluster child actors lazily when the
GetClusterCoreRef is received.
2015-09-03 18:09:31 +02:00
Endre Sándor Varga
cbd4fc7d66 =rem #17555: Quarantine should clear pending connections
(cherry picked from commit 010074d)
2015-09-03 10:46:44 +02:00
Patrik Nordwall
bc568e2a1b Merge pull request #18348 from bwmcadams/master
Fixed a spelling error in a cluster sharding error message when coordinator is not contactable.
2015-09-03 10:02:10 +02:00
Patrik Nordwall
5592e2f5fb Merge pull request #18297 from t3hnar/patch-1
Fix JournalSpec: AtomicWrite(Seq) instead of Seq(AtomicWrite)
2015-09-03 08:53:12 +02:00
Konrad Malawski
8e7abdc511 Merge pull request #18380 from ktoso/port-fsm-fix-ktoso
=act #18364 fix AbstractFSM#onTransition infinite recursion
2015-09-01 15:02:32 +02:00
Ankush Khanna
6c036ea8a7 =act #18364 fix AbstractFSM#onTransition infinite recursion 2015-09-01 13:28:12 +02:00
Konrad Malawski
9d3eea3287 Merge pull request #18374 from akka/wip-18360-tagged-patriknw
!per #18360 Move Tagged to akka.persistence.journal
2015-09-01 11:33:21 +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
a9e7281a5f Merge pull request #18310 from ktoso/wip-simple-typo-docs-ktoso
=doc fix typo: scaladoc syntax used instead of rst syntax
2015-08-31 19:33:07 +02:00
Yaroslav Klymko
a00ae5006c fix Fix JournalSpec: swap AtomicWrite(Seq) with Seq(AtomicWrite) 2015-08-31 08:01:27 +03: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
Brendan McAdams
607ea3e59a Fixed a spelling error in a cluster sharding error message when coordinator is not contactable. 2015-08-27 14:30:57 -07:00
Patrik Nordwall
bc48872873 =cls #15646 Optimize the initial watch in shard coordinator
Two improvements to the coordinator startup (state recovery) that
should make it operational faster and reduce the amount of lost messages
during startup.

* Let the quick (those not involving failure detection) Terminated messages
  be processed before starting to reply to GetShardHome.
* Consider regions that don't belong to the current cluster
  to be terminated.
2015-08-27 18:45:32 +02:00
Patrik Nordwall
c6fdee9dc7 Merge pull request #18317 from akka/wip-18314-msg-loss-patriknw
=clt #18314 Reduce message lost when region terminates
2015-08-27 18:10:39 +02:00
Patrik Nordwall
171363c63b Merge pull request #18325 from akka/wip-18156-AdaptiveLoadBalancingRouterSpec-patriknw
=clu #18156 Harden AdaptiveLoadBalancingRouterSpec
2015-08-27 18:08:53 +02:00
Patrik Nordwall
8c5185faf7 Merge pull request #18329 from akka/wip-18235-ddata-PerformanceSpec-patriknw
=cdd #18235 Harden ddata PerformanceSpec
2015-08-27 18:08:12 +02:00
Konrad Malawski
6edda83008 Merge pull request #18309 from ktoso/wip-docs-css-update
=doc #16122 improve color of strong elements inside note/warn
2015-08-27 15:30:47 +02:00
Patrik Nordwall
ba135e8e34 =clt #18314 Reduce message lost when region terminates
The new akka.cluster.down-removal-margin comes into play.
During that period messages are still routed to the old location, even though we have got the Terminated message.

We can reduce (best effort) the message loss by not replying to GetShardHome during the period.
2015-08-27 10:20:10 +02:00
Patrik Nordwall
a6fe4c8ab4 =cdd #18235 Harden ddata PerformanceSpec 2015-08-26 14:26:51 +02:00
Patrik Nordwall
2566c7a2b6 =clu #18156 Harden AdaptiveLoadBalancingRouterSpec 2015-08-26 12:13:50 +02:00
Patrik Nordwall
27b54627d8 Merge pull request #18293 from smlin/sharding-with-ddata-fix
=cls #18287 failed: ClusterShardingSpec ddata mode
2015-08-25 19:31:58 +02:00
Ostapenko Evgeniy
9926658f7e =cls #18287 failed: ClusterShardingSpec ddata mode 2015-08-25 19:11:25 +03:00
Konrad Malawski
b06e56cd3b =doc fix typo: scaladoc syntax used instead of rst syntax 2015-08-25 00:57:59 +03:00
Konrad Malawski
3520438da4 =doc #16122 improve color of strong elements inside note/warn 2015-08-25 00:01:18 +03:00
Konrad Malawski
0e641ad162 Merge pull request #18307 from ktoso/wip-toc-issue-ktoso
=doc #18306 resolve problem with navigating using right-hand TOC
2015-08-24 22:14:09 +03:00
Konrad Malawski
3a4d210bf4 =doc #18306 resolve problem with navigating using right-hand TOC 2015-08-24 17:05:58 +03:00
Konrad Malawski
413c9563ef Merge pull request #18298 from ktoso/wip-fix-in-persistence-include-ktoso
=doc code snippet include in persistence docs (scala) was broken
2015-08-24 16:16:10 +03:00
Konrad Malawski
4f63089b33 Merge pull request #18305 from ktoso/wip-fix-match-error-persistence-ktoso
=per #18303 avoid causing match error in AsyncWriteJournal
2015-08-24 15:58:13 +03:00
Konrad Malawski
e185718189 =per #18303 avoid causing match error in AsyncWriteJournal 2015-08-24 15:57:19 +03:00
Konrad Malawski
2ec75f9a46 Merge pull request #18294 from KadekM/remove-unused-code
=rem remove unused code
2015-08-24 15:50:50 +03:00
Konrad Malawski
05825008ea =doc code snippet include in persistence docs (scala) was broken 2015-08-23 21:12:01 +02:00
Marek Kadek
e8f76337a8 =rem remove unused code 2015-08-23 02:13:37 +12:00