From 0885d16ac22a0ecd2267bf3c8818a3a8a5a9dadb Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Fri, 31 Jul 2026 07:48:54 +0000
Subject: [PATCH] Fix CodeQL warning-severity alerts: missed wakeups, resource leaks, escaping threads (#790)
---
opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationBroker.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationBroker.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationBroker.java
index 3015639..9e59eb1 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationBroker.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationBroker.java
@@ -829,7 +829,7 @@
final ConnectedRS rs = connectedRS.get();
if (rs.isConnected())
{
- connectPhaseLock.notify();
+ connectPhaseLock.notifyAll();
final long rsGenId = rs.rsInfo.getGenerationId();
final int rsServerId = rs.rsInfo.getServerId();
@@ -851,7 +851,7 @@
if (!connectionError)
{
connectionError = true;
- connectPhaseLock.notify();
+ connectPhaseLock.notifyAll();
if (!rsInfos.isEmpty())
{
@@ -2510,7 +2510,7 @@
synchronized (monitorResponse)
{
monitorResponse.set(true);
- monitorResponse.notify();
+ monitorResponse.notifyAll();
}
// Update the replication servers ServerStates with new received info
--
Gitblit v1.10.0