Commit graph

1217 commits

Author SHA1 Message Date
Patrik Nordwall
0aca351d81 harden SurviveNetworkInstabilitySpec #18767 2016-08-23 17:51:57 +02:00
Endre Sándor Varga
5e830323f6 Updating to ScalaTest 3.0.0 and ScalaCheck 1.13.2 2016-08-22 11:13:49 +02:00
Patrik Nordwall
0c4d4c37ba cluster singleton improvements, #20942
* track nodes by UniqueAddress in Cluster Singleton, #20942
* reply with HandOverDone from new incarnation, #20942
* confirm as terminated immediately when new incarnation joins, #20942 instead of waiting for failure detector to mark it as unreachable this will speed-up removal when restarting cluster node with same hostname:port
2016-08-19 11:56:55 +02:00
Patrik Nordwall
d5f84d4ad8 Merge pull request #21141 from akka/wip-21053-NodeChurnSpec-patriknw
harden NodeChurnSpec, #21053
2016-08-10 14:22:30 +02:00
Patrik Nordwall
d731f20bf1 suppress deadletter for the cluster joining messages 2016-08-09 17:22:31 +02:00
Patrik Nordwall
483d46ddd0 harden NodeChurnSpec, #21053 2016-08-08 17:50:24 +02:00
Johan Andrén
896ea53dd3 recovery timeout for persistent actors #20698 2016-06-03 14:17:41 +02:00
Patrik Nordwall
c15e04e051 Merge pull request #20700 from akka/wip-20639-restarting-node2-patriknw
test for restarting node, #20639
2016-06-03 09:27:15 +02:00
Björn Antonsson
c66ce62d63 Update to a working version of Scalariform 2016-06-02 22:12:36 +02:00
Patrik Nordwall
91c8e90f82 test for restarting node, #20639 2016-06-02 12:52:55 +02:00
Yegor Andreenko
c66e3a9f02 =clu #20613 logging selfRoles during node unreachable and quarantined (#20542) 2016-05-24 14:35:50 +02:00
2beaucoup
bc7cd17bee =htc Various minor cleanups (#20451)
* minor fixes

* remove now superfluous buffer from MultipartUnmarshaller

* remove unused TokenSourceActor

* remove FIXME: add tests, see #16437

* removed unused param remoteAddress (comment: TODO: remove after #16168 is cleared)

* convert FIXME to TODO (#18709)

* reenable tests in {Request|Response}RendererSpec due to fixed #15981

* remove logging workaround in StreamTestDefaultMailbox due to fixed #15947
2016-05-06 10:32:06 +02:00
Andrea Peruffo
088bf1b842 =act Locale unaware method in Helpers. (#20412) 2016-04-28 15:32:46 +02:00
Johan Andrén
5671927cf1 clu #20309 API for pluggable cluster downing 2016-04-18 15:06:05 +02:00
Patrik Nordwall
9f659cf9b1 remove JUnitRunner annotation, #16112
* it was used for running tests from inside Eclipse,

  but since it caused some trouble we remove it
2016-04-05 17:06:58 +02:00
Patrik Nordwall
52de0bcaa4 Clarify system name requirement for cluster members
* Clarify system name requirement for cluster members

* Recommend againsts auto-down, stronger
2016-04-04 12:37:12 +02:00
Patrik Nordwall
0ec6bd35da fix wrong setting in AdaptiveLoadBalancingRouterSpec, #18156 2016-03-22 15:31:27 +01:00
Patrik Nordwall
12db887ebb Merge pull request #20106 from akka/wip-19536-NodeChurnSpec-patriknw
harden cluster.NodeChurnSpec, #19536
2016-03-22 15:12:14 +01:00
Patrik Nordwall
3e7cd4d98c Merge pull request #20093 from akka/wip-19780-ack-takeover-patriknw
rem #19780: Skip acks during connection handoff
2016-03-22 14:01:29 +01:00
Patrik Nordwall
86d6b91846 harden cluster.NodeChurnSpec, #19536
* increasing the awaitAssert timeout since logs show that things are
  "still in progress" when leaving
2016-03-22 08:38:43 +01:00
Patrik Nordwall
b28933967f harden cluster.StressSpec, #20095
* logs show unexpected unreachable (and downing) during the high
  throughput test
* increasing the failure-detector timeout
2016-03-22 08:35:08 +01:00
Patrik Nordwall
96b68f6437 rem #19780: Skip acks during connection handoff
* The problem: ACK that was targeted to an old incarnation
  was sent to the new, restarted, system with same host:port, and
  therefore resulting issues noticed as
  "Error encountered while processing system message acknowledgement buffer: [-1 {}] ack: ACK[0, {}]"
  when restarting actor system

* The reason:

  1. The endpoint reader was about to send OutgoingAck to parent reader,
     targeted to the old system.
  2. At the same time there is an incoming connection from new system
     that triggered TakeOver in the endpoint writer, i.e. replacing
     the handle to the connection of the new system.
  3. The OutgoingAck is received by the writer, which happily sends it
     to the new handle, the new system.

* The solution: Ignore OutgoingAck during the handoff (TakeOver) process.
2016-03-21 08:55:19 +01:00
Patrik Nordwall
43000c6569 Merge pull request #19897 from Adebski/Adebski-join-new-incarnation-of-node-if-old-is-leaving-or-exiting
=clu #19859 Relaxed constraints on downing old incarnation of rejoining node
2016-03-17 13:13:27 +01:00
Martynas Mickevičius
50f99328fe #18765 Update to latest MiMa which is now an AutoPlugin.
* check for binary inc. issues by default
* if check is not needed, disable MimaPlugin
* determine old artifact id from the current one
2016-03-10 10:45:35 +02:00
adebski
472d404bbe =clu #19859 Relaxed constraints on downing old incarnation of rejoining node.
* Automatic downing of old node incarnation when new tries to rejoin the cluster is performed even if old incarnation was left in Leaving or Exiting state.
* Added information to clustering docs about automatic downing of old incarnations when new tries to rejoin the cluster.
2016-02-26 20:35:19 +01:00
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
Jason Zaugg
8dfe3ff31d !clu #19679 make MemberStatus a sealed class
My assumption is that it the absence of the sealed modifier
was an oversight. Marking it as sealed will avoid exhausitity
warnings from upcoming Scala compiler version in `highestPriorityOf`.
2016-02-03 09:21:36 +10: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
Roland Kuhn
3140e72265 #19046 replace system.{shutdown => terminate} 2016-01-20 11:50:43 +01:00
Brendan McAdams
269a3b3647 Corrected several misspellings of the word "losing". 2016-01-15 20:20:15 -08:00
Konrad Malawski
35108384c9 =clt #19381 silence heartbeat logging in cluster client 2016-01-08 12:11:56 +01:00
Patrik Nordwall
4d64901228 =clu #19274 failure detection of joining/down member status
* Failure detection heartbeating was not performed to joining
  nodes, since it was expected that they will become Up first.
* If a joining node is downed before it is changed to Up failure
  detection will not be performed for that node. That resulted in
  the downed node will not be removed from membership, since the
  unreachability signal is used as confirmation that the node is
  actually stopped before removing it.
2015-12-26 11:30:18 +01:00
Patrik Nordwall
290f402b79 Merge pull request #19211 from akka/wip-19201-max-pools-size-patriknw
=act #19201 improve configuration of thread-pool-executor
2015-12-21 09:50:42 +01:00
Patrik Nordwall
a1c3dbe307 =act #19201 improve configuration of thread-pool-executor
* The old implementation would cap the pool size (both corePoolSize
  and maximumPoolSize) to max-pool-size, which is very confusing
  becuase maximumPoolSize is only used when the task queue is bounded.
* That resulted in configuring core-pool-size-min and core-pool-size-max
  was not enough, because it could be capped by the default max-pool-size.
* The new behavior is simply that maximumPoolSize is adjusted to not be
  less than corePoolSize, but otherwise the config properties match the
  underlying ThreadPoolExecutor implementation.
* Added a convenience fixed-pool-size property.
2015-12-21 09:50:02 +01:00
Balazs Kossovics
9d71142748 #19192 Cluster extension helper to get full path of an actor ref 2015-12-20 12:22:47 +01:00
drewhk
48282fc753 Merge pull request #18729 from hseeberger/hseeberger-18575-publish-member-joined
Publish MemberJoined
2015-11-11 11:23:04 +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
fb664c54a5 =doc fix URL to "The ϕ Accrual Failure Detector" paper 2015-11-04 16:26:45 +02: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
Patrik Nordwall
97fc493446 Merge pull request #18357 from kailuowang/metrics-based-resizer
+act #18356 Metrics based resizer for router
2015-10-23 12:38:14 +02:00
Martynas Mickevičius
4ffe267835 =pro verify BC against all binary compatible versions 2015-10-23 09:10:25 +03:00
Kailuo Wang
90cba9ce0d +act #18356 Metrics based resizer for router 2015-10-22 11:14:00 -04:00
Heiko Seeberger
821dc2199b +act #18575 Publish MemberJoined 2015-10-21 17:30:28 +02: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
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