Commit graph

34 commits

Author SHA1 Message Date
Renato Cavalcanti
09c0927ca6
Improved error message when loading ServiceDiscovery impl 2020-01-31 15:50:03 +01:00
Mike Limansky
d9ed927df0 Update to ScalaTest 3.1.0, fix #28289. 2020-01-11 15:15:10 +03:00
Helena Edelson
6bf20f4117 Update all copyright headers to 2020 after new year's #27881 (#28434) 2020-01-02 13:24:59 +01:00
Johannes Rudolph
702b6a7f41 actor: allow seamless access to untyped extensions given typed ActorSystem (#28294)
* actor: allow seamless access to untyped extensions given typed ActorSystem

* add overrides with concrete type for Java API everywhere
2019-12-05 16:01:22 +01:00
Christopher Batey
0edf75b884 Use specific exception for discovery timeout (#28152)
* Use specific exception for discovery timeout

Unfortunately, as the API is the SPI we can't do this once for all implementations

Fixes #28149
2019-11-20 12:15:31 +01:00
Christopher Batey
4a72985e48 Expose new DNS protocol via the DNS extension (#28009)
* TCP/UDP to use new protocol
* Change other parts of Akka to use new protocol
* Mention in migration guide
2019-10-16 10:22:01 +02:00
Ignasi Marimon-Clos
67c7d5ed35
typo 2019-09-27 17:29:33 +02:00
Patrik Nordwall
a7c43cf573
Config to exclude class prefix from serialize-messages, #24273 (#27517)
* Config to exclude class prefix from serialize-messages, #24273

* Adding no-serialization-verification-needed-class-prefix, with "akka." included
  by default
* This is important now when we disable Java serialization by default.
  There will be many complaints about Akka internal classes that are not marked with
  NoSerializationVerificationNeeded, and we can't really sprinkle that everywhere.
* Not removing NoSerializationVerificationNeeded usage in Akka classes because that
  may break bin compat, even though it's needed any more.

* fix DisabledJavaSerializerWarningSpec
2019-09-26 22:51:12 +02:00
Arnout Engelen
e6859253e5 Update to MiMa 0.6.0 (#27558) 2019-09-11 11:28:12 +02:00
Christopher Batey
89e269d5d8 Remove catchall silents from prod code (#27432)
* WIP

* Remove catch all silent annocations from prod code
2019-07-30 11:12:23 +02:00
Arnout Engelen
34ac92df72
Fix some documentation whitespace (#27036) 2019-05-29 09:48:13 +02:00
Arnout Engelen
814cfa286c Scala 2.13.0 rc2 (#26967) 2019-05-24 08:11:50 +02:00
Johan Andrén
81b1e2ef9b Internal dispatcher to protect against starvation (#26816)
* Allow for dispatcher aliases and define a internal dispatcher
* Test checking dispatcher name
* MiMa for Dispatchers
* Migration guide entry
* No need to have custom dispatcher lookup logic in streams anymore
* Default dispatcher size and migration note about that
* Test checking exact config values...
* Typed receptionist on internal dispatcher
* All internal usages of system.dispatcher gone through
2019-05-02 22:35:25 +02:00
Christopher Batey
84cb58a85c NoSerializationVerification for local discovery messages (#26790) 2019-04-24 10:01:57 +02:00
Patrik Nordwall
a5e9741d35 replace unicode arrows again (#26732) 2019-04-15 15:40:26 +00:00
Arnout Engelen
d390fcf183 Introduce warning silencer plugin (#26588)
So now we can compile akka-distributed-data with
-Xfatal-warnings - though I'm not yet sure about
enabling the (other) undisciplineScalacOptions

* Fix multi-node silencing
* Fix scaladoc warnings
* Introduce annotation to declare ccompat use
* Add explicit toString
* Fix deprecation on 2.13
* Move 'immutable' ccompat helpers to shared ccompat package
* Add MiMa for internal scala 2.13 compatibility class
* Internal API markers
* Fix scaladoc generation
Got bitten by https://github.com/scala/bug/issues/11021
2019-03-26 14:41:29 +01:00
Christopher Batey
886088f03b Strict compiler settings for discovery (#26552) 2019-03-20 09:12:40 +01:00
Renato Cavalcanti
4d0e6669c9 Fix pattern for matching SRV service names (#26332) 2019-03-18 17:52:07 +01:00
Auto Format
75579bed17 format source with scalafmt, #26511 2019-03-15 10:23:46 +01:00
Arnout Engelen
2ccf2ac354
Correctly throw when akka.discovery.SimpleServiceDiscovery is found
ReflectiveDynamicAccess.getClassFor checks whether the found class
is of the 'desired type' and if not throws a ClassCastException. In
this case we ignore the result, so the expected type is Nothing,
and akka.discovery.SimpleServiceDiscovery is not assignable to
Nothing.
2019-03-14 19:24:49 +01:00
Auto Format
ce404e4f53 format source with scalafmt 2019-03-11 16:58:55 +01:00
Patrik Nordwall
5c96a5f556 replace unicode arrows
* ⇒, →, ←
* because we don't want to show them in documentation snippets and
  then it's complicated to avoid that when snippets are
  located in src/test/scala in individual modules
* dont replace object `→` in FSM.scala and PersistentFSM.scala
2019-03-11 16:58:51 +01:00
Patrik Nordwall
0f45eec439 Use AsyncDnsCache directly in DnsServiceDiscovery, #25948
* to avoid (2) asks
2019-03-04 13:46:11 +01:00
Patrik Nordwall
43a46c3f1b Make discovery and dns APIs stable
* remove ApiMayChange
2019-01-28 20:01:19 +01:00
Patrik Nordwall
646e066732
Merge pull request #26220 from hepin1989/java-formatting
Java formatting
2019-01-14 13:41:58 +01:00
Renato Cavalcanti
6f0ea1257e adds service name parser (copied from akka-management) (#26132)
* adds service name parser

* Apply suggestions from code review

Co-Authored-By: renatocaval <renato@cavalcanti.be>

* dangling parenthesis on last line

* code formatting

* extended tests for Lookup.isValidSrv

* make it illegal to create Lookups with empty or null service name

* improved tests description

* improved error messages

* formatting

* updated copyright header

* removed weird import

* removes trailing dot

* throw NPE when null is passed
2019-01-13 18:37:36 +01:00
hepin1989
998c5a9285 Formatting java codes with sbt-java-formatter. 2019-01-12 04:00:53 +08:00
Patrik Nordwall
bd2cc02eaa
Towards stable APIs of akka-discovery (#26172)
* replaced case classes to make it easier to evolve those
* remove ResolvedTarget.apply with 2 parameters
  * because it InetAddress.getByName may perform blocking DNS lookup
2019-01-07 16:27:32 +01:00
kerr
bdc90052aa Update headers from 2018 to 2019 once for all. (#26165)
* Add CopyrightHeader support for sbt-boilerplate plugin.
* Add CopyrightHeader support for `*.proto` files.
* Add regex match for both `–` and `-` for CopyrightHeader.
* Add CopyrightHeader support for sbt build files.
* Update copyright from 2018 to 2019.
2019-01-02 11:55:26 +01:00
Renato Cavalcanti
2644b0e463 swap config and DNS in aggregate example (#26131) 2018-12-19 11:41:04 +01:00
hepin1989
c38a5dcf9c Run scalafix to remove unused imports again. 2018-12-17 21:10:11 +08:00
Renato Cavalcanti
7310992583 updated scaladoc for loadServiceDiscovery 2018-12-11 14:44:03 +01:00
Christopher Batey
e1dc8dcb4e Dont run DnsDiscoverySpec if docker not available (#26071)
* Dont run DnsDiscoverySpec if docker not available

Fixes #26062
2018-12-06 21:24:53 +01:00
Christopher Batey
c5c2f951db Dns discovery custom resolver (#25937)
* Import service discovery from akka-management

* Rename extension to Discovery to go with akka-discovery name
* Rename interafce to ServiceDisovery
* Import config, aggregate and dns
* Discovery documentation
* Load isolated async-dns if not configured as default
* OSGi for discovery
* Remove warning for not using in production
* Fail if old akka management on classpath
* Only allow async dns to be loaded as an additional resolver
* Use method in all of service discovery, not mechanism
* Mima filter
* Add discovery to aggregate
* Set discovery mima versions
* DnsDiscoverySpec: Only run docker test if docker available
2018-12-05 14:01:24 +01:00