Commit graph

21817 commits

Author SHA1 Message Date
Song Kun
22b10dbef0 fix typo (#24415) 2018-01-25 13:58:08 +01:00
Sebastian Harko
4ed492d90f make NonBlockingBoundedMailbox the default example (#24401) 2018-01-25 20:27:50 +09:00
Arron Norwell
b4f24f44fa Remove explicit fsync from FileSink (#24314) 2018-01-25 11:46:15 +01:00
Johannes Rudolph
a1d8a5554b
Merge pull request #24354 from anilgursel/24353-groupBy-drops-new-group-anilgursel
groupBy pulls upstream when a substream materialization is waiting #2…
2018-01-25 11:41:18 +01:00
Johannes Rudolph
b90a1166ef
Merge pull request #24383 from jrudolph/jr/23668-watchWith-warning
!act #23668 fail watch/watchWith when previous watch to same subject registered different message
2018-01-24 13:41:43 +01:00
Konrad `ktoso` Malawski
44fdca0399
sbt-jmh 0.3.3 now works with dtrace (macs!) (#24396) 2018-01-24 01:21:35 +09:00
Johannes Rudolph
1064b7fe3f
use expectTerminated 2018-01-23 16:53:40 +01:00
Christopher Batey
9836dbbad1
Document tiers api for akka typed (#24382)
This moves over the last of the content for the blog as well
as moves typed docs to their own folder

Closes #24166
Closes #24358
2018-01-23 15:36:49 +00:00
Johan Andrén
2af400f1b0
Disallow remote deploy for typed actors #24352 2018-01-23 15:46:24 +01:00
Konrad `ktoso` Malawski
49b59083e2
Add ApiMayChange warning in docs of StreamRefs (#24389)
* Add ApiMayChange warning in docs of StreamRefs

* Update stream-refs.md
2018-01-23 23:34:11 +09:00
Johannes Rudolph
b12b3740e3
Merge pull request #24391 from nokia/topic/issue24379
More correctly detect cluster in Receptionist
2018-01-23 11:37:06 +01:00
Johannes Rudolph
05e7463b0d
add more tests + docs 2018-01-23 11:31:15 +01:00
Christopher Batey
1c5d344e4a Snapshots for typed persistent actors (#24350)
* Snapshots for typed persistent actors

Refs #24196

* Check every event when persisting multiple events at once
2018-01-23 19:25:17 +09:00
Patrik Nordwall
37484476df
Merge pull request #24344 from akka/wip-23770-response2-patriknw
Message adapter, without risk of resource leak, #23770
2018-01-23 10:49:13 +01:00
Daniel Urban
dadd172f2a More correctly detect cluster in Receptionist (fixes #24379) 2018-01-23 10:47:53 +01:00
Patrik Nordwall
744bbc4ee2 Message transformer, without risk of resource leak, #23770
* Replacement of spawnAdapter, we could could keep spawnAdapter as
  an internal feature (we know about the resource leak risk)
* The new ActorContext.messageAdapter can be used in the
  same way as spawnAdapter but without the risk of unbounded
  resource leak.
* Only one message transformer per class is supported to avoid
  unbounded growth of registered transformers in case they are
  registered repeatedly. That is also a way to replace transformers,
  if that would be needed.
* It's still encouraged to register the transformers in a top level
  deferred, but other usages are possible. It would still be wrong
  to capture incoming message specific context in the transformer
  function.
* The transformation function is run inside the actor.
* One single spawnAdapter ref is used for all transformers. It wraps
  the message in an internal Transform message.
* rename to spawnMessageAdapter and only kept it as internal in scaladsl
* update chat room example to use child actors
* docs
2018-01-23 09:41:42 +01:00
Anil Gursel
7b09a3e5e9 groupBy pulls upstream when a substream materialization is waiting #24353 2018-01-22 16:00:25 -06:00
Viktor Klang (√)
e999d03e8b The most common partition-case, as divertTo(Mat) #24388 2018-01-22 19:17:41 +01:00
Konrad Malawski
6264f8ea70 +str #24229 back to Future[] API for stream refs
nitpicks
2018-01-23 02:27:10 +09:00
Konrad Malawski
c5a2785c7c +str #24229 implement flattening of mat values, may block; SHOULD BE INTERNAL API
add java documentation

images
2018-01-23 02:27:10 +09:00
Konrad `ktoso` Malawski
7c75abbf7e +str #24229 move SinkRef / SourceRef to akka.stream
+str #24229 remove protobuf changes, which do not need to be made in this PR

docs

moved things

config object

subscription timeout confifmed working, also, attributes

document attributes for sub timeout

tests for the source also failing when it should

additional demand test

implemented protection from materializing "in cycles"; would be nice in
types but that breaks the niceness of use of the types
SinkRef/SourceRef...

cleanup

no idle timeout built in, can use the Timeout stages

more docs

simplest change to prevent exposing SinkRef => SourceRef => SinkRef cycle

Things to decide:
 * is it ok to require using `getSource` / `getSink` as Java API, is there better naming?
 * where should the constructors go? I'd say just in regular javadsl/scaladsl `Source`/ `Sink` objects

move constructors to {javadsl,scaladsl}.{Source,Sink} companion objects

Remove now useless "canMaterialize" field

Separate stage (implementation) from ref (wrapped actor ref) to make it clearer what is serialized

Clarify that partner refs are not optional in on-the-wire interfaces

minor cleanup in SourceRefStage

Renamed the stages but questionable if that really helps ;)

cleanups, better docs

cleanup, fix docs compilation

fix mima

got rid of Futures in the materialized values of stream refs
2018-01-23 02:27:10 +09:00
Konrad `ktoso` Malawski
bc6861f7e4 +str ##24229 naming the stageActor via def stageActorName 2018-01-23 02:27:10 +09:00
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
Johannes Rudolph
5fd48386e3
!act #23668 fail watch/watchWith when previous watch to same subject registered different message
The new message was silently ignored before which cannot be the behavior
that was intended by the user.
2018-01-22 17:42:10 +01: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