From 77ad03e14cc1bbc5471f332ba73430d4c472b366 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Tue, 20 Oct 2026 06:45:44 +0000
Subject: [PATCH] [#1202] [#1209] [#1222] Give the replication server a bounded time to give credit and to read once the broker is being stopped, and write nothing after a message given up (#1210)

---
 opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationDomain.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationDomain.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationDomain.java
index 3dbca34..f72a4fe 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationDomain.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationDomain.java
@@ -3991,7 +3991,11 @@
    * @return {@code true} if the message was written to the session of the
    *         Replication Service, {@code false} if the broker could not write
    *         it: it has no usable session, the changes which come before this
-   *         one still have to be republished, or it was stopped in between.
+   *         one still have to be republished, or it was stopped in between -
+   *         or is being stopped, and the window of its session gave it no
+   *         credit for this message, or for one before it, or the replication
+   *         server did not read what was written to it, in the time the stop
+   *         gives the replication server.
    */
   public boolean publish(UpdateMsg msg)
   {

--
Gitblit v1.10.0