Commit graph

25113 commits

Author SHA1 Message Date
Ignasi Marimon-Clos
2b71abe78e Show less code. More informative comments (still hides blocking calls 2020-07-07 15:27:25 +02:00
Ignasi Marimon-Clos
024710a6e0 Headers and formats 2020-07-07 14:58:56 +02:00
Ignasi Marimon-Clos
0e3b4605ad Simplify code: instanceof, hide sleeps,... 2020-07-07 14:25:27 +02:00
Ignasi Marimon-Clos
95a000a51b Adds sample code for the monitor operator 2020-07-07 13:09:54 +02:00
Dave Handy
2f2ee9e67c
Change JsonFraming to fail stage if completing within an object #29228 2020-07-03 17:22:40 +02:00
Patrik Nordwall
f6ceb4d49a
Flush messages before DeathWatchNotification, #28695 (#28940)
* Since DeathWatchNotification is sent over the control channel it may overtake
  other messages that have been sent from the same actor before it stopped.
* It can be confusing that Terminated can't be used as an end-of-conversation marker.
* In classic Remoting we didn't have this problem because all messages were sent over
  the same connection.

* don't send DeathWatchNotification when system is terminating
* when using Cluster we can rely on that the other side will publish AddressTerminated
  when the member has been removed
* it's actually already a race condition that often will result in that the DeathWatchNotification
  from the terminating side
  * in DeathWatch.scala it will remove the watchedBy when receiving AddressTerminated, and that
    may (sometimes) happen before tellWatchersWeDied

* same for Unwatch
* to avoid sending many Unwatch messages when watcher's ActorSystem is terminated
* same race exists for Unwatch as for DeathWatchNotification, if RemoteWatcher publishAddressTerminated
  before the watcher is terminated

* config for the flush timeout, and possibility to disable
2020-07-03 09:54:35 +02:00
Patrik Nordwall
5f70286b18
Merge pull request #29333 from akka/wip-mix-log-patriknw
update the log message in docs for mixed versions
2020-07-02 20:44:16 +02:00
Enno
7d328c9984
Docs: re-add akka.patterns page (#29024)
* Docs: re-add akka.patterns page
* Add overloads with ClassicActorSystemProvider
* docs for Java `after`
2020-07-02 10:19:11 +02:00
Christopher Batey
663ccbae2d
Partial revert of #29268 to preserve source compatibility (#29341) 2020-07-02 09:58:05 +02:00
Enno
101c1d9b65
Docs: Actor sink stream operators (#29171) 2020-07-01 21:27:29 +02:00
Patrik Nordwall
1e5cb5a720
Merge pull request #29310 from ennru/symbolic-akka-version
docs: show Akka version as symbol
2020-07-01 17:15:52 +02:00
Patrik Nordwall
80d5e67eec
Merge pull request #29325 from chbatey/issue-29290
ClusterShardingSpec: Enable log capturing
2020-07-01 13:04:40 +02:00
Patrik Nordwall
158faa24e3 update the log message in docs for mixed versions 2020-07-01 11:30:16 +02:00
Scala Steward
37b1e6f118
Update sbt-assembly to 0.15.0 (#29301)
* Update sbt-assembly to 0.15.0
* Fix shading

Co-authored-by: Arnout Engelen <arnout@bzzt.net>
2020-07-01 11:03:28 +02:00
jeremie-seguin
6130b33e08
Fix doc typo (#29326) 2020-06-30 10:52:26 +02:00
Renato Cavalcanti
e8e43be3fe
Merge pull request #29323 from akka/wip-test-ser-conf-patriknw 2020-06-29 15:56:14 +02:00
Patrik Nordwall
f6140c75b0 and fix the double $ 2020-06-29 14:37:48 +02:00
Renato Cavalcanti
22c294ac3b
Merge pull request #29322 from aldenml/comment-fix
minor comment fix in ClusterSingletonManager.scala, removed extra word
2020-06-29 13:26:03 +02:00
Christopher Batey
edd246de4c ClusterShardingSpec: Enable log capturing 2020-06-29 12:21:59 +01:00
Patrik Nordwall
0ea62717bf wrong serializer config in ActorSystemSpec 2020-06-29 13:05:11 +02:00
Alden Torres
1c67d743f9 minor comment fix in ClusterSingletonManager.scala, removed extra word 2020-06-26 15:36:17 -04:00
Enno
4947c07385
Docs: link to object API docs (#29195) 2020-06-26 09:07:01 +02:00
Scala Steward
09201bf65c
Update sbt to 1.3.12 (#29307) 2020-06-26 09:06:35 +02:00
Enno Runne
1347b713f6 docs: show Akka version as symbol 2020-06-25 11:59:37 +02:00
Johannes Rudolph
08869ef7c6
actor: simplify empty ByteString instances (#29268)
* actor: simplify empty ByteString instances
* use Array.emptyByteArray
2020-06-25 10:41:17 +02:00
Arnout Engelen
b95c82e63b
Docs: Document reference.conf appending on gradle+kotlin (#29274) 2020-06-25 10:11:23 +02:00
ohze.net
01501148d7
dotty phase 3: Some required syntax changes (#29139)
Co-authored-by: Bùi Việt Thành <thanhbv@sandinh.net>
2020-06-25 09:47:31 +02:00
Yury Gribkov
6b402f4bf0
Annotate Shard instrumented methods with InternalStableApi (#29255) 2020-06-25 09:39:26 +02:00
itssunilsid
0f7785e8d9
Allowing arbitrary random number generators (#29246)
Issue #29188
2020-06-25 09:35:44 +02:00
Christopher Batey
7dfcc0bfd0
Validate leveldb write plugin is enabled for leveldb read plugin (#29288)
* Validate leveldb write plugin is enabled for leveldb read plugin

And remove some weird overriding

* mima
2020-06-24 08:01:03 +01:00
Arnout Engelen
ce07d5f15a
Avoid 'dead code after this construct' warnings in jackson-databind example (#29278)
This signature of jackson-databind's `set` is:

    public <T extends JsonNode> T set(String fieldName, JsonNode value)

When running the Scala compiler with dead code warnings enabled, this
will cause warnings due to https://github.com/scala/bug/issues/8109 .
Making the generic type explicit avoids that.
2020-06-23 09:15:17 +02:00
eyal farago
d6fd8c30e0
stream: ensure async boundaries propagate cancellation causes (#29213)
Before, a cancellation cause might be lost if cancellation happened before subscription was completely handled.
2020-06-22 14:02:01 +02:00
Johannes Rudolph
a80624bd66
Improve RotatingKeysSSLEngineProviderSpec (#29222)
* tests: increase timeout during termination

Attempt to fix #29221

* tighten timeout and add debug logging

* Stop using testkit's actorsystem. Cleaup after termination

* Fix compile error

* Make naming easier to follow, avoid testkit sys more

Co-authored-by: Ignasi Marimon-Clos <ignasi@lightbend.com>
Co-authored-by: Arnout Engelen <arnout@bzzt.net>
2020-06-19 16:03:35 +02:00
Renato Cavalcanti
66d9dc33f6
Merge pull request #28986 from manishbansal8843/patch-1
Improved utilities/logging documentation
2020-06-19 13:31:05 +02:00
Renato Cavalcanti
9236286999
Merge pull request #29235 from akka/rgc/use-integer-in-javadsl
ShardedDaemonProcess: Use Interger in javadsl function
2020-06-19 09:21:36 +02:00
Johan Andrén
1e9e984727
Removing, deprecating and replacing usage of black/whitelist (#29254) 2020-06-18 15:48:28 +02:00
Johan Andrén
25ea7b7f5e
Remove or replace master/slave terminology from tests and API docs (#29252)
* Remove or replace master/slave terminology from tests and API docs
* Replace master where it would potentially imply being master/slave
2020-06-18 08:17:46 +02:00
Johan Andrén
0a986bf13d
Missing wildcard port for netty in some sharding tests #29251 2020-06-17 17:23:12 +02:00
Renato Cavalcanti
1b2b7bffc8
formatting 2020-06-17 14:36:21 +02:00
Renato Cavalcanti
6ab23dfd68
javadsl uses java.util.function.IntFunction instead 2020-06-17 13:26:20 +02:00
Renato Cavalcanti
e7a7d95e37
mima exclusions 2020-06-17 11:24:30 +02:00
Renato Cavalcanti
b89cc4c417
User Interger in javadsl function 2020-06-17 09:45:49 +02:00
Johan Andrén
4811b53917
Merge pull request #29219 from akka/feature-remember-entities-rework
Rework of Remember Entities and sharding internals #27763
2020-06-17 09:07:49 +02:00
Johan Andrén
b734797fc8 MiMa filter for the Sharding and Remember Entities rework 2020-06-16 10:58:08 +02:00
Christopher Batey
395fa64f8c
Harden PersistentShardingMigrationSpec (#29240)
Wait for cluster to be up before running test and increase retry
interval
2020-06-16 10:49:46 +02:00
Johan Andrén
b2b594293d
Split up large writes in the EventSourcedRememberEntitiesShardStore (#29233) 2020-06-16 09:14:42 +02:00
Christopher Batey
7f48be9ef8
Use watchWith for entity terminated (#29230)
Also, internal API changes for Cinnamon.
2020-06-16 09:13:52 +02:00
Johan Andrén
988ead1ef6
Clear out list of shards in DData coordinator store when no longer needed (#29232) 2020-06-15 17:36:22 +02:00
Arnout Engelen
9641780054
Avoid triggering IntelliJ's dead code detection (#29242) 2020-06-15 15:06:08 +01:00
Enno
bc68f0d650
Docs: Actor source stream operators (#29178) 2020-06-15 14:11:28 +02:00