Commit graph

21546 commits

Author SHA1 Message Date
Konrad `ktoso` Malawski
cba1cb79fa Be more explicit about commenting with link to Issue in CONTRIBUTING (#23968) 2017-11-13 09:11:36 +01:00
Christopher Batey
ad7f68f994
Merge pull request #23965 from danischroeter/shardingNamesTest
Provide access to known shard types add test #23912
2017-11-13 07:44:35 +00:00
Konrad `ktoso` Malawski
fcc11ef311
=doc fix ssl-config link (#23897) 2017-11-13 16:41:31 +09:00
Patrik Nordwall
5946b3486c
Merge pull request #23153 from akka/wip-21422-multi-lane-patriknw
Simplify Artery remote deployment and make inbound-lanes=4 default, #21422
2017-11-11 11:54:47 +01:00
Patrik Nordwall
6b41c80f9b Simplify Artery remote deployment and make inbound-lanes=4 default, #21422
* DaemonMsgCreate is not a system message. We send it over the control
  stream because remote deployment process depends on message ordering
  for DaemonMsgCreate and Watch messages. That is all good.
* We also send DaemonMsgCreate over the ordinary message stream (all
  outbound lanes) so that the first ordinary message that is sent to
  the ref does not arrive before the actor is created. This is not needed,
  since the retried resolve in the Decoder will take care of that anyway.
* Inbound lanes were not covered, but not needed.
* Then the deduplication of DaemonMsgCreate messages in  RemoteSystemDaemon
  is not needed.
* Added some more tests for these things.
* describe lanes in reference docs
2017-11-11 10:30:39 +01:00
Patrik Nordwall
be8e4b0276
Merge pull request #23562 from akka/wip-23561-harden-hub-restart-patriknw
Harden restart of Artery stream with inbound-lanes > 1, #23561
2017-11-11 10:21:02 +01:00
Patrik Nordwall
17f712a76b
Pass HandshakeReq in all inbound lanes, #23527 (#23842)
* Pass HandshakeReq in all inbound lanes, #23527

The HandshakeReq message must be passed in each inbound lane to
ensure that it arrives before any application message. Otherwise there is a risk
that an application message arrives in the InboundHandshake stage before the
handshake is completed and then it would be dropped.

* mima
2017-11-11 10:19:57 +01:00
Daniel Schröter
f2e9b52699 Provide access to known shard types add test #23912 2017-11-11 00:53:54 +01:00
danischroeter
e7bbbdf8ed Provide access to known shard types #23912 (#23913)
* Provide access to known shard types #23912

* applied format
2017-11-11 08:25:33 +09:00
Christopher Batey
ad33b343cc
Merge pull request #23963 from n1ko-w1ll/wip-23962-fixed-typos
Fix typos in PersistentActor.scala #23962
2017-11-10 17:46:34 +00:00
Niko Will
fe34dd163c
Fix typos in PersistentActor.scala #23962
I found some typos in PersistentActor.scala and fixed them.
2017-11-10 15:26:16 +01:00
Kirill Yankov
31db13a99c Multi-jvm testing docs improved #23954 (#23957)
* multi-jvm testing docs improved #23954
2017-11-10 15:16:35 +02:00
David Leonhart
08106243ac Fixed typos and grammar in streams error handling and streams buffers doc (#23956) 2017-11-10 11:53:56 +09:00
Patrik Nordwall
3c7d40b5f7
Merge pull request #23185 from agolubev/23111-AsyncCallbacks_lost_finished_stage-agolubev
AsyncCallbacks lost on finished stage by error
2017-11-09 14:49:03 +01:00
Patrik Nordwall
26f0f2c898
Merge branch 'master' into 23111-AsyncCallbacks_lost_finished_stage-agolubev 2017-11-09 14:48:47 +01:00
WangYifu
d793ffb5dc fix the name of SinkModulePhase (#23939) 2017-11-09 11:01:12 +01:00
Konrad `ktoso` Malawski
68e23918a6
Update ISSUE_TEMPLATE.md 2017-11-09 18:53:46 +09:00
Konrad `ktoso` Malawski
a6fc0b3b8d
Create new issue template (#23944) 2017-11-09 18:51:12 +09:00
Arnout Engelen
e0dcc7766b sbt1 camelcases commands (#23932) 2017-11-09 09:16:30 +01:00
Johannes Rudolph
9d7621150f =stk accept Throwable in stream probe's sendError methods (#23940) 2017-11-09 09:12:58 +01:00
Konrad `ktoso` Malawski
4d583d1e6c
+doc document lifecycle of ActorMaterializer explicitly (#23836)
* +doc #23835 document lifecycle of ActorMaterializer explicitly

* Update stream-flows-and-basics.md

* Update stream-flows-and-basics.md
2017-11-09 00:26:02 +09:00
Konrad `ktoso` Malawski
e547d2b295
Revert "#23329 PersistentFSM: andThen callbacks are not executed when stay() (#23943)" (#23947)
This reverts commit b19d9860d7.
2017-11-08 18:00:40 +09:00
sovaalexandr
b19d9860d7 #23329 PersistentFSM: andThen callbacks are not executed when stay() (#23943)
* Apply [Boy scout rule](https://github.com/akka/akka/blob/master/CONTRIBUTING.md#additional-guidelines)

* [Bug#23329] PersistentFSM: andThen callbacks are not executed when stay()

* [fixes#23329] PersistentFSM: andThen callbacks go execute when stay()

 * At documentation: there is nothing said about events applied should decide to invoke andThen or not.
 * At code: andThen callback can be specified whether any events/state transition applied or not.

 Added call to nextState.afterTransitionDo(stateData) even if there are no eventsToPersist
2017-11-08 17:17:41 +09:00
kenji yoshida
32a23dd5ec fix deprecation warning in project/MultiNode.scala (#23941)
```
project/MultiNode.scala:46:12: method unapplySeq in class Regex is deprecated (since 2.11.0): extracting a match result from anything but a CharSequence or Match is deprecated
[warn]       case MultinodeJvmArgs(a, b) ⇒
[warn]            ^
```

- https://github.com/scala/scala/blob/v2.12.4/src/library/scala/util/matching/Regex.scala#L340
- https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html

`System.getProperties.propertyNames.asScala.toList` return `List[Any]`
2017-11-08 12:04:36 +09:00
Patrik Nordwall
51d120c3ea
Merge pull request #23942 from akka/wip-23879-shutdown-patriknw
Move coordinated-shutdown config from test/resources, #23879
2017-11-07 23:00:52 +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
c4f52a34f4
Merge pull request #23938 from akka/wip-23919-optimize-stream-tcp-writes2-patriknw
rename according to previous review, #23919
2017-11-07 15:32:46 +01:00
Patrik Nordwall
607e3dd466 rename according to previous review, #23919 2017-11-07 13:38:05 +01:00
Martynas Mickevičius
3bc627d766 #23880 Specify scope when disabling scaldoc task (#23928) 2017-11-07 10:38:57 +01:00
Patrik Nordwall
f017f6a90a Optimize TCP stream writes, #23919 (#23920)
* This is an optimization of TcpStreamLogic to accumulating bytes in a buffer while waiting for
  acknoledgment of pending write. This improves throughput for small messages (frames)
  without sacrificing latency. While waiting for the ack the stage will eagerly pull
  from upstream until the buffer limit is exceeded. Accumulated bytes are written
  immediately when ack is received.
* Noticed 20x throughput improvement with Artery MaxThroughputSpec thanks to this buffer
  when working on the Artery TCP implementation. The small message (100 bytes) benchmark
  improved from 30k msg/s to 600k msg/s.
2017-11-07 11:07:29 +09:00
Patrik Nordwall
d7330c3c72
Merge pull request #23910 from akka/wip-isGossipSpeedupNeeded-patriknw
small perf improvement of isGossipSpeedupNeeded for single-dc
2017-11-06 16:42:28 +01:00
Patrik Nordwall
2690ce1730
Merge pull request #23887 from akka/wip-22192-RemoteScatterGatherSpec-patriknw
harden RemoteScatterGatherSpec, #22192
2017-11-06 16:41:03 +01:00
Patrik Nordwall
768753556b Fix shutdown timeout in multi-jvm tests, #23925 (#23927) 2017-11-06 13:31:51 +01:00
James Roper
2e71b751bf Provide meaningful name for SubSource.out/SubSink.in (#23922)
Fixes #23921

Ensures that when an erroneous invocation of a method on `SubSink` or
`SubSource` (eg, push when not allowed), that the source of the
invocation can more easily be identified. Since the invocations on these
are generally through async callbacks, the stack trace can't be used to
help, hence why the name of the inlet/outlet (which will be included in
the error message) is so important.
2017-11-06 19:30:12 +09:00
Patrik Nordwall
95e0ac43e9 small perf improvement of isGossipSpeedupNeeded for single-dc 2017-11-02 18:27:50 +01:00
Johan Andrén
c8748e8cf0
#23848 Align typed persistence API with ReplicatedEntity API
* Single effect factory companion, rather than concrete types - Improves discoverability and hides implementation details (hopefully making maintenance, ensuring bin comp. etc. easier)
* Actions renamed to CommandHandler
* Rename applyEvent to eventHandler - Especially makes sense after renaming actions to command handler
* Rearrange parameters from most stable to least stable
* onRecoveryCompleted cannot modify state
* Full types for function parameters to make the API easier to understand
2017-11-02 14:39:56 +01:00
Martynas Mickevičius
9506c7d949 #23861 Test maximum burst immediatelly after drain 2017-11-02 14:38:02 +01:00
Arnout Engelen
cb2e003a85 Avoid javax.xml in SerializeSpec (#23903) (#23905)
Neater anyway, and would become problematic with jdk9
2017-11-02 21:40:14 +09:00
Martynas Mickevičius
1f5da40319 #23880 Set sources for doc task to empty, as skip does not seem to work (#23900) 2017-11-02 21:11:43 +09:00
Christopher Batey
5a37cdc862 Cross DC gossip fixes #23803
* Adjust cross DC gossip probability for small nr of nodes in a DC
When a Dc is being bootstrapped the initial node has no local peers and
can not gossip if it selects a local gossip round. Start at a
probability of 1.0 for a single node cluster and move down 0.25 per node
until a 5 node DC is reached then use the cross-data-center-gossip-probability
* Fix cross DC gossip selecting of oldest members
This used to select the members based on the sort order members in
Gossip (by address) rather than by upNumber
2017-11-02 09:17:24 +01:00
Richard Imaoka
a50df1c575 Add combinedMat method to Source (#23809)
* Add combinedMat method to Source

* Fix formatting
2017-11-02 10:34:40 +09:00
Richard Imaoka
0988933fac Stream cookbook sample for adhoc source (#23761) 2017-11-01 15:24:05 +01:00
Arnout Engelen
8eae33f40c Update to scala 2.12.4 (#23896)
* Enable (and prefer) scala 2.12.4

* Keep 2.11 the default
2017-11-01 23:14:05 +09:00
Christopher Batey
3cad104107
Merge pull request #23877 from RaymondKlass/stream_doc_typo
fix missing letter typo in stream-flows-and-basics #23876
2017-11-01 14:11:03 +00:00
Ritesh Puj
67da5359a0 Update logging.md (#23892)
Anchor text changed from SL4FJ to SLF4J
2017-11-01 10:49:42 +01:00
Christopher Batey
511180ef39 Stop actor system from shutting down on Cluster.leave (#23872)
This then sets a race bewtween the rest of the test running as once the
ActorSystem shuts down test test coordinator won't for for barriers etc.
2017-10-31 19:02:28 +01:00
Patrik Nordwall
df96139712 harden RemoteScatterGatherSpec, #22192 2017-10-31 17:22:16 +01:00
Martynas Mickevičius
e460d40f6a
Merge pull request #23884 from 2m/wip-do-not-publish-doc-2m
#23880 Do not generate api doc for NoPublish projects
2017-10-31 16:56:11 +02:00
Alexander Golubev
9b43ce71ba +str AsyncCallbacks lost on finished stage by error 2017-10-31 10:25:30 -04:00
Patrik Nordwall
919c4f690f
Merge pull request #23883 from akka/wip-log-ignore-gossip-patriknw
fix confusing logging when receiving gossip from unknown
2017-10-31 15:02:42 +01:00