Commit graph

140 commits

Author SHA1 Message Date
Patrik Nordwall
90bc4cfa3e
Improvements of singleton leaving scenario, #25639 (#25710)
* Testing of singleton leaving
* gossip optimization, exiting change to two oldest per role
* hardening ClusterSingletonManagerIsStuck restart, increase ClusterSingletonManagerIsStuck
2018-11-09 09:42:48 +01:00
Arnout Engelen
079aa46733 Introduce 'MemberDowned' member event (#25854)
* Introduce 'MemberDowned' member event

Compatiblity note: MemberEvent is a sealed trait, so it is debatable whether
it is acceptable to introduce a new member.

* Be more conservative (more like leaving), add test
2018-11-05 10:03:06 +00:00
kerr
fafc59b19d update headers to regular comment (#25807) 2018-10-29 05:19:37 -04:00
Johan Andrén
4206e16954
Merge pull request #25565 from johanandren/wip-down-removal-margin-take-two-johanandren
Undeprecate the config, add a note in cluster singleton
2018-09-20 09:03:34 +02:00
Christopher Batey
1d0603dab9 make scalatest suite type agnostic 2018-09-17 17:54:54 +02:00
Johan Andrén
8ed4f5abab Undeprecate the config, add a note in cluster singleton 2018-09-04 14:21:25 +02:00
Kazuhiro Sera
482eaea122 Fix several minor typos detected by github.com/client9/misspell (#25448)
* Fix several minor typos detected by github.com/client9/misspell

* Revert s/erminater/erminator/ in /ActorSystemSpec
2018-08-21 11:02:37 +09:00
kenji yoshida
5b3b191bac Remove procedure syntax (#25362) 2018-07-25 13:38:27 +02:00
Nicolas Vollmar
28746a4cfe Ignore possible state change while waiting for removal #25274 2018-06-27 09:06:32 +02:00
Christopher Batey
23373565db
Fix typed cluster singleton cross dc proxies (#24936)
* Fix typed cluster singleton cross dc proxies
* Adds first multi-jvm test for typed cluster
2018-04-27 12:44:44 +01:00
Christopher Batey
a3e52078df Enable header plugin for the MultiJVM configuration (#24974)
Seems when did the changes for 2018 it intro introduced a space in all
after, hence so many changes.
2018-04-25 00:03:55 +09:00
Patrik Nordwall
fad74150ee
Merge pull request #24963 from chbatey/reduce-jenkins-logs
Reduce size of jenkins logs
2018-04-24 14:19:09 +02:00
Christopher Batey
161d2de44a Harden ClusterClientHandoverSpec #24959
The test failed timing out waiting for a cluster to remove a member. It
was nearly done. This change uses the common configuration used for
cluster tests to speed up membership changes rather than increasing the
timeout.
2018-04-24 12:26:37 +01:00
Christopher Batey
4d20b2a660 Reduce size of jenkins logs
Each build is now over 40mb logs.

A lot of DEBUG logging was left on for test failures that have been
fixed. Added an issue # for ones that are still valid or if if it on
as the test verifies debug
2018-04-24 08:49:41 +01:00
Kirill Yankov
3ebb9fa9c1 Fix serialization in TypedActor (#24851)
* fixed serialization in TypedActor
* generalized duplicates via Serialization.manifestFor
2018-04-12 18:58:13 +02:00
Jimin Hsieh
2c2b8ba001 Remove some of Unused import warning (#24650) 2018-03-16 12:08:29 +01:00
Konrad `ktoso` Malawski
563c7fbcf0 Issue 24594: Integration with sbt-headers and initial header population 2018-03-13 15:45:55 +01:00
Nick Aiello
7dde9c374d [#24294] Fix DistributedPubSubMediator not unsubscribing actors from … (#24343)
* [#24294] Fix DistributedPubSubMediator not unsubscribing actors from topics when they terminate.

* Removed rogue "with DeadLetterProbe"

* Update DistributedPubSubMediator.scala
2018-02-16 10:18:57 +09:00
Patrik Nordwall
23fa8b0810 change spelling of behaviour to behavior, #24457 2018-02-01 15:10:46 +01:00
Konrad `ktoso` Malawski
c7f842942d
=clut #24311 timer event may arrive after we already identified successfuly (#24442)
* =clut #24311 timer event may arrive after we already identified successfuly

* mark as NoSerializationVerificationNeeded
2018-01-30 18:17:01 +09:00
Patrik Nordwall
da565edbc6 harden DistributedPubSubRestart, #24100 2018-01-26 07:13:34 +01:00
Patrik Nordwall
115f9b2a33 harden ClusterClientSpec, #24277 2018-01-10 10:48:55 +01:00
fredfp
0bd408977b cluster client handover when receptionist's node leaves the cluster (#24167)
* Always add sender of GetContacts to client interactions

* Handover clients when receptionist leaves the cluster

* Revision based on code review

* Cluster receptionist only tracks connected clients
2018-01-09 10:41:33 +01:00
Christopher Batey
0380cc517a Cluster singleton manager: don't send member events to FSM during shutdown (#24236)
There exists a race where a cluter node that is being downed seens its
self as the oldest node (as it has had the other nodes removed) and it
takes over the singleton manager sending the real oldest node to go into
the End state meaning that cluster singletons never work again.

This fix simply prevents Member events being given to the Cluster
Manager FSM during a shut down, instread relying on SelfExiting.

This also hardens the test by not downing the node that the current
sharding coordinator is running on as well as fixing a bug in the
probes.
2018-01-05 09:47:43 +01:00
Christopher Batey
009214ae07
Update copyright to 2018 (#24241) 2018-01-04 17:26:29 +00:00
Patrik Nordwall
fa3da328be Run all CoordinatedShutdown phases also when downing, #24048 2017-12-04 11:05:22 +01:00
Patrik Nordwall
436668687a Move coordinated-shutdown config from test/resources, #23879
* looks like the ActorSystem is shutdown when leaving
* Included in MultiNodeSpec, i.e. all multi-node tests:
  akka.coordinated-shutdown.terminate-actor-system = off
  akka.oordinated-shutdown.run-by-jvm-shutdown-hook = off
2017-11-07 15:38:35 +01:00
Patrik Nordwall
bef1ea0db4 shm leak in ClusterSingletonProxySpec, #23844 2017-10-30 14:53:41 +01:00
Arnout Engelen
b1df13d4d4 Update scalariform (#23778) (#23783) 2017-10-06 10:30:28 +02:00
Patrik Nordwall
5fc6d5a04a Verify removal and add of new node incarnation in multi-dc, #23585
* MemberRemoved must be published before MemberUp, e.g. when restarted
  in other DC
* remove from failureDetector when receiving gossip with new member,
  not only new joining member

* increase timeout in MultiDcSingletonManagerSpec
2017-09-25 16:47:06 +02:00
Rafał Sumisławski
d4c929d771 Make sending messages to dead letters by DistributedPubSubMediator configurable. #23462 (#23615) 2017-09-25 11:15:06 +02:00
Arnout Engelen
e13e26aaab Disable min-nr-of-members for ClusterSingletonProxySpec #23619, #23627 2017-09-19 09:20:52 +02:00
Patrik Nordwall
cb08535e7d use right youngest when moving to Up, #23582
* also confirm TakeOverFromMe when singleton already in oldest state
2017-09-04 16:02:23 +02:00
Patrik Nordwall
6ed3295acd Merge branch 'master' into wip-multi-dc-merge-master-patriknw 2017-08-31 10:51:12 +02:00
Konrad `ktoso` Malawski
d07df2b917 =clt #23215 fail with nicer message if PubSubMediator gets null message (#23216)
* =clt #23215 fail with nicer message if PubSubMediator gets null message

* Update DistributedPubSubMediator.scala
2017-08-20 19:02:15 +02:00
Martynas Mickevičius
bc0f2ee26d Load MiMa filters from file (#23083) 2017-07-27 12:33:14 +02:00
Johan Andrén
6cd3b17854 Annotated extendable cluster tool actors with DoNotInherit (#23335) 2017-07-26 10:42:13 +02:00
Johan Andrén
9c7e8d027a Renamed/moved the self data center setting #23312 (#23344) 2017-07-12 11:47:32 +01:00
Arnout Engelen
14ef960f5e Improve Java pubsub example
`Put` does not result in a `SubscribeAck`
2017-07-10 10:26:01 +02:00
Patrik Nordwall
87d74f1510 Docs for multi-DC features 2017-07-07 16:55:22 +02:00
Patrik Nordwall
0b1ce7223d fix usage of the the leader sorted set in Replicator
* since the ordering can change based on the member's status
  it's not possible to use ordinary - for removal
* similar issue at a few places where ageOrdering was used
2017-07-05 14:56:12 +02:00
Patrik Nordwall
bb9549263e Rename team to data center, #23275 2017-07-04 17:11:21 +02:00
Patrik Nordwall
e0fe0bc49e Make cluster sharding DC aware, #23231
* Sharding only within own team (coordinator is singleton)
* the ddata Replicator used by Sharding must also be only within own team
* added support for Set of roles in ddata Replicator so that can be used
  by sharding to specify role + team
* Sharding proxy can route to sharding in another team
2017-07-04 15:04:43 +02:00
Patrik Nordwall
2044c1712b Support cross team in ClusterSingletonProxy, #23230 2017-07-04 10:47:45 +02:00
Arnout Engelen
ccea5a0eac Make cluster singleton DC aware, #23230 2017-07-04 10:21:27 +02:00
Richard Imaoka
ce96053dcd Merge paradox/scala/cluster-singleton.md and java/cluster-singleton.md (#23184) 2017-06-20 00:27:08 -07:00
Johan Andrén
168b40e40c Two unrenamed variable references fixed (#23120) 2017-06-07 18:00:02 +02:00
Arnout Engelen
41098a427f Some cleanups in ClusterClientSpec (#23095)
Mainly replacing within+awaitAssert with awaitAssert with a timeout - seems
cleaner.
2017-06-07 05:54:47 -07:00
Christopher Hunt
f4bf497536 Corrected the setup of contact paths for subscribers #22991
The initial contact paths should be assumed as published as that's what client subscribers will receive upon subscription. Any changes to contact points are a delta to that.
2017-06-04 11:40:17 +02:00
Patrik Nordwall
edef9e34c7 serialize-creators=off in tests, #23003 2017-05-22 20:11:03 +02:00