This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch 1.2.x
in repository https://gitbox.apache.org/repos/asf/pekko.git


The following commit(s) were added to refs/heads/1.2.x by this push:
     new 8d82a68c10 add back BackoffSupervisor.calculateDelay due to bin compat 
issues (#2195)
8d82a68c10 is described below

commit 8d82a68c109d861532bcc624dfa31836ed22ad42
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Sep 12 16:37:50 2025 +0100

    add back BackoffSupervisor.calculateDelay due to bin compat issues (#2195)
    
    * add back BackoffSupervisor.calculateDelay due to bin compat issues
    
    * Update BackoffSupervisor.scala
    
    * Update releases-1.2.md
    
    * Update BackoffSupervisor.scala
---
 .../backoff-calculation.excludes                      | 19 -------------------
 .../org/apache/pekko/pattern/BackoffSupervisor.scala  | 16 ++++++++++++++++
 docs/src/main/paradox/release-notes/releases-1.2.md   |  6 ++++++
 3 files changed, 22 insertions(+), 19 deletions(-)

diff --git 
a/actor/src/main/mima-filters/1.1.x.backwards.excludes/backoff-calculation.excludes
 
b/actor/src/main/mima-filters/1.1.x.backwards.excludes/backoff-calculation.excludes
deleted file mode 100644
index 8a700c471d..0000000000
--- 
a/actor/src/main/mima-filters/1.1.x.backwards.excludes/backoff-calculation.excludes
+++ /dev/null
@@ -1,19 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# Move BackoffSupervisor.calculateDelay
-ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.pattern.BackoffSupervisor.calculateDelay")
diff --git 
a/actor/src/main/scala/org/apache/pekko/pattern/BackoffSupervisor.scala 
b/actor/src/main/scala/org/apache/pekko/pattern/BackoffSupervisor.scala
index 4584692afe..8d06ae87d5 100644
--- a/actor/src/main/scala/org/apache/pekko/pattern/BackoffSupervisor.scala
+++ b/actor/src/main/scala/org/apache/pekko/pattern/BackoffSupervisor.scala
@@ -311,6 +311,22 @@ object BackoffSupervisor {
    */
   @InternalApi
   private[pekko] case class ResetRestartCount(current: Int) extends 
DeadLetterSuppression
+
+  /**
+   * INTERNAL API
+   *
+   * Calculates an exponential back off delay.
+   *
+   * Was removed in 1.2.0 but added back in 1.2.1 for binary compatibility 
reasons.
+   */
+  @deprecated("Use RetrySupport.calculateDelay instead", since = "1.2.1")
+  private[pekko] def calculateDelay(
+      restartCount: Int,
+      minBackoff: FiniteDuration,
+      maxBackoff: FiniteDuration,
+      randomFactor: Double): FiniteDuration =
+    RetrySupport.calculateDelay(restartCount, minBackoff, maxBackoff, 
randomFactor)
+
 }
 
 final class BackoffSupervisor @deprecated("Use `BackoffSupervisor.props` 
method instead", since = "Akka 2.5.22") (
diff --git a/docs/src/main/paradox/release-notes/releases-1.2.md 
b/docs/src/main/paradox/release-notes/releases-1.2.md
index 8ea94d6a73..416d4f47ef 100644
--- a/docs/src/main/paradox/release-notes/releases-1.2.md
+++ b/docs/src/main/paradox/release-notes/releases-1.2.md
@@ -86,3 +86,9 @@ Most of the changes appeared in the milestone releases 
(1.2.0-M1 and 1.2.0-M2) b
 * slfj4 2.0.17
 * jupiter-junit 5.13.3
 * scala 2.12.20, 2.13.16, 3.3.6
+
+### Known Issues
+
+This release breaks binary compatibility for 
[pekko-persistence-cassandra](https://github.com/apache/pekko-persistence-cassandra/issues/305)
+and users of that lib will need to avoid Pekko 1.2.0 release. We will fix
+this in the 1.2.1 release.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to