Commit graph

25098 commits

Author SHA1 Message Date
Johan Andrén
13aed055fd
Publish Dropped message when sharding drops buffered messages (#29163) 2020-06-02 14:58:04 +02:00
Johan Andrén
e701453a19
Merge pull request #29160 from chbatey/wip-chbatey-cluster-intro-vid
Link to akka cluster video
2020-06-02 09:08:56 +02:00
Johan Andrén
f70d33145c
Merge pull request #29158 from johanandren/merge-master-2
Merge Master into Remember Entities feature branch a second time
2020-06-02 08:45:34 +02:00
Christopher Batey
09aa9ffc24 Link to akka cluster video 2020-06-02 07:18:02 +01:00
Johan Andrén
5d42c929ef I gotta remove these empty files 2020-06-01 17:36:49 +02:00
Johan Andrén
e89b108765 Scalafmt wants an empty line after header 2020-06-01 15:51:32 +02:00
Johan Andrén
012140e814 Missing headers 2020-06-01 15:06:19 +02:00
Johan Andrén
5b5e3577e2 Some changes on top of changes from master 2020-06-01 14:30:28 +02:00
Johan Andrén
5bbf5a5a21 Merge branch 'master' again to get the latest sharding fixes 2020-06-01 12:57:51 +02:00
Johan Andrén
b9667fb6b3
Batch remember entity stops (#29149) 2020-06-01 11:03:03 +02:00
Patrik Nordwall
4425005435
Merge pull request #29144 from akka/wip-29085-spi-patriknw
Telemetry SPI hooks for SBR decision, #29085
2020-06-01 07:53:13 +02:00
Renato Cavalcanti
0969e9d5a3
Merge pull request #29028 from akka/actor-ref-provider-logging
LocalActorRefProvider: added dedicated logger for deserialization failures
2020-05-29 10:26:58 +02:00
Renato Cavalcanti
7770ea7ec9
Merge branch 'master' into actor-ref-provider-logging 2020-05-29 08:57:39 +02:00
Johannes Rudolph
24f2b2e617
stream: cosmetic improvements to FutureFlow (#29068) 2020-05-28 15:42:41 +02:00
Johannes Rudolph
842052d633
Merge pull request #29091 from jrudolph/28993-fix-keepAlive
stream: make keepAlive/IdleInject more reliable against flukes
2020-05-28 14:45:07 +02:00
Johannes Rudolph
8e349b4180
Merge pull request #29121 from jrudolph/29111-fix-tls-actor-hangs 2020-05-28 14:40:26 +02:00
Nicolas Vollmar
cfe4443d25
Extend backoff supervision with custom message handling #29082 (#29083) 2020-05-28 13:15:46 +02:00
Christopher Batey
0d1237fd44
Latency benchmarks for rememered entities + JFR events (#29103) 2020-05-28 09:35:27 +02:00
Patrik Nordwall
2a536d7065
Merge pull request #29140 from akka/wip-29085-log-patriknw
Log markers for SBR, #29085
2020-05-28 08:59:21 +02:00
Patrik Nordwall
cd9e9e960a Telemetry SPI hooks for SBR decision, #29085 2020-05-28 08:52:22 +02:00
Patrik Nordwall
95dd4b2021
handle thrown exceptions in Retry pattern in same way as failed Future (#29119) 2020-05-28 07:22:22 +01:00
Christopher Batey
870eef540a
Improve remember entities docs (#29136) 2020-05-27 15:50:55 +01:00
Johannes Rudolph
87c5844451
stream: avoid getting stuck when doUnwrap returns NEED_WRAP with outstanding data
Refs #29111

This seems only to happen with TLS 1.3. In that case, remaining data in
`transportInBuffer` was left there instead of putting it back onto the
chopping block.

Then `doWrap` was run but `doUnwrap` was never called again because only
the chopping block was checked for outstanding data but not the buffer.
2020-05-27 15:03:07 +02:00
Johannes Rudolph
9beb88fa44
stream: fix half-closed TLS connection spin-loop
Refs #29110

TLSActor could get caught in a spin-loop on connection termination
because there was an implicit assumption that when inbound is closed
(peer has sent `close_notify`), this SSLEngine would also automatically
send a `close_notify` and close the connection.

Therefore, it would stay in `flushOutbound` pumping in a loop.

This is not true anymore with TLS 1.3, more accurately it can be
configured using `-Djdk.tls.acknowledgeCloseNotify` which is `false` by
default leading to half-open connections.

The solution is to not support half-open TLS connections for now and
consider a connection closed as soon as `isInboundClosed` and there's no
outstanding data.

(To support half-open connections, this fix would have to be reverted
and `flushOutbound` fixed accordingly.)
2020-05-27 15:03:07 +02:00
Johannes Rudolph
e524a0d445
stream: run TlsSpec for TLSv1.3 on jdk >= 11
Session renegotiation tests are disabled because TLS 1.3 does not
support renegotiation any more.
2020-05-27 15:03:06 +02:00
Patrik Nordwall
b933fd0b16
Merge pull request #29137 from akka/wip-29131-region-termination-patriknw
Don't allocate to terminated regions, #29131
2020-05-27 14:30:47 +02:00
Patrik Nordwall
1472bd9e8c Log markers for SBR, #29085 2020-05-27 14:26:55 +02:00
Christopher Batey
b463a1adbd
Merge master into re feature branch (#29135)
* Merge master into feature branch

* Formatting

* Remove redundant fixme

* Remove files that snuck in

* Fix backoff supervisor test
2020-05-27 12:50:53 +01:00
Patrik Nordwall
95111955c4 Don't allocate to terminated regions, #29131
* when using down-removal-margin it could allocate to an
  already terminated region
* the watch fix in PR #29092 solves this
* this is an "optimization" to avoid the regions that
  have been terminated
2020-05-27 11:09:59 +02:00
Patrik Nordwall
7c77617d18
Merge pull request #29092 from akka/wip-29034-sharding-watch-patriknw
Allow ShardCoordinator to watch old region ActorRef that is not in cluster, #29034
2020-05-27 10:06:38 +02:00
Patrik Nordwall
90aa5be45e
fix wrong lastSequenceNumber, #28976 (#29128)
* off by one when accessed from event handler
* off by one from event handler during replay
* wrong when unstashing
* added more tests, also for persist of several events
2020-05-26 17:17:30 +02:00
Johan Andrén
2a1f54c8ce
Stash the custom termination message for watchWith #29101 2020-05-26 16:04:41 +02:00
Patrik Nordwall
228e1cfebc
Detect duplicate serializer identifiers, #29100
* Detect duplicate serializer identifiers, #29100
* and expand the documentation for the serializer identifier
* and mention BaseSerializer to read the identifier from config
* same class same id is ok
2020-05-26 13:09:53 +02:00
Patrik Nordwall
176152278b
doc: add routers to Higher level Cluster tools (#29117) 2020-05-26 13:09:01 +02:00
Johan Andrén
578acab047
Publish Dropped to eventstream when serialized payload too large #29077 (#29079) 2020-05-26 13:08:14 +02:00
Christopher Batey
fa702d5a45
Fix race in ActorThreadSpec (#29130) 2020-05-26 13:06:28 +02:00
Johan Andrén
7dfb34f37e
Don not crash coordinator on old remember entities store responses (#29129)
* The require made the coordinator crash and never recover friendship with regions

* We don't need those logs
2020-05-26 11:51:36 +01:00
Renato Cavalcanti
5b60931968
Merge pull request #29108 from scala-steward/update/metrics-core-4.1.9 2020-05-26 09:50:49 +02:00
Patrik Nordwall
4f0417e12e
InternalStableApi on JavaDurationConverters (#29118) 2020-05-26 09:47:24 +02:00
Johan Andrén
0baf31cef7
Multiple remember entities fixes (#29124)
* Logging cleanup
* Cherry pick of Chbateys fix for watch/termination of entity
* When write is in progress or in batch queue message needs to go in buffer (If it doesn't it can re-order delivery)
2020-05-26 09:03:56 +02:00
Renato Cavalcanti
3d377bec97
Merge pull request #29122 from akka/wip-reply-type-patriknw 2020-05-26 08:52:12 +02:00
Renato Cavalcanti
34ed9f2822
Merge pull request #29123 from akka/wip-steward-less-often-patriknw 2020-05-26 08:46:46 +02:00
Patrik Nordwall
4b6e659c83 Scala Steward once per once 2020-05-25 15:17:56 +02:00
Patrik Nordwall
07165d181b
change email in pom.xml (#29116) 2020-05-25 14:23:43 +02:00
Patrik Nordwall
888580e604 remove reply type parameter from Command in Account example
* only makes it look more complex than it is
* probably a remaining of the early reply experiments
2020-05-25 14:08:00 +02:00
Patrik Nordwall
c45e6ef39b
Add Lightbend's SBR to Akka Cluster, #29085 (#29099)
* change package name to akka.cluster.sbr
* reference.conf has same config paths
* akka.cluster.sbr.SplitBrainResolverProvider instead of com.lightbend.akka.sbr.SplitBrainResolverProvider
* dependency from akka-cluster to akka-coordination, for lease strategy
* move TestLease to akka-coordination and use that in SBR tests
* remove keep-referee strategy
* use keep-majority by default
* review and adjust reference documentation

Co-authored-by: Johan Andrén <johan@markatta.com>
Co-authored-by: Johannes Rudolph <johannes.rudolph@gmail.com>
Co-authored-by: Christopher Batey <christopher.batey@gmail.com>
Co-authored-by: Arnout Engelen <github@bzzt.net>
2020-05-25 12:21:13 +02:00
Scala Steward
f09ac3eff0
Update metrics-core, metrics-jvm to 4.1.9 2020-05-24 18:05:27 +02:00
Patrik Nordwall
e0586e546c
Detect illegal access to ActorContext from the outside (#27112) 2020-05-22 17:23:02 +02:00
Johan Andrén
bee6f3cbf0
Don't stall coordinator init on slow remember shard store #28925 2020-05-22 15:40:26 +02:00
klappvisor
a28ec9786e
Fixed Deploy productElement implementation #29104 (#29105) 2020-05-22 14:49:34 +02:00