Commit graph

20053 commits

Author SHA1 Message Date
drewhk
80adee687a Merge pull request #20671 from drewhk/wip-20627-streamlayout-test-timeout-drewhk
#20627: Increase LayoutSpec stresstest patience
2016-06-02 13:21:16 +02:00
Endre Sándor Varga
38c7627ddc #20627: Increase LayoutSpec stresstest patience 2016-06-02 13:20:35 +02:00
Patrik Nordwall
48212778a5 keep the refuseUid along association state transitions, #20531
* keep the refuseUid (old quarantined) when transitioning
  Pass -> Gated -> Pass
* introduced new state WasGated to keep track of the refuseUid
2016-06-02 13:17:31 +02:00
Patrik Nordwall
abb9a1fd9b gating should not overwrite quarantine, #20531
* Reproduced with cluster sample.
  * auto-down=45s
  * node1 and node2 joins
  * suspend node2 (kill -STOP)
  * node1 removes and quarantines node2
  * resume node2 (kill -CONT)
  * node2 receives heartbeat response from node1, which
    is not expected since node2 is supposed to be quarantined
  * the reason is that the quarantine is overwritten by gating
2016-06-02 13:17:31 +02:00
Konrad Malawski
b9ce2c94f6 =htc #20214 disabling SNI per-connection now works (passing though sslconfig) (#20621) 2016-06-02 13:13:11 +02:00
Patrik Nordwall
91c8e90f82 test for restarting node, #20639 2016-06-02 12:52:55 +02:00
Patryk Jażdżewski
c75504c3b6 doc #20622 Document the Raw URI option in reference docs (#20682)
* #20622: add a paragraph to HTTP Model doc explaining raw-request-uri-header flag

* raw-request-uri-header flag - better description in docs

* fix typo: it's -> its

* fix typo: requests -> request's
2016-06-02 12:25:05 +02:00
tjugo
0eda4075ef +htp #20535 add checkSameOrigin directive to HeaderDirectives (#20560)
*  #20535 add checkSameOrigin directive to WebSocketDirectives

* refactoring + add docs

* refactoring + cleanup in docs

* fix types and conversions in the InvalidOriginHeaderRejection

* simplify InvalidOriginHeaderRejection to InvalidOriginRejection
2016-06-02 11:58:20 +02:00
Patrik Nordwall
8ba36be6c4 =str #20676 harden OutputStreamSourceSpec, #20676 (#20693) 2016-06-02 11:41:34 +02:00
2beaucoup
02904212bd replace thin spaces with regular spaces (to make diagrams look good) (#20696) 2016-06-02 11:38:34 +02:00
Jakub Kozłowski
609fb0ec03 =http #20687 remove dead code and unused import from Unmarshaller (#20688) 2016-06-02 10:57:09 +02:00
Patrik Nordwall
aab46199fd port of some remote multi-node tests 2016-06-02 08:41:11 +02:00
gosubpl
b9b1bf1749 doc #20672 pulling pattern link broken (#20686)
* trailing slash removed from link

* broken link to akka-work-pulling-pattern also fixed in faq
2016-06-01 22:28:09 +02:00
Jan Ypma
0a9283b8da htp #20685 HttpEntity should not care about the materialized type of its Source (#20684) 2016-06-01 16:56:48 +02:00
Patrik Nordwall
184e45e6b2 use ByteString.empty
* and a few other cleanups
2016-06-01 15:01:02 +02:00
Patrik Nordwall
7e1697b6cc Merge pull request #20654 from akka/wip-artery-dispatcher-patriknw
configuration of Artery materializer and dispatcher
2016-06-01 13:40:23 +02:00
John Zhang
b95b60a6a5 +doc #20466 add header directive examples (Java) (#20673) 2016-06-01 13:26:45 +02:00
Patrik Nordwall
e3afe6107d configuration of Artery materializer and dispatcher
* also increased the parallelism-max to 4 for default-remote-dispatcher
2016-06-01 11:59:13 +02:00
Patrik Nordwall
8fb7727526 make it possible to use external Aeron media driver, #20588 (#20653)
* make it possible to use external Aeron media driver, #20588

* on my machine the MaxThroughputSpec maxed out all 8 cores completely,
  and when using external media driver it is much better and easier to
  find the actual bottlenecks

* aeron.properties for external media driver
2016-06-01 11:56:18 +02:00
Patrik Nordwall
fc6a335610 improve performance of literal encoding (#20655)
* improve performance of literal encoding

* use char array instead of getBytes
* JMH benchmark

* use Unsafe to get the char array
2016-06-01 11:55:25 +02:00
Konrad Malawski
fe47d596bc +doc add java example for onCompleteWithBreaker (#20675)
* +doc #20198 add java example for onCompleteWithBreaker

* =doc fix sphinx warnings
2016-06-01 10:31:50 +02:00
Stefano Bonetti
3f8dacfd44 +htp #20198 onCompleteWithBreaker directive (#20402) 2016-05-31 21:48:19 +02:00
Patrik Nordwall
f07041091f Merge pull request #20660 from akka/wip-20659-leaking-tests-patriknw
fix memory leaks in tests, #20659
2016-05-31 19:34:55 +02:00
Patrik Nordwall
b97a72c773 use blocking-io-dispatcher correctly in OutputStreamSource, #20666
* it used the materializer dispatcher for the blocking take
* it was leaking threads (blocking threads) when when materializer was shutdown abruptly
2016-05-31 19:34:00 +02:00
drewhk
d08cf51227 Merge pull request #20611 from drewhk/wip-20564-classcastex-in-graphDSL-drewhk
#20564 Fix compose method of EmptyModule to be able to Keep.left or right
2016-05-31 14:56:33 +02:00
Robert Budźko
3e5e7175a9 htp #20392 ControllerStage should complete when parsing of request failed and bad request response sent. (#20596) 2016-05-31 14:54:32 +02:00
Endre Sándor Varga
e80d7e1801 #20564 Fix compose method of EmptyModule to be able to Keep.left or right
... and use the proper version from the GraphDSL depending on whether materialized value must be altered on an import or not.
2016-05-31 13:37:29 +02:00
Johan Andrén
36516530a0 Fix for dist missing libraries #20661 2016-05-31 12:52:30 +02:00
Alexander Golubev
23027a2801 =str #19921 Error in documentation: Graph_cycles (#20656)
* =str 19921 Error in documentation: Graph_cycles

* =str 19921 Error in documentation: Graph_cycles
2016-05-31 12:28:07 +02:00
Saeed Zarinfam
6b08767137 =doc Fix how to access deadLetters from system in actor (#20665)
When a developer copy `system.deadLetters` from documentation, it does not work in Actor and system must get from context.
2016-05-31 12:05:55 +02:00
Patrik Nordwall
be448e9fbb fix memory leaks in tests, #20659 2016-05-31 08:51:00 +02:00
Jan Ypma
6a13d99bfc =htp #20610 Fix Java RouteTest to not depend on scala DSL in API (#20615) 2016-05-30 21:59:54 +02:00
Daniel Moran
d05866dae7 -str Remove obsolete OneToManyTestStage, #20288 (#20629) 2016-05-30 20:56:29 +02:00
Felipe Fernández
2d6ec9c4cf +doc #20466 Include Future Directives Examples for Java. (#20619) 2016-05-30 16:42:14 +02:00
Patrik Nordwall
5417942c5d Merge pull request #20524 from MQ-EL/fix-remote-quarantine-rds-leak
=rem #20523 fix-rds-leak
2016-05-30 14:13:57 +02:00
Fabian Gutierrez
2b60f5fcbf +doc #20466 akka http javadsl - add debugging directive test (#20651)
* akka http javadsl - add debugging directive test

* fixes line breaks
2016-05-30 10:47:45 +02:00
Patrik Nordwall
c6464ce493 remove async, #20562 (#20645) 2016-05-30 10:42:49 +02:00
Konrad Malawski
9be0ea6c11 =htc #20602 avoid checking racy value if we don't really care (#20617) 2016-05-30 10:42:00 +02:00
gosubpl
66d4f82685 =doc fix inaccurate docs #20632 (#20652)
* Replace Rest with Remaining and RestPath with RemainingPath
* changed files: path-directives.rst and path-matchers.rst
2016-05-29 20:55:35 +02:00
Patrik Nordwall
9c586577a3 Merge pull request #20624 from akka/wip-20568-handshake-restart-patriknw
initiate new handshake after restart of receiving system, #20568
2016-05-27 17:48:12 +02:00
Patrik Nordwall
7505393c89 initiate new handshake after restart of receiving system, #20568
* we don't want to include the full origin address in each message,
  only the UID
* that means that the restarted receiving system can't initate a
  new handshake immediately when it sees message from unknown origin
* instead we inject HandshakeReq from the sending system once in a while
  (1 per second) which will trigger the new handshake
* any messages that arrives before the HandshakeReq are dropped, but
  that is fine since the system was just restarted anyway
* note that the injected handshake is only done for active connections,
  when a message is sent
* also changed the UID to a Long, but there are more places in old remoting
  that must be changed before we actually can use a Long value

fix lost first message, #20566

* the first message was sometimes dropped by the InboundHandshake stage
  because it came from unknown origin, i.e. the handshake had not completed
* that happended because the ordinary messagage arrived before the
  first HandshakeReq, which may happen since we sent the HandshakeReq
  over the control stream
* this changes so that HandshakeReq is sent over the same stream, not
  only on the control stream and thereby the HandshakeReq will arrive
  before any other message
* always send HandshakeReq as first message
  * also when the handshake on sender side has been completed at startup
  * moved code from preStart to onPull
2016-05-27 17:05:23 +02:00
Patrik Nordwall
92404bc470 Merge pull request #20637 from akka/wip-20324-bytebuffer-serialization-patriknw
add serialization api based on ByteBuffer, #20324
2016-05-27 16:41:18 +02:00
Patrik Nordwall
a0f8f19e86 change header to use serializer id instead of FQCN
* because FQCN can become a problem for rolling upgrade scenarios
  where you want to rename serializer classes
* also renamed classManifest to manifest because it doesn't have
  to be class names
2016-05-27 12:26:15 +02:00
Patrik Nordwall
aa2c4fe7bf handle serialization errors, #20324 2016-05-27 12:26:15 +02:00
Patrik Nordwall
e74e1da6cc optimize currentTransportInformation 2016-05-27 12:26:14 +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
2ff76299c9 Merge pull request #20633 from akka/wip-artery-jmh-bench-patriknw
add JMH benchmark for encoder decoder stage
2016-05-27 12:22:27 +02:00
Patrik Nordwall
5b7c978844 add JMH benchmark for encoder decoder stage
* CodecBenchmark that tests encode, decode and combined
  encode + decode
* refactoring of codec stages to make it possible to
  run them without real ArteryTransport
* also fixed a bug in inbound stream for large messages,
  it was using wrong envelope pool
2016-05-27 12:21:30 +02:00
Patrik Nordwall
e2c6948c15 Merge pull request #20620 from hseeberger/20590-fileio
Return failed IOResult for non-existint file (closes #20590)
2016-05-26 16:04:36 +02:00
Heiko Seeberger
f4186b5391 Return failed IOResult for non-existint file (closes #20590) 2016-05-26 15:00:43 +02:00