Commit graph

1892 commits

Author SHA1 Message Date
Johan Andrén
28d96a2e59 Fix invalid ranges in ByteStringSpec #22389 2017-02-24 10:26:42 +01:00
Patrik Nordwall
9821865212 deprecate contrib.JavaLogger, include in akka-actor, #22198 2017-02-22 08:36:32 +01:00
Johan Andrén
cf6d5a4e8a Deprecation of ExtensionKey #22208 2017-02-17 17:07:15 +01:00
Johan Andrén
8f9b4f203a Pass the deserialized message on when serialize-messages on #13751 2017-02-17 16:41:25 +01:00
Konrad `ktoso` Malawski
d306700feb =doc Make it easier to disable Java serialization, #22283 (#22315)
* one single config option to disable it completely
* improve security documentation

Co-authored-by: Patrik Nordwall <patrik.nordwall@gmail.com>
2017-02-16 14:09:04 +01:00
Andrey Baidarov
9e1d6774e5 Reset pendingSend on address resolution failure #22076 2017-02-11 19:20:41 +01:00
Patrik Nordwall
233464f153 Merge pull request #22212 from akka/wip-22169-addser-default-patriknw
Enable additional-serialization-bindings by default, #22169
2017-01-25 14:29:53 +01:00
Patrik Nordwall
65fa37aa03 fix SystemMessageDeliveryStressTest NPE with additional-serializers, #22169
* because it's sending a dummy `Failed` sys msg with `null` child
2017-01-25 12:31:56 +01:00
Patrik Nordwall
0f8f47878b remove deprecated ActorSystem termination methods, #21423
* those were deprecated by #15757 before 2.4.0
2017-01-24 13:32:46 +01:00
Patrik Nordwall
4bd6b7aab1 improve AbstractActor, #21717
* Receive class that wraps PartialFunction, to avoid
  scary scala types
* move AbstractActorContext to AbstractActor.ActorContext
* converting docs, many, many UntypedActor
* removing UntypedActor docs
* add unit test for ReceiveBuilder
* MiMa filters
* consistent use of getContext(), self(), sender()
* rename cross references
* migration guide
* skip samples for now
* improve match type safetyi, add matchUnchecked
  * the `? extends P` caused code like this to compile:
    `match(String.class, (Integer i) -> {})`
  * added matchUnchecked, since it can still be useful (um, convenient)
    to be able to do:
    `matchUnchecked(List.class, (List<String> list) -> {})`
* eleminate some scala.Option
  * preRestart
  * findChild
  * ActorIdentity.getActorRef
2017-01-23 18:30:52 +01:00
Johan Andrén
c384f948ae timeout cancelation in PersistentFSM #22166 2017-01-23 16:29:12 +01:00
Patrik Nordwall
b72ca92799 serialize Scala 2.12 functions for when used in remote deployment, #22041 2017-01-20 14:09:21 +01:00
Patrik Nordwall
6c8a69109a Merge pull request #22138 from VEINHORN/master
Remove unnecessary new keywords
2017-01-17 19:31:45 +01:00
Patrik Nordwall
84ade6fdc3 add CoordinatedShutdown, #21537
* CoordinatedShutdown that can run tasks for configured phases in order (DAG)
* coordinate handover/shutdown of singleton with cluster exiting/shutdown
* phase config obj with depends-on list
* integrate graceful leaving of sharding in coordinated shutdown
* add timeout and recover
* add some missing artery ports to tests
* leave via CoordinatedShutdown.run
* optionally exit-jvm in last phase
* run via jvm shutdown hook
* send ExitingConfirmed to leader before shutdown of Exiting
  to not have to wait for failure detector to mark it as
  unreachable before removing
* the unreachable signal is still kept as a safe guard if
  message is lost or leader dies
* PhaseClusterExiting vs MemberExited in ClusterSingletonManager
* terminate ActorSystem when cluster shutdown (via Down)
* add more predefined and custom phases
* reference documentation
* migration guide
* problem when the leader order was sys2, sys1, sys3,
  then sys3 could not perform it's duties and move Leving sys1 to
  Exiting because it was observing sys1 as unreachable
* exclude Leaving with exitingConfirmed from convergence condidtion
2017-01-16 09:01:57 +01:00
VEINHORN
0eac4d413b removed unnecessary new keywords 2017-01-13 12:35:05 +03:00
Philippus Baalman
6c7085252a extended copyright into 2017 2017-01-04 17:37:15 +01:00
Patrik Nordwall
deef184cdd reduce allocations in ActorModelSpec, #22085
* this reduces the number of allocated AtomicLong instances when running
  BalancingDispatcherModelSpec from 4.2 million to 200 thousand.
2017-01-03 14:40:33 +01:00
Johan "Party Cannon" Andrén
1861ec6756 WIP ActorSystemSettings programatic config #21894 2016-12-15 15:05:13 +01:00
Johan "Party Cannon" Andrén
ad061e0208 Test documenting LineNumber behaviour on Scala 2.11, 2.12, Java 8 (#21897)
* Test documenting the LineNumber behaviour on Scala 2.11 vs 2.12 vs Java 8 #21773

* Reindent Java sources with less space
2016-12-06 16:12:04 +01:00
monkey-mas
c38d3850a2 =act improve ByteString#dropRight(...) (#21439)
#21439: =act improve ByteString#dropRight(...)
2016-12-06 15:51:11 +01:00
Patrik Nordwall
e04444567f Speedup pull request validation
* speedup ActorCreationPerfSpec
* reduce iterations in ConsistencySpec
* tag SupervisorHierarchySpec as LongRunningTest
* various small speedups and tagging in actor-tests
* speedup expectNoMsg in stream-tests
* tag FramingSpec, and reduce iterations
* speedup QueueSourceSpec
* tag some stream-tests
* reduce iterations in persistence.PerformanceSpec
* reduce iterations in some cluster perf tests
* tag RemoteWatcherSpec
* tag InterpreterStressSpec
* remove LongRunning from ClusterConsistentHashingRouterSpec
* sys property to disable multi-jvm tests in test
* actually disable multi-node tests in validatePullRequest
* doc sbt flags in CONTRIBUTING
2016-11-30 14:31:06 +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
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