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

ludovicp
18.20.2010 4f5da4c9703d5b33bb5aa2a612a62b3898acf629
Fix an issue during replication initialization when servers have different processing speed.
1 files modified
22 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationDomain.java 22 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationDomain.java
@@ -1445,16 +1445,28 @@
    // - to update the task with the server(s) where this test failed
    if (serverToInitialize == RoutableMsg.ALL_SERVERS)
    {
      for (DSInfo dsi : getReplicasList())
        ieContext.startList.add(dsi.getDsId());
      // We manage the list of servers with which a flow control can be enabled
      for (DSInfo dsi : getReplicasList())
      {
        if (dsi.getProtocolVersion()>= ProtocolVersion.REPLICATION_PROTOCOL_V4)
          ieContext.setAckVal(dsi.getDsId(), 0);
      }
    }
    else
    {
      ieContext.startList.add(serverToInitialize);
    // We manage the list of servers with which a flow control can be enabled
    for (DSInfo dsi : getReplicasList())
    {
      if (dsi.getProtocolVersion()>= ProtocolVersion.REPLICATION_PROTOCOL_V4)
        ieContext.setAckVal(dsi.getDsId(), 0);
      // We manage the list of servers with which a flow control can be enabled
      for (DSInfo dsi : getReplicasList())
      {
        if (dsi.getDsId() == serverToInitialize)
         if (dsi.getProtocolVersion()>= ProtocolVersion.REPLICATION_PROTOCOL_V4)
          ieContext.setAckVal(dsi.getDsId(), 0);
      }
    }
    // loop for the case where the exporter is the initiator