Commit graph

58 commits

Author SHA1 Message Date
Johannes Rudolph
b6cbc7f13a =all remove unused imports 2016-02-23 20:29:22 +01:00
Johan Andrén
62e30b3c08 Update copyrights and links to the new company name #19851 2016-02-23 12:58:39 +01:00
Kirill Plyashkevich
35ffc49226 GZIPInputStream is not closed at all at places, where it's instantiated, which leads to off-heap memory leak with every deserialized message.
GZIPInputStream uses Inflater internally (so also native zlib). Inflater frees up memory only on explicit call to end() or during finalization (finalize() contains only call to end()), so GZIPInputStream should always be explicitly closed.

As native libraries are used a non-scalaish try-finally is used to avoid off-heap memory leak for GZIPInputStream and GZIPOutputStream in case of exceptions.
2016-02-15 16:15:05 +01:00
Patrik Nordwall
aaa8a2bb4c silence deadletter logging of SubscribeAck
* since it is normally (practially always) a local
  messages send that will not be rejected you don't
  care about the ack
2016-02-08 18:20:36 +01:00
Patrik Nordwall
d37a304394 Merge pull request #19154 from Adebski/Adebski-distributed-pub-sub-race-condition-fix
Race-condition problem in distributed-pub-sub fixed by introducing passivate-like protocol for mediator and Topic actors.
2016-01-28 10:55:38 +01:00
Prayag Verma
b7783968a0 =pro #19068 All copyrights ranges and single years updated to a range ending in 2016 2016-01-25 10:20:30 +01:00
adebski
460bad2726 =clu #19017 Race-condition issue when handling Topic/Group actors.
* Added reusable PerGroupingBuffer trait for pubsub implementation
* Moved mkKey methods to the Internal object
* Introduced passivate-like protocol between DistributedPubSubMediator/Topic and Topic/Group actors, contained in ChildActorTerminationProtocol messages.
2016-01-24 14:14:24 +01:00
Roland Kuhn
e5baba2b29 squash some warnings 2016-01-20 11:54:24 +01:00
Johan Andrén
19c7017482 =clu #18577 Option to stop cluster client after no receptionist contact timeout 2016-01-11 14:02:12 +01:00
Konrad Malawski
35108384c9 =clt #19381 silence heartbeat logging in cluster client 2016-01-08 12:11:56 +01:00
Roland Kuhn
f1abaa1c5e Merge pull request #18875 from ktoso/wip-akka.js-cherries-ktoso
Akka.js cherries to master
2015-11-07 18:01:24 +01:00
Patrik Nordwall
1e36e5e187 Merge pull request #18746 from akka/wip-18554-singleton-startup-patriknw
=clu #18554 Make oldest assignment deterministic when joining
2015-11-06 14:48:57 +01:00
Patrik Nordwall
c7c187f6b7 =clu replace Set -- with diff and ++ with union
* better performance according to
  https://docs.google.com/presentation/d/1Qjryxoe-fYEM8ZPhM-98LKfbhnRcn5eAEMNlVVnixsA/pub
2015-11-06 14:48:17 +01:00
Andrea
cd3d68a77c =act switch to java std lib ThreadLocalRandom 2015-11-06 14:04:33 +01:00
Martynas Mickevičius
4ffe267835 =pro verify BC against all binary compatible versions 2015-10-23 09:10:25 +03:00
Patrik Nordwall
9380983d3c =clu #18554 Make oldest assignment deterministic when joining
* the reported issue is fixed by the immediate leaderActions
  (moving to Up)  when joining the first node to itself
* the other changes are precautions just in case
2015-10-21 07:53:14 +02:00
Patrik Nordwall
48754bb33f =pro #18447 Check binary compatibility with 2.4.0 2015-09-30 11:31:11 +02:00
Patrik Nordwall
92e9972d54 =clt #18440 Harden ClusterClientSpec again
The fix in https://github.com/akka/akka/pull/17903 was not using
the correct configuration property. The issue in #17735 was never
fixed by that PR, but now it is.
2015-09-18 09:27:19 +02:00
Patrik Nordwall
a3ced0a38a =clt #18343 Improve structure of DistPubSub docs 2015-09-17 10:50:49 +02:00
Patrik Nordwall
a45f31cecb Merge pull request #18490 from akka/wip-16948-singleton-retries-patriknw
=clt #16948 Use min retries for singleton leaving scenario
2015-09-17 10:39:19 +02:00
Patrik Nordwall
6d036ca00c =clt #16948 Use min retries for singleton leaving scenario"
* In 2.4 we derive the number of hand-over/take-over retries from
  the removal margin, but we decided to set that to 0 by default, since
  it is intended for network partition scenarios. maxTakeOverRetries
  became 1. So there must be also be a  min number of retries property.
* The test failed for the leaving scenario because the singleton
  instance was stopped hard without sending the terminationMessage when
  the maxTakeOverRetries was exceeded.
2015-09-17 10:38:52 +02:00
Patrik Nordwall
15bcd5c41f =clt #18459 Add ClusterClient test for quick restart 2015-09-16 10:47:19 +02:00
Patrik Nordwall
22b8853314 =clu #13584 mark as experimental and some doc clarificiations 2015-09-04 14:09:41 +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
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
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
6420a37250 Merge pull request #18286 from akka/wip-18258-cluster-client-protobuf-patriknw
=clt #18258 Create protobuf serialization for ClusterClient
2015-08-21 14:38:10 +02:00
Patrik Nordwall
b9fecfd53b Merge pull request #18257 from akka/wip-17699-DeadLetterSuppression-patriknw
=cls #17699 Add some DeadLetterSuppression
2015-08-21 08:46:30 +02:00
Patrik Nordwall
95d6c8a62f =clt #17975 Add debug logging to ClusterClientReceptionist 2015-08-21 08:32:07 +02:00
Patrik Nordwall
9a3f7147d0 =clt #18258 Create protobuf serialization for ClusterClient 2015-08-21 08:20:16 +02:00
Patrik Nordwall
b73e830e75 Merge pull request #18259 from akka/wip-13523-cluster-client-sender-patriknw
!clt #13523 Don't expose sender in cluster client replies
2015-08-20 13:31:25 +02:00
Patrik Nordwall
775a2ca40c =cls #17699 Add some DeadLetterSuppression 2015-08-19 15:38:05 +02:00
Patrik Nordwall
1828923259 Merge pull request #18233 from akka/wip-18232-protobuf-singleton-patriknw
=clt #18232 Serializer for ClusterSingleton
2015-08-18 19:57:44 +02:00
Patrik Nordwall
33e05ea59a =clt #18232 Serializer for ClusterSingleton 2015-08-18 19:57:15 +02:00
Patrik Nordwall
7533df48cf !clt #13523 Don't expose sender in cluster client replies 2015-08-18 17:27:42 +02:00
Patrik Nordwall
46811ca1ce =cls #17908 Protobuf serializer for cluster sharding 2015-08-17 16:11:57 +02:00
Patrik Nordwall
c518e32ac2 =clt #17735 Harden ClusterClientSpec
* number-of-contacts is by default 3, and in this test
  with 4 server nodes we shutdown all but one in the end
  and sometimes the client has all other except the remaining
  node in its list of contacts, so it will never get contact
  with the remaining node
2015-07-03 11:42:17 +02:00
Patrik Nordwall
38faafc494 =clt #17447 Split ClusterClient docs into java/scala 2015-07-02 20:14:01 +02:00
Patrik Nordwall
6e28229fbe =clt #17447 Split DistributedPubSub docs into java/scala 2015-06-30 16:39:32 +02:00
Patrik Nordwall
a93de9bf37 =clt #17447 Split Cluster Singleton docs into java/scala 2015-06-30 16:39:32 +02:00
Patrik Nordwall
2832dd55c5 !clt, cls #17866 Use systemActorOf for exension actors
* ClusterSharding
* ClusterClientReceptionist
* dispatcher config, since deployment config can't be used
  for system actors
2015-06-30 16:37:34 +02:00
Roland Kuhn
0de9f0ff40 Merge pull request #17641 from kukido/kukido-spellings-normalization
=doc #17329 Fixed and normalized spellings in ScalaDoc and comments
2015-06-19 12:06:53 +02:00
Patrik Nordwall
2a88f4fb29 =clu Improve cluster downing
* avoid using Down and Exiting member from being used for joining
* delay shut down of Down member until the information is spread
  to all reachable members, e.g. downing several nodes via one node
* akka.cluster.down-removal-margin setting
  Margin until shards or singletons that belonged to a
  downed/removed partition are created in surviving partition.
  Used by singleton and sharding.
* remove the retry count parameters/settings for singleton in
  favor of deriving those from the removal-margin
2015-06-18 12:55:54 +02:00
Patrik Nordwall
23c28af469 !clt #15410 Change path in ClusterSingletonProxy.props
* to avoid giving the name of both singleton manager and singleton instance
2015-06-18 11:31:29 +02:00
Patrik Nordwall
a0e0c394fe !clt #15110 Use buffer instead of stash in cluster client
* drop first in ClusterClient
2015-06-18 11:18:35 +02:00
Patrik Nordwall
e2608e7cc2 !clt #15110 Use buffer instead of stash in singleton proxy
* drop first in singleton proxy
2015-06-18 11:18:24 +02:00
Andrey Myatlyuk
bc791eb86c =doc #17329 Fixed and normalized spellings in ScalaDoc and comments 2015-06-02 21:06:25 -07:00
Patrik Nordwall
7686fa523e =con #13909 Don't use remote watch in ClusterClient
* because it will result in quarantine if failure
  detection triggers and that kind of coupling is
  exactly what is not desired for a ClusterClient
* replace by simple heartbeat failure detection,
  DeadlineFailureDetector

* DeadLetterSuppression
2015-06-02 15:22:09 +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
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