From 06e91a18f48ddf1cae6cbc9946688dea6a161425 Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Sat, 11 Jul 2026 10:36:01 +0000
Subject: [PATCH] [#730] Fix import/export context leak on failed initializeRemote validation (#731)
---
opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java b/opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java
index 3f302f8..54d858c 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java
@@ -13,6 +13,7 @@
*
* Copyright 2006-2010 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
+ * Portions Copyrighted 2026 3A Systems, LLC.
*/
package org.opends.server.replication;
@@ -726,11 +727,13 @@
}
}
- if (expectedTaskState == RUNNING && taskState == COMPLETED_SUCCESSFULLY)
+ if (expectedTaskState == RUNNING
+ && (taskState == COMPLETED_SUCCESSFULLY || taskState == STOPPED_BY_ERROR))
{
// We usually wait the running state after adding the task
- // and if the task is fast enough then it may be already done
- // and we can go on.
+ // and if the task is fast enough then it may already be done
+ // (successfully or not) and we can go on: callers interested in the
+ // final state wait for it explicitly afterwards.
}
else
{
--
Gitblit v1.10.0