mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

3 files modified
24 ■■■■■ changed files
opendj-server-legacy/pom.xml 11 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPConnectionHandler.java 7 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/ReplayDuringImportTest.java 6 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/pom.xml
@@ -51,6 +51,7 @@
    <product.archive.name>${product.name.lowercase}-${project.version}</product.archive.name>
    <juel.version>2.2.7</juel.version>
    <testcontainers.version>1.21.4</testcontainers.version>
    <opendmk.lib.dir>${basedir}/opendmk</opendmk.lib.dir>
  </properties>
@@ -267,31 +268,31 @@
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>cassandra</artifactId>
      <version>1.20.6</version>
      <version>${testcontainers.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>postgresql</artifactId>
      <version>1.20.6</version>
      <version>${testcontainers.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>oracle-free</artifactId>
      <version>1.20.6</version>
      <version>${testcontainers.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>mysql</artifactId>
      <version>1.20.6</version>
      <version>${testcontainers.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.testcontainers</groupId>
      <artifactId>mssqlserver</artifactId>
      <version>1.20.6</version>
      <version>${testcontainers.version}</version>
      <scope>test</scope>
    </dependency>
opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
@@ -1038,22 +1038,25 @@
    int numRegistered = 0;
    for (InetAddress a : listenAddresses)
    {
      ServerSocketChannel channel = null;
      try
      {
        ServerSocketChannel channel = ServerSocketChannel.open();
        channel = ServerSocketChannel.open();
        channel.socket().setReuseAddress(allowReuseAddress);
        channel.socket()
            .bind(new InetSocketAddress(a, listenPort), backlog);
        channel.configureBlocking(false);
        channel.register(selector, SelectionKey.OP_ACCEPT);
        channel = null;
        numRegistered++;
        logger.info(NOTE_CONNHANDLER_STARTED_LISTENING, handlerName);
      }
      catch (Exception e)
      {
        close(channel);
        logger.traceException(e);
        logger.error(ERR_LDAP_CONNHANDLER_CREATE_CHANNEL_FAILED, currentConfig.dn(), a.getHostAddress(), listenPort,
            stackTraceToSingleLineString(e));
      }
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/ReplayDuringImportTest.java
@@ -12,7 +12,6 @@
 * information: "Portions copyright [year] [name of copyright owner]".
 *
 * Copyright 2026 3A Systems, LLC.
 * Portions Copyright 2026 3A Systems, LLC.
 */
package org.opends.server.replication.plugin;
@@ -57,6 +56,7 @@
import org.opends.server.replication.protocol.UpdateMsg;
import org.opends.server.replication.server.ReplServerFakeConfiguration;
import org.opends.server.replication.server.ReplicationServer;
import org.opends.server.replication.server.ReplicationServerDomain;
import org.opends.server.replication.service.ReplicationBroker;
import org.opends.server.types.DirectoryException;
import org.opends.server.types.Entry;
@@ -1736,6 +1736,10 @@
   */
  private void startImportInto(int entryCount) throws Exception
  {
    // The broker can report the replica connected before the replication server can route to it.
    final ReplicationServerDomain rsDomain = replicationServer.getReplicationServerDomain(baseDN);
    waitUntil(() -> rsDomain.getConnectedDSs().containsKey(DS_ID),
        "the replication server did not register the import target");
    exporter.publish(new InitializeTargetMsg(
        baseDN, EXPORTER_ID, DS_ID, EXPORTER_ID, entryCount, INIT_WINDOW));
    final long deadline = System.currentTimeMillis() + 30_000;