Commit graph

24896 commits

Author SHA1 Message Date
Arnout Engelen
2db52a06ea
Check mima against 2.5.31 (#28857) 2020-04-27 16:11:32 +02:00
Patrik Nordwall
f36935abd0 Don't generate JavaDoc noise, #28732 2020-04-27 15:27:14 +02:00
Renato Cavalcanti
f520ca7b7a
Merge pull request #28975 from ennru/update-persistence-plugins 2020-04-27 14:35:23 +02:00
kerr
0e4d41ad33
+build Add sort imports support. (#28780)
* Add scalafix plugin for jdk 9.
* Add command alias sortImports.
* Excludes some sources from SortImports.
* Update SortImports to 0.4.0
* Sort imports with `sortImports` command.
2020-04-27 14:32:18 +02:00
ohze.net
ea7205eaf7
dotty phase 2: scalafix ExplicitNonNullaryApply (#28949)
* scalafix ExplicitNonNullaryApply prepare

+ Temporarily use com.sandinh:sbt-scalafix because scalacenter/scalafix#1098
+ Add ExplicitNonNullaryApply rule to .scalafix.conf
+ Manually fix a NonNullaryApply case in DeathWatchSpec that cause
  `fixall` fail because ExplicitNonNullaryApply rule incorrectly rewrite
  `context unbecome` to `context unbecome()` instead of `context.unbecome()`

* scalafix ExplicitNonNullaryApply

fix by enabling only ExplicitNonNullaryApply rule in .scalafix.conf then:
```
% sbt -Dakka.build.scalaVersion=2.13.1
> fixall
```

* scalafmtAll

* Revert to ch.epfl.scala:sbt-scalafix

Co-authored-by: Bùi Việt Thành <thanhbv@sandinh.net>
2020-04-27 12:31:16 +02:00
Enno Runne
6f8be9a328 Docs: list persistence plugins 2020-04-27 11:23:37 +02:00
Patrik Nordwall
3784d03a2a remove visible protobuf-java dependency from akka-protobuf-v3, #28939 2020-04-27 11:15:10 +02:00
Patrik Nordwall
4ba835d328
Harden ShardCoordinator state replication, #28856 (#28895)
* Possibility to prefer oldest in ddata writes and reads
  * enabled for Cluster Sharding
* New ReadMajorityPlus and WriteMajorityPlus
  * used by Cluster Sharding, with configuration
  * also possible to define ReadAll in config
2020-04-24 14:19:53 +02:00
Domantas Petrauskas
d415211bf8
Update sbt-java-formatter to 0.5.1, disable javafmt on compile if discipline is disabled (#28962) 2020-04-24 14:12:01 +02:00
Arnout Engelen
305fa61a64
Fix typo in ClusterMetricsDisabledSpec (#28969)
Because of this typo this node did not follow the convention for multi-node
test class names from #28954, which caused its actor system to have an
unexpected name and fail to join the cluster.

Refs #28968
2020-04-24 14:10:50 +02:00
Patrik Nordwall
1dbc54b28a
fix wrong ActorSystem name when using MultiNodeClusterShardingSpec #28953 (#28954)
* fix wrong ActorSystem name when using MultiNodeClusterShardingSpec #28953

* use same testNameFromCallStack everywhere

* remove MultiJvm suffix from ActorSystem name
2020-04-23 15:54:38 +02:00
Hungai Amuhinda
9682a81b3f
Fix grammatical error (#28958) 2020-04-22 13:41:50 +02:00
Kirill Yankov
007aa0f710
#28908 - rename returnDefaultPolicy to resetPolicy (#28941) 2020-04-20 17:43:17 +02:00
Patrik Nordwall
1f448cae2c
Merge pull request #28920 from akka/wip-28918-cbor-patriknw
JacksonCborSerializer should use CBOR ofc, #28918
2020-04-20 16:06:04 +02:00
Patrik Nordwall
760efb7f71
Merge pull request #28947 from ohze/dotty/0
dotty phase 1
2020-04-20 16:03:01 +02:00
Patrik Nordwall
ef9a2c79c6 JacksonCborSerializer should use CBOR ofc, #28918
* When we updated to Jackson 2.10 (prior Akka 2.6.0) the new JsonFactoryBuilder
  was used. That doesn't preserve the formatParserFeatures and formatGeneratorFeatures
  from the base CBORFactory and therefore the format was plain JSON.

* rolling update compatibility
2020-04-20 15:09:43 +02:00
Bùi Việt Thành
666988ae57 scalafix Any2StringAdd
```
% sbt -Dakka.build.scalaVersion=2.13.1
> fixall
```
2020-04-20 17:59:50 +07:00
Bùi Việt Thành
8a40a0ceaa scalafix Any2StringAdd prepare
Remove an unused local variable that cause error when scalafix Any2StringAdd

```
scalafix.internal.v1.FileException: unexpected error processing file /Users/thanhbv/ohze/oss/akka/akka-bench-jmh/src/main/scala/akka/actor/TellOnlyBenchmark.scala
Caused by: org.scalameta.UnreachableError: this code path should've been unreachable
	at org.scalameta.UnreachableError$.raise(package.scala:40)
	at scala.meta.internal.prettyprinters.TreeSyntax$SyntaxInstances.isAmbiguousWithPatVarTerm$1(TreeSyntax.scala:251)
	at scala.meta.internal.prettyprinters.TreeSyntax$SyntaxInstances.guessIsBackquoted(TreeSyntax.scala:273)
  | => aat scala.meta.internal.prettyprinters.TreeSyntax$SyntaxInstances.$anonfun$syntaxTree$1(TreeSyntax.scala:331)
	at scala.meta.prettyprinters.Syntax$$anon$1.apply(Syntax.scala:9)
	at scala.meta.internal.prettyprinters.TreeSyntax$.$anonfun$apply$1(TreeSyntax.scala:1018)
	at scala.meta.prettyprinters.Syntax$$anon$1.apply(Syntax.scala:9)
	at scala.meta.prettyprinters.Api$XtensionSyntax.syntax(Api.scala:11)
	at scalafix.internal.v1.TreePos$.symbol(TreePos.scala:9)
	at scalafix.internal.v1.InternalSemanticDoc.fromTextDocument$1(InternalSemanticDoc.scala:53)
	at scalafix.internal.v1.InternalSemanticDoc.symbol(InternalSemanticDoc.scala:60)
	at scalafix.v1.package$XtensionTreeScalafix.symbol(package.scala:12)
	at scalafix.v1.SymbolMatcher.unapply(SymbolMatcher.scala:16)
	at scalafix.v1.SymbolMatcher.unapply$(SymbolMatcher.scala:15)
	at scalafix.v1.SymbolMatcher$$anon$2.unapply(SymbolMatcher.scala:29)
	at fix.Any2StringAdd$$anonfun$fix$1.applyOrElse(/Users/thanhbv/ohze/oss/scalafix-rules/scalafix/rules/src/main/scala/fix/Any2StringAdd.scala:41)
```
2020-04-20 17:59:50 +07:00
Bùi Việt Thành
fe0447d267 ExplicitResultTypes manually for implicit local val / def
ExplicitResultTypes scalafix rule can't fix those cases
2020-04-20 17:59:50 +07:00
Bùi Việt Thành
02b9b30354 scalafix ExplicitResultTypes - for implicit members 2020-04-20 17:59:50 +07:00
Bùi Việt Thành
2c6e349c7e scalafix FinalObject - for scalafix ignored files 2020-04-20 17:59:50 +07:00
Bùi Việt Thành
4df76d6bce scalafix FinalObject 2020-04-20 17:59:49 +07:00
Bùi Việt Thành
46a310e2cc scalafix ConstructorProcedureSyntax
fix by:
+ enabling only ConstructorProcedureSyntax rule in .scalafix.conf
+ then:
```
% sbt -Dakka.build.scalaVersion=2.13.1
> fixall
> scalafmtAll
```
2020-04-20 17:59:49 +07:00
Bùi Việt Thành
68e30b39bc simplify Dependencies / sslConfigCore sbt setting 2020-04-20 17:59:49 +07:00
Bùi Việt Thành
50f1f14265 AkkaDisciplinePlugin don't need to depend on Scalafix 2020-04-20 17:59:49 +07:00
Bùi Việt Thành
7c38b83e39 update sbt-scalafix 0.9.14 2020-04-20 17:59:49 +07:00
Bùi Việt Thành
a471947fd7 sbt: fix an implicitConversions warning 2020-04-20 17:59:49 +07:00
Patrik Nordwall
6361bdb153
Merge pull request #28878 from akka/wip-delivery-log-perf-patriknw
avoid touching MDC for context.log.trace in reliable delivery
2020-04-17 17:35:58 +02:00
Patrik Nordwall
634c0d904b
Update the schema evolution doc to also mention Jackson, #28916 2020-04-16 17:29:49 +02:00
Patrik Nordwall
83767a7d4b
Doc orrection of ClusterMessageSerializer manifests change (#28929) 2020-04-16 17:28:57 +02:00
Patrik Nordwall
a7f39ab7cf
Remove microkernel leftovers in ActorSystem (#28933)
* Microkernel removed in Akka 2.4 so removing this without deprecation
  should be alright
2020-04-16 17:12:25 +02:00
Patrik Nordwall
b4704f7027
Merge pull request #28902 from hepin1989/typed_null
=clu Not allow `null` messages to be sent to Shard
2020-04-16 11:47:24 +02:00
Johan Andrén
5a2e43b2d9
Doc statement no longer true with new Actor APIs (#28924) 2020-04-15 17:45:17 +02:00
Scala Steward
acfb8c44e3
Update sbt to 1.3.10 (#28921) 2020-04-15 12:52:35 +02:00
Patrik Nordwall
d611bb0d68
Merge pull request #28874 from akka/wip-28725-delivery-jmh-work-pulling-patriknw
JMH bench for work pulling, 28725
2020-04-13 19:08:26 +02:00
Patrik Nordwall
5eee55b70d
Merge pull request #28783 from akka/wip-28725-throughput-test-patriknw
multi-node throughput test for reliable delivery, #28725
2020-04-13 18:41:22 +02:00
Patrik Nordwall
b1e711938c
Merge pull request #28790 from akka/wip-delivery-stash-full-patriknw
avoid filling ConsumerController stash with resent messages
2020-04-13 18:40:31 +02:00
Renato Cavalcanti
620b3e0af3
Merge pull request #28912 from scala-steward/update/sbt-header-5.5.0
Update sbt-header to 5.5.0
2020-04-10 17:36:06 +02:00
Scala Steward
9ee9400b6f
Update sbt-header to 5.5.0 2020-04-10 12:07:55 +02:00
Renato Cavalcanti
da760e3ede
Merge pull request #28911 from scala-steward/update/metrics-core-4.1.6
Update metrics-core, metrics-jvm to 4.1.6
2020-04-10 11:23:24 +02:00
Scala Steward
cd1cc12051
Update metrics-core, metrics-jvm to 4.1.6 2020-04-10 00:04:40 +02:00
barthorre
2972ba5431
OSGi: register ActorSystem under ActorFactoryRef interface (#28758)
register ActorSystem reference under ActorFactoryRef interface name
2020-04-09 09:20:51 +02:00
hepin1989
eb20c7bb2b =clu Not allow null messages to be sent to Shard 2020-04-09 09:47:02 +08:00
Johan Andrén
0a0c5302ab
Make sure subscription completed before testing (#28887)
* Make sure subscription completed before testing #28885
* ActorTestKit facility for probing unhandled, dead letters and dropped in a better way
2020-04-08 17:35:58 +02:00
Patrik Nordwall
a2e7db7ab4
Merge pull request #28890 from manonthegithub/wip-28869-persistence-testkit-policy-docs
#28869 - example for setting policies in docs (persistence testkit)
2020-04-08 17:31:50 +02:00
Patrik Nordwall
035e4fb4a2 multi-node throughput test for reliable delivery, #28725
* same kind of reporting mechanism as the Artery MaxThroughputSpec
2020-04-08 17:13:50 +02:00
Patrik Nordwall
8f640d4442 JMH bench for work pulling, 28725
* also added point-to-point with ask
2020-04-08 17:07:54 +02:00
Patrik Nordwall
5d7ca06ef1 avoid touching MDC for context.log.trace in reliable delivery 2020-04-08 17:02:28 +02:00
Robert Eklund
6d843efbf8
Fix 27338 - Allow passing an actor system to the typed.ActorTestKit (#28871)
* Add apply methods for typed ActorTestKit allowing for passing an ActorSystem
2020-04-08 09:43:18 +02:00
Renato Cavalcanti
a26d7ef91d
Merge pull request #28896 from akka/wip-close-err-patriknw
Silence another close error in multi-jvm tests
2020-04-07 16:51:50 +02:00