Skip to content

Commit dc20037

Browse files
authored
Remove the unfixable testStateMachineFull and fix the dead replay pool (#700)
1 parent e7e7992 commit dc20037

2 files changed

Lines changed: 28 additions & 365 deletions

File tree

opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/MultimasterReplication.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*
1414
* Copyright 2006-2010 Sun Microsystems, Inc.
1515
* Portions Copyright 2011-2016 ForgeRock AS.
16+
* Portions Copyright 2026 3A Systems, LLC
1617
*/
1718
package org.opends.server.replication.plugin;
1819

@@ -293,7 +294,10 @@ public void initializeSynchronizationProvider(ServerContext serverContext,
293294
private int getNumberOfReplayThreadsOrDefault(ReplicationSynchronizationProviderCfg cfg)
294295
{
295296
Integer value = cfg.getNumUpdateReplayThreads();
296-
return value == null ? Platform.computeNumberOfThreads(16, 2.0f) : value;
297+
// A non-positive value would silently kill the replay thread pool: fall
298+
// back to the default in that case (the configuration schema enforces a
299+
// minimum of 1, so this can only come from a broken caller).
300+
return value == null || value <= 0 ? Platform.computeNumberOfThreads(16, 2.0f) : value;
297301
}
298302

299303
/** Create the threads that will wait for incoming update messages. */

0 commit comments

Comments
 (0)