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/DSRSShutdownSync.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/service/DSRSShutdownSync.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/service/DSRSShutdownSync.java
index 21e5aee..361af54 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/service/DSRSShutdownSync.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/service/DSRSShutdownSync.java
@@ -146,8 +146,10 @@
    * period; the peers it is queued for, if they are recorded in that window, are lost too, with
    * the opposite effect - the first forward ends its wait, as for a message no peer was recorded
    * for. That window is the one publish the broker refuses: at once on a connection error or a
-   * pending recovery, the broker's retry loop up to the reconnect when it has no session. The
-   * wait it can cost is bounded by a grace period which is already running.
+   * pending recovery, the broker's retry loop up to the reconnect when it has no session, and the
+   * wait of a stopping broker for window credit, or for its replication server to read, up to the
+   * deadline of the stop. The wait it can cost is bounded by a grace period which is already
+   * running.
    *
    * @param baseDN
    *          the domain for which the message was announced

--
Gitblit v1.10.0