Commit graph

20524 commits

Author SHA1 Message Date
Patrik Nordwall
4fca0447dd improve shutdown of TaskRunner, #21430
* important that no tasks are run after shutdown
* could be a reason for segfault
2016-09-19 15:07:04 +02:00
Johan Andrén
a939e30b49 Fix artery test file leak #21484
* Include actor system name in artery dir path to ease debugging leaks
* Base class name changed to make actor system autonaming work
* Add shutdown hook directly in transport start
* Wait for completion in shutdown hook (actual leak fix)
2016-09-19 13:22:54 +02:00
Endre Sándor Varga
8ecd7419ac #21419: Reenable ClusterDeathWatchSpec 2016-09-19 12:48:07 +02:00
Patrik Nordwall
133bafdf04 Merge pull request #21474 from akka/wip-21464-decoder-NoSuchElement-patriknw
fix many bugs in InboundCompressions, #21464
2016-09-19 12:31:08 +02:00
Patrik Nordwall
76c23a7880 fix many bugs in InboundCompressions, #21464
* comprehensive integration test that revealed many bugs
* confirmations of manifests were wrong, at two places
* using wrong tables when system is restarted, including
  originUid in the tables with checks when receiving advertisments
* close (stop scheduling) of advertisments when new incarnation,
  quarantine, or restart
* cleanup how deadLetters ref was treated, and made it more robust
* make Decoder tolerant to decompression failures, can happen in
  case of system restart before handshake completed
* give up resending advertisment after a few attempts without confirmation,
  to avoid keeping outbound association open to possible dead system
* don't advertise new table when no inbound messages,
  to avoid keeping outbound association open to possible dead system
* HeaderBuilder could use manifest field from previous message, added
  resetMessageFields
* No compression for ArteryMessage, e.g. handshake messages must go
  through without depending on compression tables being in sync
* improve debug logging, including originUid
2016-09-19 11:37:44 +02:00
Johan Andrén
8e97ecee8f Textual representations of event codes in flight recorder dump (#21489) 2016-09-19 11:00:34 +02:00
Patrik Nordwall
c32ee33a11 Merge pull request #21481 from akka/wip-20703-metadata-patriknw
=art add metadata field to the header, #20703
2016-09-16 18:13:51 +02:00
Konrad Malawski
c20b6088cd =art add metadata field to the header, #20703 2016-09-16 18:13:23 +02:00
Johan Andrén
392ca5ecce Enable flight recorder in tests #21205
* Setting to configure where the flight recorder puts its file
* Run ArteryMultiNodeSpecs with flight recorder enabled
* More cleanup in exit hook, wait for task runner to stop
* Enable flight recorder for the cluster multi node tests
* Enable flight recorder for multi node remoting tests
* Toggle always-dump flight recorder output when akka.remote.artery.always-dump-flight-recorder is set
2016-09-16 15:12:40 +02:00
Patrik Nordwall
8de56a52b6 Merge pull request #21480 from johanandren/wip-21477-ClusterClientSpec-failing-with-artery-johanandren
ClusterClientSpec working with artery
2016-09-16 14:03:55 +02:00
drewhk
c30522224c Merge pull request #21476 from drewhk/wip-21466-wrong-protocol-name-drewhk
#21466 Wrong protocol name expected in tests when using Artery
2016-09-16 13:23:35 +02:00
Patrik Nordwall
9b1b6a9a65 Merge pull request #21459 from akka/wip-21458-StressSpec-patriknw
make cluster.StressSpec pass with Artery, #21458
2016-09-16 12:59:17 +02:00
Patrik Nordwall
835125de3d make cluster.StressSpec pass with Artery, #21458
* need to use a shared media driver to get the cpu usage
  at a reasonable level
* also changed to SleepingIdleStrategy(1 ms) when cpu-level=1
  not needed for the test to pass, but can be good to make level 1
  more extreme
2016-09-16 12:58:41 +02:00
Endre Sándor Varga
2acfb8cfac #21466 Wrong protocol name expected in tests when using Artery 2016-09-16 12:50:15 +02:00
Johan Andrén
9acb1feba3 ClusterClientSpec workin with artery #21477 2016-09-16 12:29:49 +02:00
Patrik Nordwall
03eb20e5d2 Merge pull request #21461 from johanandren/wip-more-tests-working-with-artery-johanandren
More tests working on artery
2016-09-14 16:06:01 +02:00
Johan Andrén
e493bdc1b8 Remove hardcoded port number in TcpConnectionSpec, #21375 2016-09-14 13:22:06 +02:00
Patrik Nordwall
3531e901e9 harden ConstantRateEntityRecoveryStrategySpec, #21230 2016-09-14 13:21:41 +02:00
Patrik Nordwall
f705cddc36 Merge pull request #21449 from akka/wip-21431-TestStage-patriknw
rewrite TestStage to use thread-safe shared state, #21431
2016-09-14 11:44:19 +02:00
Johan Andrén
848d56cc2f More tests working on artery
* non-multi-jvm tests from akka-cluster
* akka-cluster-metrics
* akka-cluster-tools
* akka-cluster-sharding
2016-09-14 11:40:42 +02:00
Patrik Nordwall
4a7cd14731 Merge pull request #21429 from richard-imaoka/wip-20394-dupe-persistentid-errmsg-richard-imaoka
More descriptive errors from ReplayFilter
2016-09-13 16:11:59 +02:00
Patrik Nordwall
79d8ec87fc Delay should not pull when buffer is full with Backpressure strategy, #21334
Additionally
* nano time conversion and calculation fix
* refactoring of Delay.onPush
2016-09-13 16:10:49 +02:00
Patrik Nordwall
86c15c04e3 Merge pull request #21453 from johanandren/wip-20724-increase-LeveldbAtLeastOnceDeliverySpec-johanandren
Verbose logging in LeveldbAtLeastOnceDeliverySpec
2016-09-13 15:52:21 +02:00
gosubpl
9b73fefdce =htc don't encode known to be empty entities (#21393) (#21396)
* =htc don't encode known to be empty entities (#21393)

* =htc added missing headers in the improved marshaller (#21393)
2016-09-13 14:32:02 +02:00
drewhk
ec50bd1441 Merge pull request #21447 from drewhk/wip-21446-harden-event-chasing-drewhk
#21446: Completion events must not be swallowed if chasing
2016-09-13 12:17:02 +02:00
Johan Andrén
74162ddc9f Verbose logging in LeveldbAtLeastOnceDeliverySpec to figure out #20724 2016-09-13 11:46:18 +02:00
Johan Andrén
e65e63e8c1 =per Higher recovery timeout in PersistentActorRecoveryTimeoutSpec to not fail on slow/gc #20728 (#21445) 2016-09-13 10:51:40 +02:00
Konrad Malawski
3b57947b1f =art remove addressed todo in compressions 2016-09-13 10:49:19 +02:00
Łukasz Dubiel
211537f485 =art Count min sketch benchmark and performance improvments. (#21037) 2016-09-13 10:48:37 +02:00
Endre Sándor Varga
b2f0ca6750 #21446: Completion events must not be swallowed if chasing 2016-09-13 10:47:08 +02:00
Matthias Lüneberg
a88c8a0bbe Add javadsl FormData.create(Iterable) overload #21303 (#21344) 2016-09-13 10:19:37 +02:00
drewhk
47433bc65c Fix initialization order in BroadcastHub caused by an otherwise innocent race #21362 2016-09-13 09:02:53 +02:00
Patrik Nordwall
bf151e9793 don't quarantine back, #21450
* Don't quarantine the other system when receiving the Quarantined message,
  since that will result cluster member removal and can result in
  forming two separate clusters (cluster split).
* Instead, the downing strategy should act on ThisActorSystemQuarantinedEvent, e.g.
  use it as a STONITH signal.
2016-09-13 08:01:58 +02:00
Patrik Nordwall
acafe80cf1 rewrite TestStage to use thread-safe shared state, #21431
* The previous approach was based on sending the
  test commands to the active stages themselves and let
  them keep track of the state.
* The problem with that is that Association/OutboundTestStage
  that is created afterwards will not have the right state.
  Similar problems can occur for restarts.
* Instead using thread-safe mutable state that is
  updated directly and used by all test stages.
2016-09-12 19:51:05 +02:00
Richard Imaoka
98bfbbb4b3 Add documentation for ReplayFilter #20301 2016-09-12 16:18:06 +02:00
Johannes Rudolph
a6ad4659d6 Merge pull request #21444 from jrudolph/cleanup-header-builder 2016-09-12 15:42:59 +02:00
Johannes Rudolph
0e253b4208
=rem,act move direct buffer cleaning util method to akka.io 2016-09-12 14:25:30 +02:00
Johannes Rudolph
bffbef0caa =rem remove test-only HeaderBuilder.bothWays 2016-09-12 14:20:37 +02:00
Johan Andrén
75bbd7d00b -doc Remove stale other language bindings doc page #21426 (#21432) 2016-09-12 11:59:38 +02:00
Richard S. Imaoka
ae084083f6 More descriptive errors from ReplayFilter (Fixes #20394) 2016-09-10 02:05:36 +09:00
Johan Andrén
3502f0d72f One more missed canonical.port in cluster tests (#21428) 2016-09-09 18:12:35 +02:00
Johan Andrén
b0e03058b9 Port and hostname config path was changed, cluster tests didn't get the change (#21427) 2016-09-09 17:55:02 +02:00
Johan Andrén
fa1d6d6f19 Disable ClusterDeathWatchSpec for now (#21421) 2016-09-09 17:54:13 +02:00
Patrik Nordwall
e2ea9fc46a Merge pull request #21414 from akka/wip-21403-banned-resolveActorRef-patriknw
try delayed retry resolve  of remote deployed refs only once, #21403
2016-09-09 15:42:53 +02:00
Patrik Nordwall
d8bb0ef476 Merge pull request #21406 from akka/wip-21371-prio-patriknw
No ack delivery for prio messages, #21371
2016-09-09 15:41:54 +02:00
Patrik Nordwall
7513617070 Merge pull request #21417 from drewhk/wip-20623-cleanup-aeron-files-drewhk
#20623 Make sure external (mapped) resources are properly cleaned on shutdown
2016-09-09 15:23:13 +02:00
Patrik Nordwall
4e34e4373c Merge pull request #21418 from akka/wip-sync-2.4.10-patriknw
Sync Artery with 2.4.10
2016-09-09 15:11:12 +02:00
Patrik Nordwall
1584c52190 handle longer network partitions, #21399
* system messages in flight should not trigger premature quarantine
  in case of longer network partitions, therefore we keep the control
  stream alive
* add give-up-system-message-after property that is used by both
  SystemMessageDelivery and AeronSink in the control stream
* also unwrap SystemMessageEnvelope in RemoteDeadLetterActorRef
* skip sending control messages after shutdown, can be triggered
  by scheduled compression advertisment
2016-09-09 14:35:50 +02:00
Patrik Nordwall
cd4a31e74d No ack delivery for prio messages, #21371
* and send prio messages enclosed in actor selection
  over the control stream
2016-09-09 14:35:50 +02:00
Endre Sándor Varga
0d77034adc 20623 Make sure external (mapped) resources are properly cleaned on shutdown 2016-09-09 14:29:04 +02:00