Commit graph

22279 commits

Author SHA1 Message Date
Christopher Batey
f9305587c6
Upgrade to SBT 1.1.6 2018-06-01 07:48:29 +01:00
jorgesg1986
fceca07ec0 Added log messages when leadership is gained or lost (#25053) 2018-05-31 15:43:53 +02:00
Christopher Batey
d03f21a35a
Suggest ClusterSharding hasn't been started in log message (#25177) 2018-05-31 14:43:06 +01:00
Tim Moore
5c401584c3 Add static import convenience methods to Done and NotUsed (#25174)
* Add Done.done() convenience for static import
* Add NotUsed.notUsed() convenience for static import
2018-05-31 13:12:20 +01:00
Christopher Batey
c8f4a17025
Clarify typed supervision when returning a new behavior (#25163) 2018-05-31 13:07:15 +01:00
Patrik Nordwall
ec23844db6
Merge pull request #25170 from laszlovandenhoek/takeWhileJavaDSL
eliminate extraneous takeWhile$default$2 method in Java DSL
2018-05-31 13:33:12 +02:00
László van den Hoek
e12a492679 eliminate extraneous takeWhile method 2018-05-31 10:56:27 +02:00
Johan Andrén
333c05da60 Hopefully fixed a race in the shutdown test (#25155) 2018-05-31 07:55:13 +01:00
Doug Roper
b6d6d543a8 Optimize ByteString.grouped(size) (#25153)
* Add ByteString.grouped() benchmark & tests.

* Implement ByteString.grouped().

* PR comments.
2018-05-30 23:31:35 +09:00
Patrik Nordwall
a14347e18d
Merge pull request #25167 from akka/chbatey-patch-1
Update stream-integrations.md
2018-05-30 13:37:41 +02:00
Christopher Batey
3c12196d22
Update stream-integrations.md 2018-05-30 11:33:25 +01:00
Sergey Kisel
f4cc1dd0f9 ScanAsync handling fully complete stream while future is resolved #25112 2018-05-30 13:01:18 +03:00
Christopher Batey
a7d94db803 Routing docs: Fix typo and clarify group behavior (#25162) 2018-05-29 21:07:21 +09:00
Christopher Batey
485179c5f6 ClusterDeathWatchSpec: assert cluster status bewtween tests (#25126)
Test failed due to node4 still seeing node3 in a subsequent test
but assumed it had been removed.

Fixes #25065
2018-05-29 13:38:20 +02:00
Doug Roper
034f6c5c96 Remove unnecesary drop() from ByteString1.writeToBuffer(ByteBuffer) (#25151)
I found a strange call to `drop()` in `ByteString1.writeToBuffer(ByteBuffer)`. `drop()` instantiates a new `ByteString1` which is immediately discarded to GC. Appears unnecessary.

Removing it makes the `ByteString1` implementation match the one `ByteString1C`.
2018-05-29 20:13:07 +09:00
Patrik Nordwall
73284fd897 log discarded messages in read-only endpoint #25127 2018-05-29 12:47:09 +02:00
Jimin Hsieh
7c3a8a8ed5 java.time.Duration APIs in javadsl.TestKit #24646 2018-05-29 12:17:48 +02:00
Linh Nguyen
e078e5a747 Add return type for FlowMonitorState.finished #24885 2018-05-29 12:08:13 +02:00
Richard Imaoka
a17a61557c doc Replace the word stage by operator in stream doc (#25138) 2018-05-29 10:00:48 +02:00
Patrik Nordwall
1919f222fa
Merge pull request #25154 from akka/wip-25143-neg-ack-log-patriknw
limit negative acknowledgement logging, #25143
2018-05-28 11:45:26 +02:00
Patrik Nordwall
cf864a940f limit negative acknowledgement logging, #25143 2018-05-28 09:11:51 +02:00
Martynas Mickevičius
3d61400409 Decrease the uninitialized connection counter as late as possible #25148
This fixes (or decreases the chances significately for) a
situation where a stream of incoming connections is closed
and the incoming connection does not have a chance to startup
properly.
2018-05-25 16:22:48 +02:00
Richard Imaoka
84d53d1ad1 Persistence: replace initialState with emptyState (#25129) 2018-05-25 14:29:22 +02:00
Christopher Batey
8eb7b1ea81
Typed persistent event adapters/wrappers (#25050)
Typed persistent event adapters/wrappers
2018-05-25 10:23:04 +01:00
Arnout Engelen
c8064d069b
Merge pull request #25139 from ortex/fix-graph-stage-logging-docs
fix graph stage logging docs
2018-05-25 10:13:12 +02:00
Max Calderoni
c6b1f9b884 =doc wording improvement in stream-graphs.md subjunctive (#25145) 2018-05-25 14:59:59 +09:00
ortex
ea4fe1ba99 using unidoc for graph stage logging docs 2018-05-25 02:14:16 +03:00
Arnout Engelen
49322afae0 Update scala-java8-compat (#25142)
* Update scala-java8-compat

* Update scala-java8-compat only for scala 2.13

As it looks like 0.8.0 is not bincompat with 0.9.0
2018-05-24 23:08:22 +09:00
Doug Roper
8286ecffc5 Fix MultiByteArrayIterator.copyToArray silently drops bytes. #16303 (#25141)
I just got burned by #16303.

Answering https://github.com/akka/akka/issues/16303#issuecomment-62957914, it looks like `copyToArray[B >: Byte](Array[B])` can't call `getBytes(Array[Byte], Int, Int)` due to the type constraint (defined by `GenTraversableOnce`).

Instead, I'm going with the simple `isEmpty` solution proposed in the description of #16303 by @kpatrick-kixeye.
2018-05-24 16:11:50 +09:00
Andrew Bushmin
6a7488fa19
fix graph stage logging docs 2018-05-23 23:29:39 +03:00
Arnout Engelen
d08ebf4552
Merge pull request #24941 from hepin1989/deadleater
= actor add clarify message to dead letter listener
2018-05-23 12:25:16 +02:00
Konrad `ktoso` Malawski
6b204ff121
add missing have for past tense 2018-05-23 01:39:52 +09:00
虎鸣
8736d2a407 = actor add clarify message to dead letter listener 2018-05-22 22:59:55 +08:00
Arnout Engelen
414be2c0cb
doc Replace graph stage and processing stage by operator in .md files for stream (#25117) 2018-05-22 15:59:54 +02:00
Richard Imaoka
cbc0ee484f Reflect review comments 2018-05-22 20:57:00 +09:00
Mirco Dotta
2722cf8c6b EventFilter.error filters all errors regardless of the cause, #25057 (#25125) 2018-05-22 13:54:56 +02:00
Patrik Nordwall
3439377816
Merge pull request #24983 from akka/wip-24972-tcp-restart-patriknw
Quarantine and cleanup idle associations, #24972
2018-05-22 13:11:36 +02:00
Patrik Nordwall
7fc7744049 Quarantine and cleanup idle associations, #24972
* fix NPE in shutdownTransport
  * perhaps because shutdown before started
  * system.dispatcher is used in other places of the shutdown
* improve logging of compression advertisment progress
* adjust RestartFlow.withBackoff parameters
* quarantine after ActorSystemTerminating signal
  (will cleanup compressions)
* Quarantine idle associations
  * liveness checks by sending extra HandshakeReq and update the
    lastUsed when reply received
  * concervative default value to survive network partition, in
    case no other messages are sent
* Adjust logging and QuarantinedEvent for harmless quarantine
  * Harmless if it was via the shutdown signal or cluster leaving
2018-05-22 13:10:30 +02:00
Konrad `ktoso` Malawski
de04758bb8 more docs for Sink.queue and actorRefWithAck (#25063) 2018-05-22 11:27:54 +02:00
Patrik Nordwall
8f40dc7f03 message adapter catching too much (#25110) 2018-05-22 12:14:53 +03:00
Olivier ROLAND
00f07c2429 Fix ReceiveTimeout issue with NotInfluenceReceiveTimeout #24770 2018-05-22 11:42:35 +03:00
Patrik Nordwall
f750f73e1f define interfaces for all Typed extensions, #24776 2018-05-22 09:23:50 +03:00
Patrik Nordwall
e6633f17fa
Make sure Serialization.currentTransportInformation is always set, #25067
* The ThreadLocal Serialization.currentTransportInformation is used for serializing local
  actor refs, but it's also useful when a serializer library e.g. custom serializer/deserializer
  in Jackson need access to the current ActorSystem.
* We set this in a rather ad-hoc way from remoting and in some persistence plugins, but it's only
  set for serialization and not deserialization, and it's easy for Persistence plugins or other
  libraries to forget this when using Akka serialization directly.
* This change is automatically setting the info when using the ordinary serialize and deserialize
  methods.
* It's also set when LocalActorRefProvider, which wasn't always the case previously.
* Keep a cached instance of Serialization.Information in the provider to avoid
  creating new instances all the time.
* Added optional Persistence TCK tests to verify that the plugin is setting this
  if it's using some custom calls to the serializer.
2018-05-21 16:59:04 +02:00
Richard Imaoka
6ec46e762f Add example for Java typed serialization (#25007)
* Add example for Java typed serialization (#24993)
2018-05-21 15:30:44 +01:00
Thomas Smith
3401a1bd21 Fix BoundedBlockingQueueSpec against spurious wakeups (#25025) 2018-05-21 17:09:25 +03:00
Jonas Chapuis
8ff81fbce7 Clarify mailbox configuration entry location in documentation (#25071) 2018-05-21 17:06:39 +03:00
Patrik Nordwall
52f24e5174 move Typed ActorMaterializer to scaladsl/javadsl, #24868
* add type alias for typed ActorMaterializer
* name it ActorMaterializerFactory in javadsl

Migration guide:
Scala:
import akka.stream.typed.ActorMaterializer -> akka.stream.typed.scaladsl.ActorMaterializer
Java:
import akka.stream.typed.ActorMaterializer -> akka.stream.typed.javadsl.ActorMaterializerFactory
2018-05-21 17:05:09 +03:00
Richard Imaoka
989a80d90f Better warning message on cluster sharding registration (#24906)
* Better warning message on cluster sharding registration (#24295)

* Extra useful message

* Add [] in the log messages around membersByAge.head
2018-05-21 22:00:52 +09:00
Patrik Nordwall
8c4181e552
Merge pull request #25104 from akka/wip-25084-rename-testkit-patriknw
Rename Typed TestKit, #25084
2018-05-21 14:21:02 +02:00
Patrik Nordwall
b08d3acb4b Rename Typed TestKit, #25084
Artifact:
akka-testkit-typed -> akka-actor-testkit-typed

Package:
akka.testkit.typed -> akka.actor.testkit.typed

Config:
akka.typed -> akka.actor.typed
akka.testkit.typed -> akka.actor.testkit.typed
2018-05-21 11:51:51 +02:00