Commit graph

241 commits

Author SHA1 Message Date
Endre Sándor Varga
5e830323f6 Updating to ScalaTest 3.0.0 and ScalaCheck 1.13.2 2016-08-22 11:13:49 +02:00
Björn Antonsson
c66ce62d63 Update to a working version of Scalariform 2016-06-02 22:12:36 +02:00
Patrik Nordwall
be448e9fbb fix memory leaks in tests, #20659 2016-05-31 08:51:00 +02:00
Konrad Malawski
62d8a69fac all #20090 enable running java tests in actor,camel,cluster,persistence 2016-04-06 01:23:21 +02:00
Patrik Nordwall
9f659cf9b1 remove JUnitRunner annotation, #16112
* it was used for running tests from inside Eclipse,

  but since it caused some trouble we remove it
2016-04-05 17:06:58 +02:00
qian miao
aa8742738c =per #19828 pop the internal stash when the writing was finished in the processing commands state 2016-03-18 12:27:02 +08:00
Martynas Mickevičius
50f99328fe #18765 Update to latest MiMa which is now an AutoPlugin.
* check for binary inc. issues by default
* if check is not needed, disable MimaPlugin
* determine old artifact id from the current one
2016-03-10 10:45:35 +02:00
Roland Kuhn
45e97e8467 remove akka.stream.testkit.AkkaSpec, fixes #19879 2016-02-25 15:26:51 +01:00
Johannes Rudolph
b6cbc7f13a =all remove unused imports 2016-02-23 20:29:22 +01:00
Johan Andrén
62e30b3c08 Update copyrights and links to the new company name #19851 2016-02-23 12:58:39 +01:00
Prayag Verma
b7783968a0 =pro #19068 All copyrights ranges and single years updated to a range ending in 2016 2016-01-25 10:20:30 +01:00
Roland Kuhn
e5baba2b29 squash some warnings 2016-01-20 11:54:24 +01:00
Roland Kuhn
063e289718 add migration guides for Scala and Java
also fix missing includes and wrong file locations
2016-01-20 10:27:00 +01:00
drewhk
5ad7171852 Merge pull request #19239 from galarragas/master
Adding to the contrib module an Proxy Actor implementing the circuit breaker pattern
2016-01-19 11:04:08 +01:00
galarragas
c79966a2f0 Post review changes: converted reference to circuit-breaker into a rst ref. Renamed the section into circuit-breaker-proxy to avoid section ID conflicts 2016-01-15 10:47:27 +00:00
galarragas
0b32023ac8 Post review changes:
- Moved `CircuitBreakerInternalEvents` inside `CircuitBreakerProxy` companion object,
- changed logs messages to be consistent with the state name case,
- used the correct log level for the case of unexpected self-sending of `CircuitOpenFailure`
- Converted the  `OpenCircuitException` class into an object implementing the sealed class `OpenCircuitException`
- `CircuitBreakerAwareFuture` is a final class
- Using Given-When-Then consistently across all tests (can remove them all if we prefer to keep consistency with the rest of the project)
- Using Given-When-Then consistently across all tests (can remove them all if we prefer to keep consistency with the rest of the project)
2016-01-13 19:19:32 +00:00
galarragas
9814ff5613 Upper case for Implicits object and made the CircuitOpenException extending RuntimeException 2016-01-04 19:10:30 +00:00
galarragas
adf49a33f0 Added copyright header to askExtensions.scala file and did some small improvement to ScalaDocs and rst documentation 2016-01-02 16:02:54 +00:00
galarragas
60474815fd Trying to fix build failures about not thrown exceptions in ScalaDoc 2016-01-01 15:50:59 +00:00
galarragas
fd99051356 Trying to fix build failures about not thrown exceptions in ScalaDoc and not found reference to akka.pattern.ask 2016-01-01 15:17:35 +00:00
galarragas
b55097178f Post revision changes:
- Refactored the part associated to the `failForOpenCircuit` extension to Future was done.
  - Moved implicit conversion into a specific class. Not requiring anymore the `._` import but importing only the implicit conversion needed
  - Added a `askWithCircuitBreaker` approach to replace the ask and the following `failForOpenCircuit`
- Compacted all samples in the same file and added the copyright header
- Improved documentation
2016-01-01 12:26:16 +00:00
galarragas
8757838ad2 Post revision changes:
- Added handling of termination of target actor
- Introduced a Passthrough command type to allow sending message to the target actor in any state. It is intended for control messages such as `PoisonPill` or `Kill`
2015-12-31 20:57:42 +00:00
galarragas
ce7d76cec5 Post revision changes:
- Reordered message cases for Closed state management
- Improved error message for unexpected self-sent circuit open message
2015-12-31 19:24:26 +00:00
galarragas
36a420fcc8 Post revision changes:
- Renamed the circuit breaker actor into a proxy for clarity and small renaming of the builder
- Added Java-friendly `with` copy methods to `CircuitBreakerPropsBuilder`
- Refactored a test not using the scenario trait as others
2015-12-31 19:15:10 +00:00
galarragas
b1980992f9 Post revision changes:
- Added reference to the circuit breaker pattern function in the CircuitBreakerActor scaladoc
- made `final` classes `OpenCircuitException` and `CircuitBreakerActor`
- Renamed `CircuitBreakerActorBuilder` into `CircuitBreakerActorPropsBuilder` and renamed the `propsForTarget` method into `props`
2015-12-31 18:46:29 +00:00
Raymond Roestenburg
2404a9da01 #19246 Auto and manual reset and BackoffOptions.
Also moved `TransparantExponentialBackoffSupervisor` to `akka.pattern` (renamed to `BackoffOnRestartSupervisor`)
2015-12-29 21:23:16 +02:00
galarragas
fd5b872a43 Post revision changes:
- Moved sample code in source files
- Text review
- Proper use of RST syntax
- Improved ScalaDoc
2015-12-25 15:27:45 +00:00
galarragas
457ccc1250 Post revision changes:
- Typo in documentation
- Made case classes `final`
- Hidden the actor's `log` with one passed as parameter to the method
2015-12-25 10:00:03 +00:00
galarragas
1f4184e64b Adding to the contrib module an Proxy Actor implementing the circuit breaker pattern 2015-12-19 14:39:49 +00:00
Patrik Nordwall
ef03818ab1 =act #19016 use the BackoffSupervisor as sender for parent msg 2015-11-27 09:21:28 +01:00
kukido
7124b5dddf =doc #18899 code review follow-up, fixed typo 2015-11-11 09:26:00 -08:00
kukido
3cc3666724 =doc Fixes for genjavadoc 2015-11-11 00:29:44 -08:00
Henry Mai
a0e9b01aa4 Add TransparentExponentialBackoffSupervisor 2015-11-01 22:25:05 -08:00
Martynas Mickevičius
4ffe267835 =pro verify BC against all binary compatible versions 2015-10-23 09:10:25 +03:00
luben karavelov
3d277fc711 =con bind the contrib tests to random open port 2015-09-14 11:46:21 +02:00
Jeremy.Stone
b884dde6ee =con #17670 Fix potential ReceivePipeline MatchError 2015-08-18 17:55:02 +01:00
Konrad Malawski
c7c89f02ac =con #17414 doc mix-in order for PersistentActor and ReceivePipeline 2015-08-14 14:59:43 +02:00
Patrik Nordwall
b8ef08ae71 Merge pull request #17764 from akka/wip-17501-harden-ReliableProxySpec-patriknw
=con #17501 Increase timeouts in ReliableProxySpec
2015-06-18 11:16:10 +02:00
Patrik Nordwall
6fb74532b6 Merge pull request #17673 from jwcarman/jwcarman-add-osgi-contrib
Adding OSGi metadata to contrib module.
2015-06-18 11:15:03 +02:00
Patrik Nordwall
de5478cb21 =con #17501 Increase timeouts in ReliableProxySpec 2015-06-17 17:27:14 +02:00
Patrik Nordwall
d19f694821 Merge pull request #17490 from akka/wip-17010-logger-mailbox-patriknw
=act #17010 Drain log messages on system shutdown
2015-06-17 16:49:42 +02:00
Patrik Nordwall
156e2a0aea =act #17010 Drain log messages on system shutdown
* by using a special mailbox that emits the remaining log messages
  to the StandardOutLogger
2015-06-17 15:32:30 +02:00
James Carman
b537084de3 Adding OSGi metadata to contrib module. 2015-06-06 09:16:49 -04:00
Martynas Mickevičius
7fc2790458 =pro run multi-jvm tests when validating pr
* addunidoc task via an AutoPlugin that depends on PrValidation and Unidoc autoplugins
* separate cli option logic to a case class
* remove autoplugin for root project
2015-05-28 13:57:50 +03:00
Roland Kuhn
5dc25fbb44 add crosscompilation for 2.12.0-M1 2015-05-21 21:09:30 +02:00
Roland Kuhn
18688fc84b = #17380 fix doc comments for java8 doclint
* actor and cluster-metrics comments
* agent/camel/cluster/osgi/persistence/remote comments
* comments in contrib/persistence-tck/multi-node/typed
2015-05-18 12:51:36 +02:00
Patrik Nordwall
10a11e415e !cls #13711 Move cluster sharding 2015-05-11 20:07:22 +02:00
Patrik Nordwall
fb72214d99 !clt #13711 Move cluster tools from contrib
* new module akka-cluster-tools containing
  cluster singleton, distributed pub-sub, and cluster client
2015-05-11 20:07:21 +02:00
Patrik Nordwall
c991d5f1d1 =str #17200 Stop shard region when MemberRemoved
Two issues:

1) ShardRegion actor must stop itself when the node is shutting down,
   ie. when receiving MemberRemoved(selfAddress)
2) ShardCoordinator must not persist anything when the node is shutting
   down. MemberRemoved of other shard regions will trigger Terminated,
   which must not be persisted, because then the next coordinator will
   replay those events and end up in wrong state. This is a problem
   announced itself when using leaving as illustrated in the new test.

To solve the second issue I have added a new ClusterShuttingDown event
that is published before the MemberRemoved events. Note that Terminated
is triggered by MemberRemoved.

(cherry picked from commit 1b272c72597beece9d93f0054f4b58e3d25f9ae2)
2015-04-22 12:46:30 +02:00
Patrik Nordwall
ca526232e1 =con #17169 Add missing barrier in ReliableProxySpec 2015-04-15 14:17:49 +02:00