From d0082246b9d667fb620c5d4b9c7d8e5ad01e1d81 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Sat, 19 Sep 2026 12:46:32 +0000
Subject: [PATCH] [#1036] Assert that a parked change is handed out, not which thread hands it out (#1037)

---
 opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/ReplayThread.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/ReplayThread.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/ReplayThread.java
index 27cffe6..6c5e357 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/ReplayThread.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/ReplayThread.java
@@ -96,8 +96,9 @@
       /*
        * The changes this thread parked as waiting for another change are handed out again
        * by getNextUpdate() alone, which every replay loop of a domain runs once it is done
-       * with a change: a parked change is replayed by whichever thread clears the change it
-       * was waiting for. A thread which is stopping is not on that road anymore, so what it
+       * with a change: a parked change is replayed by whichever thread calls it first once
+       * the change it was waiting for is gone - the thread which cleared it, as a rule. A
+       * thread which is stopping is not on that road anymore, so what it
        * parked would be left owned by a thread which does not exist, while every redelivery
        * of a change a replay thread owns is refused as a duplicate: on a domain which then
        * goes quiet that change is where the ServerState of this replica, and every change

--
Gitblit v1.10.0