Commit graph

22935 commits

Author SHA1 Message Date
Patrik Nordwall
19c9fbc355 cleanup Cluster logging
* include Cluster Node prefix in same way for all logging
2019-01-14 19:47:43 +01:00
Helena Edelson
00b235d9c5
Support rolling update for new JoinConfigCompatChecker #26194 (#26229)
Support rolling update for new JoinConfigCompatChecker #26194
2019-01-14 09:15:22 -08:00
Patrik Nordwall
7b29f10f71
Merge pull request #26242 from akka/wip-26214-CoordinatedShutdownShardingSpec-patriknw
Always retry sendGracefulShutdownToCoordinator, #26214
2019-01-14 15:42:07 +01:00
Helena Edelson
5514afbe54
Fix compiler warnings in akka-cluster* #26087 (#26241)
* Fix compiler warnings in akka-cluster* #26087
* Added new mima filters for 2.5.19 bin compat.
2019-01-14 05:50:59 -08:00
Patrik Nordwall
646e066732
Merge pull request #26220 from hepin1989/java-formatting
Java formatting
2019-01-14 13:41:58 +01:00
Patrik Nordwall
5c2ffce0df Always retry sendGracefulShutdownToCoordinator, #26214
* I could reproduce the issue locally with debug logging and it's clear that it's a
  timing issue. The GracefulShutdownReq message goes to deadletters and it's not
  retried because the coordinator variable was unset.
* cluster-sharding-shutdown-region phase of CoordinatedShutdown timed out
2019-01-14 13:31:34 +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
Arnout Engelen
5664f4ae88 clarify watchCompletion only watches the stage, not the stream (#26224)
* clarify watchCompletion only watches the stage, not the stream

* stage->operator
2019-01-13 18:23:15 +01:00
hepin1989
998c5a9285 Formatting java codes with sbt-java-formatter. 2019-01-12 04:00:53 +08:00
hepin1989
27500001ea Add sbt-java-formatter for java code formatting. 2019-01-12 01:41:54 +08:00
Patrik Nordwall
eaca6de25f
Merge pull request #26155 from akka/wip-receiveSignal-patriknw
don't show receiveSignal from ExtensibleBehavior in Receive
2019-01-11 15:58:29 +01:00
Arnout Engelen
c109759258
Merge pull request #26043 from akka/scala-2.13.0-M5
scala 2.13.0-M5 support
2019-01-11 14:54:49 +01:00
Arnout Engelen
d274e039f9
Various scala-2.13.0-M5 fixes
fix akka-actor-tests compile errors

some tests still fail though

Fix test failures in akka-actor-test

Manually work arround missing implicit Factory[Nothing, Seq[Nothing]]

see https://github.com/scala/scala-collection-compat/issues/137

akka-remote scalafix changes

Fix shutdownAll compile error

test:akka-remote scalafix changes

akka-multi-node-testkit scalafix

Fix akka-remote-tests multi-jvm compile errors

akka-stream-tests/test:scalafix

Fix test:akka-stream-tests

Crude implementation of ByteString.map

scalafix akka-actor-typed, akka-actor-typed-tests

akka-actor-typed-tests compile and succeed

scalafix akka-camel

scalafix akka-cluster

akka-cluster compile & test

scalafix akka-cluster-metrics

Fix akka-cluster-metrics

scalafix akka-cluster-tools

akka-cluster-tools compile and test

scalafix akka-distributed-data

akka-distributed-data fixes

scalafix akka-persistence

scalafix akka-cluster-sharding

fix akka-cluster-sharding

scalafix akka-contrib

Fix akka-cluster-sharding-typed test

scalafix akka-docs

Use scala-stm 0.9 (released for M5)

akka-docs

Remove dependency on collections-compat

Cherry-pick the relevant constructs to our own
private utils

Shorten 'scala.collections.immutable' by importing it

Duplicate 'immutable' imports

Use 'foreach' on futures

Replace MapLike with regular Map

Internal API markers

Simplify ccompat by moving PackageShared into object

Since we don't currently need to differentiate between 2.11 and

Avoid relying on 'union' (and ++) being left-biased

Fix akka-actor/doc by removing -Ywarn-unused

Make more things more private

Copyright headers

Use 'unsorted' to go from SortedSet to Set

Duplicate import

Use onComplete rather than failed.foreach

Clarify why we partly duplicate scala-collection-compat
2019-01-11 12:27:18 +01:00
Seth Tisue
3bff646218
avoid clashing imports under new M5 rules 2019-01-11 11:44:52 +01:00
Arnout Engelen
0cc8e20a2e
Various scala-2.13.0-M5 fixes
Clearer imports in TcpDnsClient

Accept SVG's when checking if diagrams were generated

Fix akka-actor MiMa issues

akka-testkit scalafix changes

Update scalatest to 2.13-released snapshot

akka-stream scalafix changes

Update ssl-config

To version that's released with -M5

Take elements directly out of buffer

Manually fix immutable.Seq / Doc link

Make sure the right Concat, Sink is imported

akka-stream binary compat

akka-stream-testkit scalafix

akka-actor-tests scalafix

Eta-expensions
2019-01-11 11:44:35 +01:00
Guillaume Massé
10575ce8c5
Various fixes for scala-2.13.0-M5
Manually eta-expand see https://github.com/scala/scala-collection-compat/issues/131

MapLike => Map

Rewrite filterKey with ApplyInfix syntax

Manually fix scala/bug#11033

Manually fix compat layer

since it's 2.13, it's not picked up by scalafix
2019-01-11 11:43:39 +01:00
Seth Tisue
67300e4122
isFinite has zero parameter lists now 2019-01-11 11:43:31 +01:00
Arnout Engelen
66423b2077
Separate ByteIterator implementations for 2.11, 2.12 and 2.13+
Based on f53c843612c194751db8e6ceab9057f90ae1e4b5
2019-01-11 11:43:30 +01:00
Guillaume Massé
fcde44f424
Split ByteString for 2.13 and 2.12
see https://github.com/scala/bug/issues/10973 for indexWhere/indexOf
2019-01-11 11:43:29 +01:00
Arnout Engelen
4c7440c952
akka-actor scalafix changes 2019-01-11 11:43:26 +01:00
Patrik Nordwall
fee98217e6
Merge pull request #26153 from akka/wip-expectTerminated-patriknw
Cleanup Typed TestProbe implementation
2019-01-10 12:22:27 +01:00
Patrik Nordwall
19769e2a87 Cleanup Typed TestProbe implementation
* use a consistent api/impl technique
* _internal methods are not dilating
* add expectTerminated with default timeout
* FiniteDuration in awaitAssert
2019-01-10 11:34:29 +01:00
Johan Andrén
463cdfe2a6
Intercept subset of messages #25727 2019-01-09 20:15:24 +01:00
kerr
cc19367588 More Java getters for akka.actor.AbstractActor.ActorContext #26161 2019-01-09 20:13:56 +01:00
Oleksandr Sova
56b2900c12 Fix debug message Udp.Received Message.parse at DnsClient (#26218) 2019-01-09 16:20:57 +01:00
kerr
7c43ccdabf Add how to check binary compatibility. (#26219) 2019-01-09 16:20:09 +01:00
kerr
5a30b54790 Remove some unused import in akka-stream's boilerplate templates. (#26221) 2019-01-09 16:19:37 +01:00
Helena Edelson
c217ef55a4 Remove duplicate code in Cluster Sharding Typed HashCode*MessageExtractor [#26197] (#26204)
* Remove duplicate code in Cluster Sharding Typed HashCode*MessageExtractor #26197

* Relocated comments per review suggestion.

* Reverting the overlooked math.abs
2019-01-08 14:12:12 +00:00
Christopher Batey
f18399823a
Artery tests: use config to determine TCP/UDP free port + use the correct host (#26211)
* Harden RemoteConnectionSpec

* Select a free port on the same interface for the second actor system
rather than the random one

* Use config to determine tcp/udp for free port in Artery tests
2019-01-08 14:07:13 +00:00
Jeffrey Chung
eeafbff4dc Make it clearer that StreamRefs should be used with Akka Cluster (closes (#26213)
Make it clearer that StreamRefs should be used with Akka Cluster (closes #26173)

Retain the use of "as"
2019-01-08 11:24:33 +01:00
Renato Cavalcanti
8ab006693e Updates header for akka.compat.Future (#26210) 2019-01-07 19:07:29 +01:00
Patrik Nordwall
3293551c55
Merge pull request #26205 from dwijnand/run-ask/pipe-on-the-actors-thread-on-java
Run ask/pipe on the actor's thread, in Java
2019-01-07 17:20:34 +01: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
Patrik Nordwall
4bf896d865 rename timeout to delay in startSingleTimer (#26154) 2019-01-07 15:44:04 +01:00
Seeta Ramayya
75713c3469 Missing Java API: Source.empty 2019-01-07 15:02:24 +01:00
Patrik Nordwall
2af9b6bd35 remove unused Command type param in EffectFactories (#26152) 2019-01-07 14:46:06 +01:00
kerr
0848a5c02c Import akka.actor as untyped but not a. (#26079) 2019-01-07 14:45:51 +01:00
Dale Wijnand
aec5dd2173
Run ask/pipe on the actor's thread, in Java 2019-01-07 12:22:00 +00:00
Patrik Nordwall
c8e6500f7c
Merge pull request #26202 from akka/wip-25824-stashing-pipeToSelf-patriknw
stashing and pipeToSelf, #25824
2019-01-07 09:58:30 +01:00
Patrik Nordwall
76caf26dc2 stashing and pipeToSelf, #25824 2019-01-04 16:24:22 +01:00
Helena Edelson
dbd1b78623
Add JoinConfigCompatChecker for in Typed #25667 (#26174)
[#25667[(https://github.com/akka/akka/issues/25667)
2019-01-04 07:04:12 -08:00
airt
e124d11995 add examples for scan operator #25468 2019-01-04 15:08:54 +01:00
Patrik Nordwall
a8a443abec
Merge pull request #26170 from akka/wip-adopt-jdk-travis-patriknw
Use Adopt JDK 8 in Travis
2019-01-04 14:19:19 +01:00
Dale Wijnand
1c370c1282 Add pipeToSelf to typed ActorContext #26199
Implemented in terms of AdaptMessage, which makes sure to map the values on the actor's thread, in Scala.
2019-01-04 10:04:30 +01:00
Seeta Ramayya
f8618b24b0 added examples for Stream # actorRef operator. As part of #25468 (#26162) 2019-01-02 17:08:35 +01:00
Arnout Engelen
6cca1a0ee3
Don't be too clever with the copyright year (#26169) 2019-01-02 16:21:01 +01:00
Seeta Ramayya
1cae9b0d44 25468: added examples for Stream # cycle operator. (#26163) 2019-01-02 15:46:13 +01:00
Martin Grotzke
f3b7d316b2 Document how to observe mocked behavior with typed ActorTestKit #26116 2019-01-02 15:30:55 +01:00
Patrik Nordwall
a313ee2fb5 Use Adopt JDK 8 in Travis 2019-01-02 13:56:33 +01:00
Martynas Mickevičius
f6f4611d4a Two typo fixed in the typed persistence docs (#26168) 2019-01-02 13:24:28 +01:00