Commit graph

21535 commits

Author SHA1 Message Date
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
Martynas Mickevičius
5cf29a65a4
#23880 Do not generate api doc for NoPublish projects 2017-10-31 15:52:15 +02:00
Patrik Nordwall
86712d5b40 fix confusing logging when receiving gossip from unknown 2017-10-31 14:05:51 +01:00
Patrik Nordwall
90f0963982
Merge pull request #23870 from akka/formatDocsAndCodeConsistently
Format docs like we do our own code
2017-10-31 11:30:41 +01:00
Sergiy Prydatchenko
f2ebe60b95 Fix excessive rebalance in LeastShardAllocationStrategy (#23830) (#23834)
* Having maxSimultaneousRebalance > rebalanceThreshold in LeastShardAllocationStrategy caused shards "flapping" (deallocation of excessive shards followed by their immediate allocation on the same node)
2017-10-31 19:28:36 +09:00
Patrik Nordwall
0f503b0758
Merge pull request #23826 from agolubev/23614-Java-AbstractActor-doc-issues-agolubev
Fix Java Actor doc issues for 2.5 update
2017-10-31 11:14:27 +01:00
Patrik Nordwall
a2eb173882
Merge pull request #23875 from SethTisue/community-build-2.13
fix 2.13 version checking in MiMa config
2017-10-31 11:13:13 +01:00
Ray Klass
c7bc0ea81a fix missing letter typo 2017-10-30 21:56:06 -04:00
Seth Tisue
58feb2ba0d fix 2.13 version checking in MiMa config
scalaBinaryVersion doesn't become simply "2.13" until Scala 2.13.0
is released (sometime in 2018)
2017-10-30 11:00:52 -07:00
Richard Imaoka
c05a3e0e26 Fix Scaladoc for recoverWithRetries (#23762) (#23763) 2017-10-30 16:21:44 +01:00
Christopher Batey
3bef488faf
Merge pull request #23865 from akka/wip-23862-getCallerName-patriknw
improve AkkaSpec.getCallerName, #23862
2017-10-30 10:14:39 -05:00