From 19d4fd1bfa7fbdd463f12f2d9300888e54042e32 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 23 Aug 2025 11:39:12 +0100 Subject: [PATCH] remove deprecated method in AeronErrorLog (#2055) * remove deprecated method in AeronErrorLog * Update remove-deprecated-methods.excludes --- .../apache/pekko/remote/artery/aeron/AeronErrorLog.java | 7 ++----- .../remove-deprecated-methods.excludes | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/remote/src/main/java/org/apache/pekko/remote/artery/aeron/AeronErrorLog.java b/remote/src/main/java/org/apache/pekko/remote/artery/aeron/AeronErrorLog.java index 21c32a3a6c..fd4ca15cd8 100644 --- a/remote/src/main/java/org/apache/pekko/remote/artery/aeron/AeronErrorLog.java +++ b/remote/src/main/java/org/apache/pekko/remote/artery/aeron/AeronErrorLog.java @@ -23,6 +23,7 @@ import org.agrona.IoUtil; import org.agrona.concurrent.AtomicBuffer; import org.agrona.concurrent.errors.ErrorLogReader; +import org.apache.pekko.annotation.InternalApi; import org.apache.pekko.event.LoggingAdapter; import org.apache.pekko.util.Helpers; @@ -37,15 +38,11 @@ import java.util.concurrent.atomic.AtomicLong; * by media driver in shared memory. This application reads the cnc file and prints the distinct * errors. Layout of the cnc file is described in {@link io.aeron.CncFileDescriptor}. */ +@InternalApi public class AeronErrorLog { final MappedByteBuffer cncByteBuffer; final AtomicBuffer buffer; - @Deprecated - public AeronErrorLog(File cncFile) { - this(cncFile, NoLogging.getInstance()); - } - public AeronErrorLog(File cncFile, LoggingAdapter log) { cncByteBuffer = IoUtil.mapExistingFile(cncFile, "cnc"); final DirectBuffer cncMetaDataBuffer = CncFileDescriptor.createMetaDataBuffer(cncByteBuffer); diff --git a/remote/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-methods.excludes b/remote/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-methods.excludes index 20e6c4a16d..de1e1fda4c 100644 --- a/remote/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-methods.excludes +++ b/remote/src/main/mima-filters/2.0.x.backwards.excludes/remove-deprecated-methods.excludes @@ -23,6 +23,7 @@ ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.remote.Quar ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.remote.QuarantinedEvent.uid") ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.remote.QuarantinedEvent.this") ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.remote.QuarantinedEvent.tupled") +ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.remote.artery.aeron.AeronErrorLog.this") ProblemFilters.exclude[MissingClassProblem]("org.apache.pekko.remote.serialization.ByteStringSerializer") ProblemFilters.exclude[MissingClassProblem]("org.apache.pekko.remote.serialization.IntSerializer") ProblemFilters.exclude[MissingClassProblem]("org.apache.pekko.remote.serialization.LongSerializer")