Bump akka to 2.6.16 34/95334/14
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 24 Feb 2021 09:05:26 +0000 (10:05 +0100)
committerTomas Cere <tomas.cere@pantheon.tech>
Mon, 6 Sep 2021 15:01:02 +0000 (17:01 +0200)
https://akka.io/blog/news/2021/02/23/akka-2.6.13-released
https://akka.io/blog/news/2021/04/08/akka-2.6.14-released
https://akka.io/blog/news/2021/06/10/akka-2.6.15-released
https://akka.io/blog/news/2021/08/19/akka-2.6.16-released

Change-Id: I6d255bd6d2b4b1284bb6c7d8ccae4ec44a691556
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
akka/repackaged-akka-jar/pom.xml
akka/repackaged-akka-jar/src/main/resources/cluster_reference.conf
akka/repackaged-akka-jar/src/main/resources/persistence_reference.conf
akka/repackaged-akka-jar/src/main/resources/remote_reference.conf
akka/repackaged-akka-jar/src/main/resources/stream_reference.conf
bundle-parent/pom.xml
docs/pom.xml
features/odl-controller-akka/src/main/history/dependencies.xml
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractShardManagerTest.java

index a5a50a04b576afd0907f04ac9d1df8c1fd689dbe..5d5a3a8d2d632bc178ec463bf8946aae2778bd5f 100644 (file)
         <dependency>
             <groupId>com.typesafe.akka</groupId>
             <artifactId>akka-actor_2.13</artifactId>
-            <version>2.6.12</version>
+            <version>2.6.16</version>
         </dependency>
         <dependency>
             <groupId>com.typesafe.akka</groupId>
             <artifactId>akka-actor-typed_2.13</artifactId>
-            <version>2.6.12</version>
+            <version>2.6.16</version>
         </dependency>
         <dependency>
             <groupId>com.typesafe.akka</groupId>
             <artifactId>akka-cluster_2.13</artifactId>
-            <version>2.6.12</version>
+            <version>2.6.16</version>
         </dependency>
         <dependency>
             <groupId>com.typesafe.akka</groupId>
             <artifactId>akka-cluster-typed_2.13</artifactId>
-            <version>2.6.12</version>
+            <version>2.6.16</version>
         </dependency>
         <dependency>
             <groupId>com.typesafe.akka</groupId>
             <artifactId>akka-osgi_2.13</artifactId>
-            <version>2.6.12</version>
+            <version>2.6.16</version>
         </dependency>
         <dependency>
             <groupId>com.typesafe.akka</groupId>
             <artifactId>akka-persistence_2.13</artifactId>
-            <version>2.6.12</version>
+            <version>2.6.16</version>
         </dependency>
         <dependency>
             <groupId>com.typesafe.akka</groupId>
             <artifactId>akka-protobuf_2.13</artifactId>
-            <version>2.6.12</version>
+            <version>2.6.16</version>
         </dependency>
         <dependency>
             <groupId>com.typesafe.akka</groupId>
             <artifactId>akka-remote_2.13</artifactId>
-            <version>2.6.12</version>
+            <version>2.6.16</version>
         </dependency>
         <dependency>
             <groupId>com.typesafe.akka</groupId>
             <artifactId>akka-slf4j_2.13</artifactId>
-            <version>2.6.12</version>
+            <version>2.6.16</version>
         </dependency>
         <dependency>
             <groupId>com.typesafe.akka</groupId>
             <artifactId>akka-stream_2.13</artifactId>
-            <version>2.6.12</version>
+            <version>2.6.16</version>
         </dependency>
     </dependencies>
 
index 723f91effcad7b26ce8a13eb7d6ad199939bc332..6fa0e9458603a656b344dbda8184534b3dd230b1 100644 (file)
@@ -487,10 +487,17 @@ akka.cluster.split-brain-resolver.keep-oldest {
 akka.cluster.split-brain-resolver.lease-majority {
   lease-implementation = ""
 
+  # The recommended format for the lease name is "<service-name>-akka-sbr".
+  # When lease-name is not defined, the name will be set to "<actor-system-name>-akka-sbr"
+  lease-name = ""
+
   # This delay is used on the minority side before trying to acquire the lease,
   # as an best effort to try to keep the majority side.
   acquire-lease-delay-for-minority = 2s
 
+  # Release the lease after this duration.
+  release-after = 40s
+
   # If the 'role' is defined the majority/minority is based only on members with that 'role'.
   role = ""
 }
index 2e4c22d4de7df88b90073bd940240a346c59ef93..1e75bdc1a51620aaf76be3cbf570b05e79eca23b 100644 (file)
@@ -168,6 +168,15 @@ akka.persistence {
         call-timeout = 20s
         reset-timeout = 60s
       }
+
+      # Set this to true if successful loading of snapshot is not necessary.
+      # This can be useful when it is alright to ignore snapshot in case of
+      # for example deserialization errors. When snapshot loading fails it will instead
+      # recover by replaying all events.
+      # Don't set to true if events are deleted because that would
+      # result in wrong recovered state if snapshot load fails.
+      snapshot-is-optional = false
+
     }
 
   fsm {
index 4e465e31fe52633610f2bc1f75f4d96f93fcff74..310781fae6054373641a803986dd7a124363faee 100644 (file)
@@ -742,14 +742,14 @@ akka {
     artery {
 
       # Disable artery with this flag
-      enabled = off
+      enabled = on
 
       # Select the underlying transport implementation.
       #
       # Possible values: aeron-udp, tcp, tls-tcp
       # See https://doc.akka.io/docs/akka/current/remoting-artery.html#selecting-a-transport for the tradeoffs
       # for each transport
-      transport = aeron-udp
+      transport = tcp
 
       # Canonical address is the address other clients should connect to.
       # Artery transport will expect messages to this address.
index dd982714a17af35b7ec03f13818a4a97be70dff9..66d9130e38a46a893496965a37531334be0f3c2b 100644 (file)
@@ -87,6 +87,39 @@ akka {
         # slightly more bytes than this limit (at most one element more). It can be set to 0
         # to disable the usage of the buffer.
         write-buffer-size = 16 KiB
+
+        # In addition to the buffering described for property write-buffer-size, try to collect
+        # more consecutive writes from the upstream stream producers.
+        #
+        # The rationale is to increase write efficiency by avoiding separate small
+        # writes to the network which is expensive to do. Merging those writes together
+        # (up to `write-buffer-size`) improves throughput for small writes.
+        #
+        # The idea is that a running stream may produce multiple small writes consecutively
+        # in one go without waiting for any external input. To probe the stream for
+        # data, this features delays sending a write immediately by probing the stream
+        # for more writes. This works by rescheduling the TCP connection stage via the
+        # actor mailbox of the underlying actor. Thus, before the stage is reactivated
+        # the upstream gets another opportunity to emit writes.
+        #
+        # When the stage is reactivated and if new writes are detected another round-trip
+        # is scheduled. The loop repeats until either the number of round trips given in this
+        # setting is reached, the buffer reaches `write-buffer-size`, or no new writes
+        # were detected during the last round-trip.
+        #
+        # This mechanism ensures that a write is guaranteed to be sent when the remaining stream
+        # becomes idle waiting for external signals.
+        #
+        # In most cases, the extra latency this mechanism introduces should be negligible,
+        # but depending on the stream setup it may introduce a noticeable delay,
+        # if the upstream continuously produces small amounts of writes in a
+        # blocking (CPU-bound) way.
+        #
+        # In that case, the feature can either be disabled, or the producing CPU-bound
+        # work can be taken off-stream to avoid excessive delays (e.g. using `mapAsync` instead of `map`).
+        #
+        # A value of 0 disables this feature.
+        coalesce-writes = 10
       }
 
       # Time to wait for async materializer creation before throwing an exception
index f2f20754a8eb9618b52bf8ad01bbe058c76310d7..455778a3468ba5f2dc7d805f1852fd6213d2c937 100644 (file)
@@ -54,7 +54,7 @@
             <dependency>
                 <groupId>org.scalatestplus</groupId>
                 <artifactId>junit-4-13_2.13</artifactId>
-                <version>3.1.4.0</version>
+                <version>3.2.5.0</version>
                 <scope>test</scope>
             </dependency>
 
@@ -75,7 +75,7 @@
             <dependency>
                 <groupId>com.typesafe.akka</groupId>
                 <artifactId>akka-testkit_2.13</artifactId>
-                <version>2.6.12</version>
+                <version>2.6.16</version>
                 <scope>test</scope>
                 <exclusions>
                     <exclusion>
@@ -87,7 +87,7 @@
             <dependency>
                 <groupId>com.typesafe.akka</groupId>
                 <artifactId>akka-actor-testkit-typed_2.13</artifactId>
-                <version>2.6.12</version>
+                <version>2.6.16</version>
                 <scope>test</scope>
                 <exclusions>
                     <exclusion>
             <dependency>
                 <groupId>com.typesafe.akka</groupId>
                 <artifactId>akka-persistence-tck_2.13</artifactId>
-                <version>2.6.12</version>
+                <version>2.6.16</version>
                 <scope>test</scope>
                 <exclusions>
                     <exclusion>
             <dependency>
                 <groupId>org.agrona</groupId>
                 <artifactId>agrona</artifactId>
-                <version>1.8.0</version>
+                <version>1.9.0</version>
             </dependency>
             <dependency>
                 <groupId>io.aeron</groupId>
                 <artifactId>aeron-client</artifactId>
-                <version>1.31.1</version>
+                <version>1.32.0</version>
             </dependency>
             <dependency>
                 <groupId>io.aeron</groupId>
                 <artifactId>aeron-driver</artifactId>
-                <version>1.31.1</version>
+                <version>1.32.0</version>
             </dependency>
         </dependencies>
     </dependencyManagement>
index d7ca722e4c30197b81bb26e70f0b14d6fe68feb8..07a003d0c2a7d83c73bb1c77fc4c418de4beca6a 100644 (file)
                         <link>http://google.github.io/truth/api/1.0.1/</link>
                         <link>http://www.slf4j.org/apidocs/</link>
                         <link>https://google.github.io/guava/releases/29.0-jre/api/docs/</link>
-                        <link>http://doc.akka.io/japi/akka/2.6.12/</link>
+                        <link>http://doc.akka.io/japi/akka/2.6.16/</link>
                         <link>http://netty.io/4.1/api/</link>
                         <link>https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/</link>
                         <link>https://commons.apache.org/proper/commons-lang/javadocs/api-3.9/</link>
index 35f150fd5363521aa398d67f4d4ab20e3344a7c0..6868d15e66c951d7894832f77a5731a502a354e0 100644 (file)
@@ -4,10 +4,10 @@
         <feature>odl-controller-scala</feature>
         <bundle>mvn:com.typesafe/config/1.4.0</bundle>
         <bundle>mvn:com.typesafe/ssl-config-core_2.13/0.4.2</bundle>
-        <bundle>mvn:io.aeron/aeron-client/1.31.1</bundle>
-        <bundle>mvn:io.aeron/aeron-driver/1.31.1</bundle>
+        <bundle>mvn:io.aeron/aeron-client/1.32.0</bundle>
+        <bundle>mvn:io.aeron/aeron-driver/1.32.0</bundle>
         <bundle>mvn:io.netty/netty/3.10.6.Final</bundle>
-        <bundle>mvn:org.agrona/agrona/1.8.0</bundle>
+        <bundle>mvn:org.agrona/agrona/1.9.0</bundle>
         <bundle>mvn:org.opendaylight.controller/repackaged-akka/${project.version}</bundle>
         <bundle>mvn:org.reactivestreams/reactive-streams/1.0.3</bundle>
         <feature>wrap</feature>
index 9e05b7fbd32800b9aeda2ea1fb58bca9b7dee39d..e7a58a54485c705d721b27809b3e63ca6cc6d8ed 100644 (file)
@@ -8,6 +8,7 @@
 
 package org.opendaylight.controller.cluster.datastore;
 
+import static org.awaitility.Awaitility.await;
 import static org.mockito.Mockito.mock;
 import static org.mockito.MockitoAnnotations.initMocks;
 
@@ -15,6 +16,7 @@ import akka.actor.ActorRef;
 import akka.actor.PoisonPill;
 import akka.actor.Props;
 import com.google.common.util.concurrent.SettableFuture;
+import java.time.Duration;
 import java.util.concurrent.TimeUnit;
 import org.junit.After;
 import org.junit.Before;
@@ -78,6 +80,7 @@ public class AbstractShardManagerTest extends AbstractClusterRefActorTest {
         InMemorySnapshotStore.clear();
 
         mockShardActor.tell(PoisonPill.getInstance(), ActorRef.noSender());
+        await().atMost(Duration.ofSeconds(10)).until(mockShardActor::isTerminated);
         mockShardActor = null;
 
         actorFactory.close();