Commit graph

1871 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
Nafer Sanabria
80d48ead5a per bugfix #21824 pass the message which cause restart in PersistentActor 2016-11-17 14:11:34 +01:00
Richard Imaoka
693cb6a58b Add resolveOneCS to ActorSelection for Java CompletionStage 21726 2016-11-11 17:21:17 +01:00
Patrik Nordwall
4f013a3d1e avoid infinite blocking in TcpConnectionSpec #21375
* use socket timeout
* additional cleanup of socket utils
2016-11-09 17:36:04 +01:00
Johan Andrén
512baeab24 Merge pull request #21778 from bantonsson/make-akka-tests-pass-on-scala-2.12
* =act Test that serialization works instead of that the bytes match #21771
* =rem Don't try to serializa null file names in stack traces #21772
* =act Ignore some line number tests on Scala 2.12 #21773

* =act,rem Clean up some test serialization issues for Scala 2.12
2016-11-01 17:53:52 +01:00
Björn Antonsson
de47178eb5 =act,rem Clean up some test serialization issues for Scala 2.12 2016-11-01 11:55:15 +01:00
Björn Antonsson
53b9a2650c =act Ignore some line number tests on Scala 2.12 #21773 2016-11-01 11:55:15 +01:00
Patrik Nordwall
b233b6a675 Merge pull request #21744 from ortigali/wip-21719-CircuitBreakerSpec
Add openLatch.reset to some tests
2016-11-01 07:37:46 +01:00
Björn Antonsson
d2552128cb =act Test that serialization works instead of that the bytes match #21771 2016-10-31 15:40:47 +01:00
Patrik Nordwall
1ff1f5edee small test changes for Scala 2.12 (#21738) 2016-10-28 14:59:08 +02:00
ortigali
f104fea51f Add openLatch.reset to some tests #21719 2016-10-28 11:43:08 +05:00
Johan Andrén
50370c69a3 ByteString.indexOf optimized to speed up framing stage #21530 2016-10-19 11:26:50 +02:00
Konrad Malawski
a6a5556a8f Remove Akka-HTTP sources from akka/akka, moving to akka/akka-http! (#21690) 2016-10-18 15:17:17 +02:00
Konrad Malawski
8168394d13 Add missing copyright header to DispatcherShutdownSpec 2016-10-18 14:08:54 +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
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
Patrik Nordwall
54f5b836fc Merge branch 'master' into wip-merge-to-master-patriknw 2016-09-29 13:56:37 +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
Ortigali
c1a840b2e9 MDC support for LoggingReceive #21361 2016-09-20 09:34:11 +02:00
Johan Andrén
e493bdc1b8 Remove hardcoded port number in TcpConnectionSpec, #21375 2016-09-14 13:22:06 +02:00
Patrik Nordwall
e8ce261faf Merge branch 'master' into wip-sync-2.4.10-patriknw 2016-09-09 14:12:16 +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
Patrik Nordwall
8ab02738b7 Merge branch 'master' into wip-sync-artery-dev-2.4.9-patriknw 2016-08-23 20:14:15 +02:00
Endre Sándor Varga
5e830323f6 Updating to ScalaTest 3.0.0 and ScalaCheck 1.13.2 2016-08-22 11:13:49 +02:00
Patrik Nordwall
614512f92b Merge pull request #20525 from svezfaz/19872-actor-path-double-wildcard
double wildcard for actor deployment config #19872
2016-08-11 11:04:17 +02:00
Patrik Nordwall
a5df0d74e9 increase test timeout in CircuitBreakerSpec, #20982 2016-08-10 13:04:36 +02:00
svezfaz
05207a1cf6 double wildcard for actor deployment config #19872 2016-08-09 19:02:01 +01:00
Johan Andrén
d3df2e5ed3 =act ByteString deserialization unbroken for large bytestrings #20901 (#21096) 2016-08-03 16:20:59 +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
Johan Andrén
9dc474a10a Pre-fuse http server layer (#20990)
* Ported the first pre-fuse part endre did in pr #1972

* Allow the same HttpServerBluePrint to materialize multiple times

HttpRequestParser now behave like a proper GraphStage (with regards to materialization)
HttpResponseParser is kept "weird" to limit scope of commit.

* TestClient method to dump with http client and curl in parallel for comparison

* Cleanup

* tightening down what can be overriden
* tightening down access modifiers
* updates according to review

* Better defaults for the test server

* Ups. Don't listen to public interfaces in test server by default.
2016-07-22 14:07:41 +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
Konrad Malawski
d3ea9e49db =htp cache default RejectionHandler instance, it's safe to share (#20996) 2016-07-20 12:18:52 +02:00
Konrad Malawski
400402f76c +act #20936 add CompletionStage API to CircuitBreaker (#20937) 2016-07-14 14:03:04 +02:00
Patrik Nordwall
ccb5d1ba04 Merge branch 'master' into wip-sync-2.4.8-artery-patriknw 2016-07-08 15:38:33 +02:00
Richard Imaoka
08aa41c818 Suppress Java Serializer warnings when extending NoSerializationVerificationNeeded (#19963) (#20785) 2016-07-06 11:48:15 +02:00
Patrik Nordwall
839ec5f167 Merge branch 'master' into wip-sync-artery-patriknw 2016-06-03 11:09:17 +02:00
Björn Antonsson
c66ce62d63 Update to a working version of Scalariform 2016-06-02 22:12:36 +02:00
Patrik Nordwall
184e45e6b2 use ByteString.empty
* and a few other cleanups
2016-06-01 15:01:02 +02:00
Patrik Nordwall
be448e9fbb fix memory leaks in tests, #20659 2016-05-31 08:51:00 +02:00
Patrik Nordwall
d759f738ea add serialization api based on ByteBuffer, #20324
* new trait ByteBufferSerializer with fromBinary and toBinary
  methods that takes ByteBuffer, this can be mixed in to
  existing serializer without breaking compatibility
* implement the ByteBufferSerializer in the ByteArraySerializer
* minor adjustment of the class manifest cache
2016-05-27 12:26:08 +02:00
Patrik Nordwall
b3591b48d0 regression of Creator check, #20537 (#20538)
* try to reproduce the regression of Creator check, #20537

* fix regression of Creator check, #20537

* the check of the enclosing class parameter should check the first parameter
2016-05-24 13:10:23 +02:00
Patrik Nordwall
695b237156 =act #16969 Props.create must not check STATIC flag (#20488)
* =act #16969 Props.create must not check STATIC flag

* also support the new Creator<SomeActor> without class param
2016-05-13 09:57:37 +02:00
Johan Andrén
dffe407950 =act #18938 fix MetricsBasedResizerSpec
* use nanoTime for high resolution time measurement in spec
* Adapt elbow room and make sure there is time between reportMessageCount calls
2016-05-12 08:58:00 +02:00
Patrik Nordwall
f851bfbad6 handle tick wrap around in LARS, #20424 (#20435)
* keep track of total ticks in long
2016-05-06 10:53:40 +02:00