Commit graph

4470 commits

Author SHA1 Message Date
Johannes Rudolph
97bada7deb =act #21774 fix ByteString.toString to use fixed stringPrefix for all subclasses (#21775)
Otherwise, with 2.12,

ByteString().toString == "ByteString.ByteString1C()"

which would expose implementation details in the string representation.
This can lead to failing tests due to test expecting a particular string
representation of a ByteString which might be bad practice, yes, but is also
convenient.

The change is due to a fix in Scala for SI-9019 for which the string representation
of TraversableLike was changed which ByteString inherits.
See https://github.com/scala/scala/pull/5258/files
2016-11-17 15:51:36 +01:00
Richard Imaoka
693cb6a58b Add resolveOneCS to ActorSelection for Java CompletionStage 21726 2016-11-11 17:21:17 +01:00
Björn Antonsson
ca684e9beb =act Fix warning log that was published as error #21765
Fixes #21765
2016-10-31 10:26:16 +01:00
Konrad Malawski
45d53bd520 fix mima warnings (#21756) 2016-10-28 17:22:36 +02:00
Konrad Malawski
92671e6d98 +act,rem,str add SECURITY marker to logs (#21749)
* +act,rem,str add SECURITY marker to logs

* Update TlsSpec.scala
2016-10-28 14:52:17 +02:00
Konrad Malawski
3951cf4e68 +slf,act #21671 allow using Markers with LoggingAdapter (#21707)
* +slf,act #21671 allow using Markers with LoggingAdapter

* +slf,act #21671 allow using Markers with LoggingAdapter

* improve compatibility

* add docs

* address review comments

* actually print the marker
2016-10-27 15:07:59 +02:00
Konrad Malawski
ad3ef5982c +rem remote deployment whitelist feature (#21676)
* +rem remote deployment whitelist feature (initial commit)

+rem remote deployment whitelist feature (initial commit)

* +doc,rem added docs on remoting whitelist

* Update remoting.rst

* Update remoting.rst
2016-10-24 13:44:15 +02:00
Wojciech Grajewski
7eb4afc475 Adding create() to ReceiveBuilder to promote a builder-like syntax #18894 2016-10-23 22:35:18 +02:00
Johan Andrén
50370c69a3 ByteString.indexOf optimized to speed up framing stage #21530 2016-10-19 11:26:50 +02:00
Patrik Nordwall
09a6d2ede1 Merge pull request #21687 from akka/wip-21330-patriknw
Added a flag on takeWhile to allow it to include the final element, #21330
2016-10-18 14:58:53 +02:00
Martynas Mickevičius
954161c5b9 #21574 Fix dispatcher use after system termination 2016-10-18 14:08:54 +02:00
Ortigali
db482180b6 Removing floating point arithmetic in LARS.roundUp method (#21473) 2016-10-18 12:38:52 +02:00
Falmarri
a28d2c579f Added a flag on takeWhile to allow it to include the final element, #21330 2016-10-18 12:02:59 +02:00
Spencer Judge
60bea26171 20597 - Make BackoffSupervisor respect OneForOneStrategy's maxNumRetries property (#20772)
* Added support for withinTimeRange property of OneForOneSupervisor to BackoffSupervisor
2016-10-17 15:22:32 +02:00
monkey-mas
19dbe9a487 =act clean up ByteString#drop(...) (#21440)
* =act clean up ByteString#drop(...)

Current implementation has a good algorithm but seems a little bit complicated.

Clening-up does not suffer the performance (actually seems to have the better
performance when dropping(N-1)) where N is the length, and is easy to understand
almost the same algorithm now.

* Change private[akka] to priavte

* Rename go(...) and some variables

They should be easy for us to understand what they are.

* Add benchmark of ByteString#drop(...)
2016-10-05 09:25:34 -05:00
Ortigali
cc845c84b0 #17174 add support various log level for LoggingReceive (#21578)
* add support various log level for LoggingReceive #17174

* fix binary compatibility #17174
2016-10-04 18:20:27 -05:00
matsu-chara
12c81e4a41 DirectBufferPool.tryCleanDirectByteBuffer always failed #21622 2016-10-04 15:19:31 -05:00
Patrik Nordwall
6d64e49e3a Merge pull request #21605 from ktoso/wip-bytebuf-serial
+doc document ByteBufferSerializer for Artery #21601
2016-09-30 17:38:11 +02:00
Konrad Malawski
e7ed0a2e6b +doc document ByteBufferSerializer for Artery #21601 2016-09-30 16:16:49 +02:00
Johan Andrén
ed6c93adea Do not reference remote settings directly as it breaks if remoting is not on classpath (#21604) 2016-09-30 15:33:50 +02:00
Patrik Nordwall
54f5b836fc Merge branch 'master' into wip-merge-to-master-patriknw 2016-09-29 13:56:37 +02:00
Endre Sándor Varga
14e0188a1c 21202: Added more serializers for built-in stuff 2016-09-28 12:17:17 +02:00
monkey-mas
f8f8828451 =act improve ByteString#take(...) (#21438)
Currently, we use ByteStringBuilder to create a new ByteString instance,
which would not be quite efficient.

Instead of doing this, we can do as follows so that we can achieve better performance:
1. Seek the index of _last_ vector element we need to _take_
2. Find the number of characters left to take from the _last_ ByteString1 element.
3. Create ByteString based on the information we obtained from 1 and 2

Then we just need to create a new Vector[ByteString1] at most twice, which should be
better than the current implementation, i.e., _append_ a new element every time we check
bytestrings(Vector[ByteString1]) element, which ends up O(N) _append_ execution where _N_ is
the length of bytestrings.
2016-09-21 20:40:54 -07:00
Patrik Nordwall
1926560e41 stop outbound streams when quarantined, #21407
* they can't be stopped immediately because we want to send
  some final message and we reply to inbound messages with `Quarantined`
* and improve logging
2016-09-21 14:38:13 +02:00
Ortigali
c1a840b2e9 MDC support for LoggingReceive #21361 2016-09-20 09:34:11 +02:00
Konrad Malawski
c20b6088cd =art add metadata field to the header, #20703 2016-09-16 18:13:23 +02:00
Johannes Rudolph
0e253b4208
=rem,act move direct buffer cleaning util method to akka.io 2016-09-12 14:25:30 +02:00
Patrik Nordwall
4e34e4373c Merge pull request #21418 from akka/wip-sync-2.4.10-patriknw
Sync Artery with 2.4.10
2016-09-09 15:11:12 +02:00
Patrik Nordwall
e8ce261faf Merge branch 'master' into wip-sync-2.4.10-patriknw 2016-09-09 14:12:16 +02:00
Patrik Nordwall
97e0628173 enable misc serializers by default for Artery, #21339
* placed them in a new section additional-serialization-bindings,
  which is included by default when Artery is enabled
* can also be enabled with enable-additional-serialization-bindings
  flag to simplify usage with old remoting
* added a JavaSerializable marker trait that is bound to JavaSerializer
  in testkit, this can be used in tests so that we eventually can run
  tests without the java.io.Serializable binding
2016-09-09 09:01:15 +02:00
Roland Kuhn
320271cc31 new implementation for Akka Typed #21131
This is the first step towards a completely new and optimized actor
implementation for Akka Typed. The full previously existing test suite
passes for both implementations. The following is an incomplete list of
things that remain to be done:

* document the semantic differences between untyped and typed, in
  particular around actor restarts and the delivery ordering guarantees
  for Terminated messages (also document the difference between
  ActorSystemImpl and ActorSystemAdapter)
* implement EventStream and logging—this currently just delegates to an
  extra untyped ActorSystem (of course To Be Fixed)
* implement dispatcher selection
* implement and test queue size limitation
* implement optimized message queue instead of CLQ (for zero-allocation
  messaging)
* clean up test log output (something does not work with TestEventListener
  and EventFilter for ActorSystemImpl tests)
* document the capabilities (or more appropriately: the limitations) of
  interoperability between ActorSystemImpl and ActorSystemAdapter
* fix ActorPath UID generation (i.e. make sure that everything gets a
  meaningful value instead of zero)
* re-evaluate throughput/rescheduling logic in ActorCell

Oh, and by the way: as per PerformanceSpec (doing simple ping-pong) the
new implementation is ca. 30% faster than the adapter over akka-actor
:-)
2016-09-08 10:10:35 +02:00
kenji yoshida
95d13d4771 =act fix typo in ByteString#take error message (#21366) 2016-09-05 11:05:34 +02:00
Hawstein
df4a6270e6 exponential backoff in circuit breaker #21036 2016-09-02 13:24:17 +02:00
Patrik Nordwall
90cce8579a Merge branch 'master' into wip-sync-artery-dev-patriknw 2016-08-31 08:59:49 +02:00
Richard Imaoka
ec7d6a6998 Expose success and fail methods in CircuitBreaker #18347 2016-08-30 11:09:19 +02:00
Konrad Malawski
fb45dd03f3 =act #21237 fix regression in ByteString.slice (#21294)
* =act #21237 fix regression in ByteString.slice

* Update ByteStringSpec.scala
2016-08-29 09:38:09 +01:00
Adriaan Moors
95f43c55cd add override for scala/scala#5331 2016-08-26 13:43:12 +02:00
Patrik Nordwall
bcd12f9816 minor cleanup of WildcardIndex 2016-08-24 13:01:09 +02:00
Patrik Nordwall
8ab02738b7 Merge branch 'master' into wip-sync-artery-dev-2.4.9-patriknw 2016-08-23 20:14:15 +02:00
Patrik Nordwall
0d40f61dc4 Merge pull request #21155 from andreaTP/unsVis
=act change Unsubscribers visibility.
2016-08-23 12:18:03 +02:00
svezfaz
05207a1cf6 double wildcard for actor deployment config #19872 2016-08-09 19:02:01 +01:00
andreaTP
857308fc1a =act change Unsubscribers visibility 2016-08-09 16:38:14 +02:00
Johan Andrén
d3df2e5ed3 =act ByteString deserialization unbroken for large bytestrings #20901 (#21096) 2016-08-03 16:20:59 +02:00
Konrad Malawski
f2419f5a08 =htp framed entity streaming cleanup, renames 2016-08-02 15:27:21 +02:00
Konrad Malawski
bb701d1725 HTTP: Optimise response rendering and response parsing (#21046)
* +htp,ben HttpBlueprint benchmark

* +act bring OptionVal from artery-dev
+htc raw benchmarks

* =htc request parsing benchmark

* +htc,ben add benchmark for longer (raw) json response

* =htc optimise renderHeaders, less Option allocs

* -htc remove FastClock, not quite worth it
2016-07-28 22:32:40 +02:00
Alexei
8fbb3e37c0 =act Identify does not reset idle state of actors under ReceiveTimeout. fixes #20998 (#20999)
* Identify does not reset idle state of actors under ReceiveTimeout #20998

* unit test for Identify not to have impact on ReceiveTimeout #20998
2016-07-22 14:09:16 +02:00
Vadim Semenov
14bfc353ba Fixed scaladoc-typo in FSM.scala 2016-07-21 17:36:48 +02:00
Konrad Malawski
fde9d86879 ByteString optimisations of methods in HTTP parsing hot-path (#20994)
* =act #20992 prepare benchmarks for ByteString optimisations

* =act #20992 optimise common ByteString operations: drop,take,slice...

* =act,htc #15965 add ByteString.decodeString(java.nio.charsets.Charset)
2016-07-20 14:01:51 +02:00
Richard Imaoka
6c82176c30 +act Clarify usage of FromConfig in doc and API doc #18771 (#20981) 2016-07-18 13:16:36 +02:00
abesanderson
03fcf871a9 additional debug logging for fsm #20952
* additional debug logging for fsm
* dont construct the string if debug logging disabled
2016-07-15 10:02:37 +02:00