Commit graph

4422 commits

Author SHA1 Message Date
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
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
Konrad Malawski
400402f76c +act #20936 add CompletionStage API to CircuitBreaker (#20937) 2016-07-14 14:03:04 +02:00
Konrad Malawski
55e3e123b1 =act #20910 optimize ByteString#copyToBuffer (#20911) 2016-07-11 18:23:52 +02:00
Richard Imaoka
08aa41c818 Suppress Java Serializer warnings when extending NoSerializationVerificationNeeded (#19963) (#20785) 2016-07-06 11:48:15 +02:00
Patrik Nordwall
675e137d06 =act let onReceive throw Throwable, #20231 (#20781)
* I also tried to change the lifecycle methods (e.g. postStop) but
  that would break source compatibility for code that called super.postStop
2016-07-05 17:58:33 +02:00
Andrea Peruffo
a230f2fe34 =str switch to java std lib ThreadLocalRandom. (#20877) 2016-07-05 14:59:48 +02:00
Richard S. Imaoka
f0e9de4e56 Fix CircuitBreaker Open state's remainingTimeout() method (#20029) 2016-06-13 23:14:45 +09:00
Björn Antonsson
c66ce62d63 Update to a working version of Scalariform 2016-06-02 22:12:36 +02:00
Patrik Nordwall
e90c9b385b Attempt cleaning of DirectByteBuffer, #17194 2016-06-02 13:23:06 +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
Johan Andrén
29029be31d !htp #18919 #19519 New JavaDSL for Akka HTTP (#20518)
* !htt #18919 #19519 Align Java HTTP server DSL with Scala

This commits replaces the Java HTTP server DSL with a Java-8 centric one
which exposes all scala DSL concepts to be usable from Java, including
custom directives, (un)marshallers, rejections, headers, and type safety
for path and query parameters.

* Add RequestContext and RouteResult to Java DSL
fix websockets
WIP bring java docs up to date.
This applies some updates to the root-level documentation

* [htp] Fix java documentation to correctly mention timeouts

Timeouts are configured the same in Java and Scala. Hence, linking to the
scala docs for timeouts from Java.

* =htc fix optionalHeaderValueByType in Java

* =htt #20200 fix java testkit always using NoLogging instead logger

* +htt actually run new javadsl tests, allow overriding config

* =htt improve javadsl test infra with more details when fails

* =htt fix bug in wrong path matcher exposed

* +htp add missing remaining path matcher

* =htp Java DSL cookie tests fixed

* =htt Java DSL ParameterDirectivesTest fixed

Protect the tweets from scalariform

Incorrect response expectations in cache condition directives spec fixed

* =htt Path directives for Java DSL

* +!htt PathMatchers rewritten, made uniform and tests passing

* Bugfix in java reject and a little test-boyscouting

* Revert "Incorrect response expectations in cache condition directives spec fixed"

This reverts commit cd50e89d45db010309f8249b090ea654ebb11c7a.

* +htc HttpAPIsTest is compile time only, not for running
Also, moved from the client package since not strictly a client test.

SecurityDirectives passing

Two faulty tests and two actual bugs.

Fix for cache condition spec not working

* Not sending in Unit instad of the implicit magnet in the test
* HeaderMagnet now works as expected
* Java API added for - and + on DateTime

PetStore example and test fixed

* Annotations to make marshalling work without default constructor
* Made model class immutable

Incorrect tests fixed

Some scaladoc boyscouting as bonus

* =htt RequestValTest sprinkled out across multiple directive tests

Client ip extraction test with incorrect header name fixed.

* =htt Incorrect CodingDirectivesTest fixed.

* =htt Bugfix for Java Unmarshaller.firstOf and fixes to JavaRouteTest

* =htt MarshallerTest fixed

* Missing seal signature added to JavaDSL
* More consistent (with Scala) test kit setup for Java
* missing Javadocs added
* Thread.sleep in default exception handler removed

* =htt copy directive docs, prepare for finishing it up

* +htt SecurityDirectives.authorize variants and test coverage added

* +htt Custom headers in Java DSL

* =htt WIP on java docs

* +htp add missing parameterOrDefault directive
Fixed a lot of doc warnings

* =htc intense progress on javadsl docs

* =htc #20470 Link to issue about docs and fix compile error
compile, migration guide
don't mima check http-experimental

* =htt Java DSL doc warnings fixed.
Only `Could not lex literal_block` ones left now

* =htc fix mima settings

* =doc fix MethodDirectives doc test with custom method

* =htc fix coding directives spec after bad merge

* =htc fix concat being corresponding to route() in javadsl

* =htt Disable consistency check for route/concat as it fails only on ci server

* !htt Minor fixes to PathMatchers
2016-05-16 10:38:40 +02:00
Patrik Nordwall
094c8974ed Merge pull request #20453 from johanandren/wip-document-untyped-actor-with-unrestricted-stash-johanandren
=act #20447 fix UntypedActorWithStash javadoc
2016-05-13 10:12:37 +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
Ganeshwara Herawan Hananda Putra
45df6784aa getLogger that accepts AbstractActor #20478 2016-05-10 09:04:16 +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
Johan Andrén
0fdb72fd87 =act #20447 fix UntypedActorWithStash javadoc 2016-05-04 16:57:53 +02:00
Patrik Nordwall
9a5edf1651 Merge pull request #20405 from andreaTP/unsubscriberSplit
=act split event Unsubscribers.
2016-05-02 11:24:23 +02:00
Johan Andrén
9bf783dd06 Merge pull request #20406 from andreaTP/actorsystem
=act jvm env unaware ActorSystem.
2016-04-28 18:44:57 +02:00
andreaTP
3651aeb923 =act split event Unsubscribers. 2016-04-28 15:40:04 +02:00
Andrea Peruffo
088bf1b842 =act Locale unaware method in Helpers. (#20412) 2016-04-28 15:32:46 +02:00
andreaTP
19d21107f3 =act jvm env unaware ActorSystem. 2016-04-28 12:32:14 +02:00
Patrik Nordwall
3d41f0f58b Merge pull request #20289 from akka/wip-16035-io-close-patriknw
ignore ClosedChannelException when register selector, #16035
2016-04-24 18:55:16 +02:00
Robert Budźko
d2eb2b7949 Exception description modified to reflect exclusion of 0 (#19709) timeout. (#20321) 2016-04-22 15:42:53 +02:00
Johan Andrén
14c08df74a act #20332 Functionality to automatically load library extensions 2016-04-18 15:27:30 +02:00
Patrik Nordwall
140a5b29f6 adjustments for Scala 2.12.0-M4 2016-04-13 17:33:32 +02:00
kerr
f3ac18a362 =act reduce substring call by adding an additional startIndex (#20279) 2016-04-12 14:21:24 +02:00
Patrik Nordwall
08ec7d0f06 Merge pull request #20264 from akka/wip-20263-npe-chr-patriknw
lazy usage of defaultAddress in ConsistentHashingRouter, #20263
2016-04-12 11:22:49 +02:00
Patrik Nordwall
db8f3f8e02 ignore ClosedChannelException when register selector, #16035 2016-04-11 18:03:58 +02:00
drewhk
98947cdbcd Merge pull request #20286 from drewhk/wip-15882-fix-windows-udp-unbind-drewhk
#15882: Fix UDP unbind for Windows
2016-04-11 16:05:42 +02:00
drewhk
b04b99edc3 Merge pull request #20283 from drewhk/wip-20282-windows-unbind-fix-drewhk
#20282: Make unbind work on windows
2016-04-11 14:27:25 +02:00
Endre Sándor Varga
24907d1f60 #15882: Fix UDP unbind for Windows 2016-04-11 13:48:28 +02:00
Endre Sándor Varga
028440d825 #20282: Make unbind work on windows 2016-04-11 11:53:59 +02:00
Patrik Nordwall
78505ccddb lazy usage of defaultAddress in ConsistentHashingRouter, #20263
* because consistent hashing routing pool is used by SimpleDnsManager
  and that can be activated early, before the transport defaultAddress
  is set in the startup
2016-04-11 08:41:45 +02:00
Alexey Noskov
2150dabdc9 Eliminate double-copy of byte array when creating ByteString with varargs 2016-04-02 12:39:12 +03:00
drewhk
a0515780db Merge pull request #19878 from drewhk/wip-19862-throttle-div-zero-2nd-variant-drewhk
#19862 Fix division-by zero on low rates
2016-03-31 13:42:42 +02:00