Commit graph

20166 commits

Author SHA1 Message Date
Patrik Nordwall
e101fe1232 Merge pull request #21869 from akka/wip-21810-pending-patriknw
mark StressSpec pending for Artery until we fix it, #21810
2016-11-18 15:44:49 +01:00
Robert Varga
e465f07d94 Fix #21791 by adding exclusions scala packages in external moduls
This patch fixes akka-stream's OSGi manifest by adding
an explicit exclusion for scala.* packages known to have
different versions, so they do not get expanded by scalaImport()
and subsequent "*".

Signed-off-by: Robert Varga <nite@hq.sk>
2016-11-18 14:02:59 +01:00
Patrik Nordwall
cc170df4d2 mark StressSpec pending for Artery until we fix it, #21810 2016-11-18 13:06:33 +01:00
Patrik Nordwall
92706a6da9 Merge pull request #21859 from akka/wip-21847-leave-patriknw
harden cluster leaving, #21847
2016-11-18 12:34:13 +01:00
Patrik Nordwall
68383b5001 harden cluster leaving, #21847
As documented in the code:

// Leader is moving itself from Leaving to Exiting. Let others know (best effort)
// before shutdown. Otherwise they will not see the Exiting state change
// and there will not be convergence until they have detected this node as
// unreachable and the required downing has finished. They will still need to detect
// unreachable, but Exiting unreachable will be removed without downing, i.e.
// normally the leaving of a leader will be graceful without the need
// for downing. However, if those final gossip messages never arrive it is
// alright to require the downing, because that is probably caused by a
// network failure anyway.

That is fine, but this change improves the selection of the nodes to
send the final gossip messages to.

I could reproduce the failure in ClusterSingletonManagerLeaveSpec and with
additional logging I verified that in the failure case it picked the "first"
node 3 times (it's random) and that node had already been shutdown (left earlier
in the test) but was not removed yet.
2016-11-18 12:33:42 +01:00
Patrik Nordwall
bffa9384b6 Merge pull request #21851 from jrudolph/jr/w/probe-within
+stk expose `within` for both TestSubscriber and TestPublisher
2016-11-18 11:13:24 +01:00
drewhk
3e49054862 Merge pull request #21853 from drewhk/wip-21838-proper-websocket-backpressure-drewhk
#21838: Fix ByteStringParser backpressure
2016-11-18 10:54:40 +01:00
Johan Andrén
e4f019738b Correct errors from InputStreamSinkStage when first read times out #21804 (#21821) 2016-11-18 10:53:32 +01:00
Christian Schmitt
4325f8bacd asOutputStream did never complete on close and exposed a unsafe callback #20503, #21864
StreamConverters.asOutputStream did never complete if the buffer size was greater than zero,
this lead to a bad state, where the close was unblocked, but the stage was never completed.
Also the OutputStream uses getAsyncCallback which had the problem that it always lead to races,
if flush or close was called to early.
2016-11-18 10:53:14 +01:00
Patrik Nordwall
bf3d27c14a Merge pull request #21848 from akka/wip-21842-snap-fail-patriknw
add LoadSnapshotFailed in snapshot protocol, #21842
2016-11-18 10:52:15 +01:00
Patrik Nordwall
ea84b4bfdd add LoadSnapshotFailed in snapshot protocol, #21842
* treat snapshot load failure in same way as other recovery failures
* if load of snapshot fails the persistent actor will be stopped, since
  we can't assume that a consistent state would be recovered just by
  replaying all events, since events may have been  deleted
* additional recovery docs
* improve log message
2016-11-18 10:51:35 +01:00
Nafer Sanabria
a5e94dd3ed doc update deprecated documentation of FileIO (#21860) 2016-11-18 10:28:47 +01:00
drewhk
e0a062dd72 #21833: Fix race in BroadcastHub shutdown and new registrations 2016-11-18 10:23:43 +01:00
Wojciech Grajewski
bca7045174 =per #20821 optimize recovering from snapshot in LocalSnapshotStore (#21827)
* optimize recovering from snapshot in LocalSnapshotStore #20821

* replaced FilenamePattern regex with String operations when scanning snapshot filenames

* further optimization of the string operations

* fixed the logic in order to pass the SnapshotRecoveryLocalStoreSpec test
2016-11-18 10:15:30 +01:00
Hawstein
c373cef20f use SimpleLinearGraphStage to reduce the boilerplate code #21830 2016-11-18 10:13:15 +01:00
Patrik Nordwall
e80d7d7a71 Merge pull request #21857 from akka/update-aeron
=pro update Aeron to 1.0.4
2016-11-18 10:05:02 +01:00
Olli Helenius
658b46e1cc Move (de)compression helpers to akka-stream module #21395 (#21409)
* Move (de)compression helpers to akka-stream #21395

* Move compression and decompression -related classes from
  akka-http-experimental to akka-stream
* Add Compression helper object with functions to create
  decompressing Flows
* Add a short cookbook entry

* =str move compression impl classes into their own directory (and change visibility)

* =str also expose gzip/deflate compression flows

* Fix formatting of plural ByteStrings in cookbook

* =str #21395 make compressor call Deflater.end in postStop to release resources

Also simplified the creation of the flow given a compressor.

* =str #21395 decompressors call Inflater.end in postStop to release resources

* =str #21395 smallish Scaladoc fixes
2016-11-17 22:42:37 +01:00
Konrad Malawski
5ca56a56eb =pro update Aeron to 1.0.4 2016-11-17 17:51:04 +01:00
Endre Sándor Varga
d7af58bafa Refactored TopHeavyHitters and added comments. Fixed small bug. 2016-11-17 17:37:01 +01:00
Johannes Rudolph
b4cfc3717f =str #21753 simplify TLSActor configuration by allowing to specify SSLEngine directly (#21822)
Do all (Akka)SSLConfig magic in one place directly in the TLS API.

Also, introduce new low-level entrypoint in TLS that allows to specify
an SSLEngine constructor directly without relying on SSLContext. This
allows users to use third-party SSLEngine implementations like netty's
OpenSslEngine together with akka-stream.
2016-11-17 16:07:24 +01:00
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
Martynas Mickevičius
ef75910872 Remove scalatest from OSGi sample (#21817) 2016-11-17 14:44:47 +01:00
Endre Sándor Varga
f3ba271842 #21838: Fix ByteStringParser backpressure
and convert it to simple push-pull
2016-11-17 14:43:39 +01:00
Konrad Malawski
5df1cc52b0 Remove not needed type match in last clause in EventSourced 2016-11-17 14:11:34 +01:00
Nafer Sanabria
80d48ead5a per bugfix #21824 pass the message which cause restart in PersistentActor 2016-11-17 14:11:34 +01:00
Olli Helenius
163f0f9727 Fix formatting of plural ByteStrings in docs (#21792) 2016-11-17 12:31:44 +01:00
Johannes Rudolph
a31e78b47f +stk expose within for both TestSubscriber and TestPublisher
This will allow us place limits on methods like `expectRequest` without
introducing other overloads.
2016-11-17 12:23:14 +01:00
Patrik Nordwall
a7eed00948 Merge pull request #21813 from akka/wip-21518-patriknw
minor cleanup of cluster.subscribe usage
2016-11-16 21:33:02 +01:00
Patrik Nordwall
a55e84fbd6 Merge pull request #21811 from akka/wip-21718-ClusterShardingSpec-patriknw
harden ClusterShardingSpec, #21718 and #21535
2016-11-16 21:31:43 +01:00
Patrik Nordwall
aa142ef83b Merge pull request #21815 from akka/wip-21674-patriknw
Handle early termination of system when starting logger, #21674
2016-11-16 21:30:43 +01:00
Hawstein
96a1d2a081 rewrite Buffer as a GraphStage #21528 2016-11-15 18:48:33 +01:00
Patrik Nordwall
88a6bdb059 Cluster singleton testing (#21803)
* add another singleton restart test

* remove from singleton sorted set with unique address

* because the upNumber used by the Ordering can change
2016-11-11 15:10:30 -08:00
Patrik Nordwall
9c087d115e fix AgentDocTest (#21814) 2016-11-11 12:05:19 -08:00
Richard Imaoka
693cb6a58b Add resolveOneCS to ActorSelection for Java CompletionStage 21726 2016-11-11 17:21:17 +01:00
drewhk
2dd4ac1ef6 Workaround for #21475 until it is fully fixed. Makes snapshots thread-safe 2016-11-10 15:59:20 +01:00
drewhk
91b522e186 #21743: FlattenMerge should propagate outer attributes
Added Materializer.materialize() version that takes explicit initial attributes
2016-11-09 20:14:04 +01:00
Patrik Nordwall
4dd969c0ae remove template pattern in howto docs (#21808) 2016-11-09 20:13:19 +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
Patrik Nordwall
cbcfbfbccd Handle early termination of system when starting logger, #21674
* The IntroSpec terminates the system immediately via the root actor
  and when that happens before the logger is started the ask
  can't be scheduled.
2016-11-08 19:37:08 +01:00
Patrik Nordwall
d9e873644e minor cleanup of cluster.subscribe usage 2016-11-08 15:14:52 +01:00
Patrik Nordwall
48e85953d9 harden ClusterShardingSpec, #21535 2016-11-08 14:01:23 +01:00
Patrik Nordwall
1bb8f1737f increase barrier-timeout in ClusterShardingSpec, #21718
* In the logs of the failing test we can see that the first node is removed
  as expected and then come back in the membership, which is possible in
  case of conflicting membership state merge. It is supposed to be
  removed again by the auto-down. That doesn't happen within the barrier-timeout.
2016-11-08 13:37:37 +01:00
Martynas Mickevičius
72925ba392 Publish dining hakkers deps to local maven repo (#21793) 2016-11-07 13:28:34 -08:00
Johan Andrén
519064f40f Added Java API and discoverable factory methods for Offset #21788 2016-11-07 16:37:49 +01:00
drewhk
5eed5d7d7a Merge pull request #21798 from liff/doc-add-RecoveryCompleted-note
Add a note about RecoveryCompleted for new actors
2016-11-07 15:37:04 +01:00
drewhk
3f112648f0 Merge pull request #21685 from johanandren/wip-21377-tcpspec-failed-johanandren
Failing tcp spec fix
2016-11-07 15:36:16 +01:00
drewhk
2a1e73ea50 Merge pull request #21797 from andy-hw-chung/wip-21794-fold-behaviour-on-supervisor-resume
Fixed error handling behaviour of Fold and Reduce
2016-11-07 15:07:45 +01:00
Guido Medina
e2a5c9c09b Fix the RoundRobinLogic select function when Long is overflow would never reach the last collection element. 2016-11-05 12:34:10 +00:00
Andy Chung
fff707781e Took grab and pull out of try 2016-11-04 16:13:11 +00:00
Johan Andrén
4c0b66dac9 Bugfix #21770, NoSuchElementException with probe supervisor in TestActorRef (#21776) 2016-11-04 14:53:40 +01:00