Commit graph

21794 commits

Author SHA1 Message Date
Konrad `ktoso` Malawski
682b047ac3 +str #24229 first working SinkRef, though serialization is wrong somehow (when serialize-messages = on)
silly serialization mistake, should have fixed serialize as well

tage actors now can have names, which helps a lot in debugging

thread weirdness

make sure to fail properly, actually go over remoting

issue with not receiving the SinkRef... what

initial working SinkRef over remoting

remote Sink failure must fail origin Source as well

cleaning up and adding failyre handling

SinkRef now with low-watermark RequestStrategy

source ref works, yet completely duplicated code
2018-01-23 02:27:10 +09:00
Christopher Batey
b48d907d66
Fix typed initial inports (#24384) 2018-01-22 16:28:16 +00:00
Patrik Nordwall
155e765c9d Stashing in Typed, #22275 (#24349)
* Utility for stashing, #22275

* The main reason for providing these utilities and promote
  a standardized way of doing the buffering is that monitoring
  instrumentation can be added to these classes, which is not
  possible if we just say "buffer in some collection".

* unstash a few at a time, became rather complicated

* separate api and impl, and more tests
2018-01-23 00:43:20 +09:00
Johannes Rudolph
fef57ea034 actor-typed: remove unsupported DispatcherSelectors #24337 (#24380)
Untyped actor systems currently only support specifying dispatchers via a
name reference to the config. The other selectors can be revived when other
ways of configuring dispatchers are available for untyped actor systems
(see #17568).
2018-01-22 15:27:21 +00:00
Johan Andrén
ab76b6b64d TestProbe support for actor stop checking (#24365)
* TestProbe support for actor stop checking #24356
2018-01-22 13:49:54 +00:00
Christopher Batey
719f0fb672
Typed docs for sharding and singleton (#24364) 2018-01-22 13:47:18 +00:00
Johan Andrén
f32cd63dc1
Too quick merge of ActorRef serialization with incorrect formatting of test (#24377) 2018-01-22 13:09:00 +01:00
Patrik Nordwall
099473ef52 format ActorRefSerializationSpec 2018-01-22 21:05:33 +09:00
Richard Imaoka
0e852fb988 Use Java serialization for typed ActorRef #24135 2018-01-22 11:10:10 +01:00
Patrik Nordwall
a4ebc2b73f
Merge pull request #24367 from vhiairrassary/vhiairrassary/fix-cluster-dc-doc
Fix some links in cluster-dc.md documentation
2018-01-22 07:10:35 +01:00
Victor Hiairrassary
68bd705d64
Fix some links in cluster-dc.md documentation 2018-01-19 20:27:15 +01:00
Johan Andrén
034d6c6e6a Actor-to-actor ask for typed, #23770 2018-01-19 18:13:24 +01:00
Josep Prat
49aee62f30 =typ Improve error message for Assertion checking (#24359)
Current error message when assertion fails doesn't sound like a proper sentence.
2018-01-19 13:34:20 +01:00
Christopher Batey
574e690330
Remove access of state from spawnAdapter in ClustserReceptionist (#24336) 2018-01-19 12:27:22 +00:00
Patrik Nordwall
1d5b913f7f
Merge pull request #24346 from akka/wip-22776-gracefulStop-patriknw
=typ Examples how to stop actor with cleanup (#22776)
2018-01-19 12:31:50 +01:00
Christopher Batey
4f6af8d856 Add typed supervisor strategy and some basic docs (#24341) 2018-01-19 11:33:49 +01:00
gosubpl
9767ebb61c =typ Examples how to stop actor with cleanup (#22776) 2018-01-19 11:32:54 +01:00
Johan Andrén
e81f350b2f
Typed - cleanup canonic #22841 2018-01-18 17:15:32 +01:00
Evgeny Veretennikov
5c68f2f627 #24303 ActorSystem.getWhenTerminated which returns CompletionStage 2018-01-18 14:36:21 +01:00
Christopher Batey
22b256dd4c Keep addition affects if persisting effect is none (#24345) 2018-01-18 13:54:58 +01:00
Patrik Nordwall
6797c74164
Merge pull request #24333 from akka/wip-24071-rename-Actor-patriknw
Rename scaladsl/javadsl Actor to Behaviors, #24071
2018-01-17 17:01:15 +01:00
Patrik Nordwall
14c6440cee Rename scaladsl/javadsl Actor to Behaviors, #24071
* The technical reason for not naming it Behavior is that
  it would be duplicate import conflicts of
  akka.actor.typed.Behavior and akka.actor.typed.scaladsl.Behavior
* Plural naming is pretty common for factories like this,
  e.g. java.util.Collections
2018-01-17 14:58:55 +01:00
Richard Imaoka
38b10683a9 Allow tagging in persistence typed (#24217)
* Allow tagging in persistence typed (#23817)

* Use Set[String] for tags

* Documentation for persistence typed tagging

* Rename tagging parameter to tagger
2018-01-17 14:20:49 +01:00
Patrik Nordwall
f890bc6abf
Merge pull request #24070 from akka/wip-SendQueueSpec-patriknw
additional test of SendQueue
2018-01-16 19:10:43 +01:00
Patrik Nordwall
5cab621e82
Merge pull request #24078 from akka/wip-24055-heartbeat-patriknw
attempt to reproduce heartbeat issue, #24055
2018-01-16 19:10:10 +01:00
Patrik Nordwall
1d0ae12f9c
Merge pull request #24315 from akka/wip-24171-last-node-patriknw
Remove Exiting/Down node from other DC, #24171
2018-01-16 19:08:23 +01:00
Patrik Nordwall
6e15a4a2af harden RemoteDeploymentSpec, #24252
* Wrong message ordering in test
* Reproduced with sleep
2018-01-16 18:32:53 +01:00
Patrik Nordwall
5fdb247488 harden StreamTestKitSpec, #24308 2018-01-16 18:30:33 +01:00
Patrik Nordwall
e4dd3c24fc add maxRestarts to RestartWithBackoff #24129 2018-01-16 18:28:10 +01:00
Johan Andrén
32987c8704
Simpler tls over tcp #24153 2018-01-16 18:05:08 +01:00
Johan Andrén
14c427bd4f More generous timeout in DaemonicSpec (#24322)
* More generous timeout in DaemonicSpec

Also:
 * allow it to complete faster if possible
 * avoid potential race with port number
 * always shut the extra actor system down
 * less dilation
2018-01-16 15:54:20 +00:00
Patrik Nordwall
1f708550ee harden AeronStreamConsistencySpec, #24190 (#24326)
This test is using the tcp ports assigned from the multi-jvm infra (classic remoting)
for the Aeron udp. Even though tcp and udp ports are independent and same port number
can be used at the same time for tcp and udp there is no guarantee that the udp port
is free just because the tcp port was.
2018-01-16 15:49:28 +00:00
Christopher Batey
accfa21731
Fix race in OptionalSnapshotStoreSpec (#24323)
Subscribe to log events before creating the actor otherwise it might
miss the log message it is testing for

Refs #24144
2018-01-16 15:06:42 +00:00
Catalin Ursachi
2360de583d Add streams recipe for 'source from function' (#22074) (#24132) 2018-01-16 15:29:03 +01:00
Johan Andrén
3cafdc65e0 Cleanup of UnfoldResourceAsync and fix for #24119
* More complete test coverage plus one found bug fixed
2018-01-16 15:01:55 +01:00
Patrik Nordwall
c32a1d4174
Merge pull request #24297 from 2m/wip-latest-versions-for-mima-2m
Update the latest versions for MiMa checks
2018-01-16 14:39:13 +01:00
Patrik Nordwall
24f6f17f9d
Merge pull request #24309 from akka/wip-24113-patriknw
harden CoordinatedShutdownShardingSpec, #24113
2018-01-16 13:55:17 +01:00
Patrik Nordwall
e6b2d0d689 harden BasicClusterManualSpec, #24293 (#24318)
* The probe was remote
* Default timeouts too tight for membership changes
2018-01-16 10:51:59 +01:00
Patrik Nordwall
6cb326e171 add label 'good first issue' (#24296) 2018-01-16 09:42:22 +00:00
Johan Andrén
df40ef7bc0
Actually check the shutdown status before materializing anything (#24307) 2018-01-16 09:10:21 +01:00
Catalin Ursachi
0529f1814b Remove redundant Futures tests (#24095) (#24130)
* Remove redundant Futures tests (#24095)

* Cleaned up tests

* Removed FutureSpec.scala
2018-01-16 08:45:01 +01:00
Patrik Nordwall
2733a26540 Remove Exiting/Down node from other DC, #24171
* When leaving/downing the last node in a DC it would not
  be removed in another DC, since that was only done by the
  leader in the owning DC (and that is gone).
* It should be ok to eagerly remove such nodes also by
  leaders in other DCs.
* Note that gossip is already sent out so for the last node
  that will be spread to other DC, unless there is a network
  partition. For that we can't do anything. It will be replaced
  if joining again.
2018-01-16 07:55:49 +01:00
Patrik Nordwall
9e8c10b5a6 harden CoordinatedShutdownShardingSpec, #24113
* There might be one case when the singleton coordinator
  hand over might start before the gracful stop of the
  region is completed on other node.
* I think this is rare enough to just accept that message
  might be sent to wrong location (we don't guarantee anything
  more than best effort anyway).
* Safe rolling upgrade should keep the coordinator (oldest)
  until last to avoid such races
2018-01-16 07:40:45 +01:00
Martynas Mickevičius
6cb3cc5e02
Update whitesource plugin to the latest (#24313) 2018-01-16 09:39:38 +07:00
Patrik Nordwall
fb72274b71 fix compilation error (expectNoMsg) (#24312) 2018-01-15 17:15:45 +01:00
Arnout Engelen
ed9ece49c4 Use expectNoMessage in typed testkit (#24250)
* Use expectNoMessage in typed testkit

Interestingly most calls to expectNoMsg did not appear to expect the parameter
to be dilated

Might be nice to allow configuring a variant that uses a (configurable) default
delay (other than the single-expect-default)

* Add a probe.expectNoMessage with no parameters

If you want to 'just wait a while' and not care too much about how long
exactly, will be dilated.
2018-01-15 15:08:18 +01:00
Patrik Nordwall
d66f6e07dc
Merge pull request #24290 from akka/whitesourceUpdate
Update whitesource
2018-01-15 15:04:04 +01:00
Patrik Nordwall
876eb83ae4
Merge pull request #24292 from akka/updateLeveldb
Update LevelDB
2018-01-15 15:02:43 +01:00
Patrik Nordwall
971049c3bb Test that large messages don't disturb cluster heartbeats, #24055 2018-01-15 10:31:15 +01:00
Patrik Nordwall
f95ab52f10 additional test of SendQueue 2018-01-15 10:13:47 +01:00