From 79e812a1ce0dc5e475a57a31c1a6ac2382c5b1a9 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Wed, 28 Oct 2026 16:24:44 +0000
Subject: [PATCH] [#1241] Log the benign aborts of a replication handshake as warnings: the cross connection timeout (145) and a peer which went away (178, 179) (#1242)
---
opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/Session.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/Session.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/Session.java
index a7823e3..f272b34 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/Session.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/Session.java
@@ -738,7 +738,9 @@
* need to implement any replication.
*
* @return The ReplicationMsg that was received.
- * @throws IOException When error happened during IO process.
+ * @throws IOException When error happened during IO process, a
+ * {@link PacketTooLargeException} when this server runs out of heap
+ * for the frame received.
* @throws DataFormatException When the data received is not formatted as a
* ReplicationMsg.
* @throws NotSupportedOldVersionPDUException If the received PDU is part of
@@ -773,8 +775,7 @@
}
catch (final OutOfMemoryError e)
{
- throw new IOException("Packet too large, can't allocate "
- + totalLength + " bytes.");
+ throw new PacketTooLargeException(totalLength);
}
}
catch (final IOException | DataFormatException | NotSupportedOldVersionPDUException | RuntimeException e)
--
Gitblit v1.10.0