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

gbellato
29.15.2009 023ee175219d75ce5f03a38dbd9fa24921e7172b
Fix for issue 4252 : Replication failures between OpenDS 2.0 and 2.1

Some new PDUs where added in 2.1 and therefore are not processed correctly by 2.0 servers.
This fix makes sure that they are not sent in such case.
2 files modified
12 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 6 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationBroker.java 6 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java
@@ -3075,7 +3075,11 @@
        {
          try
          {
            rsHandler.send(msg);
            if (rsHandler.getProtocolVersion() >=
              ProtocolVersion.REPLICATION_PROTOCOL_V3)
            {
              rsHandler.send(msg);
            }
          } catch (IOException e)
          {
            TRACER.debugCaught(DebugLogLevel.ERROR, e);
opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationBroker.java
@@ -524,7 +524,11 @@
                 startSameGroupIdPoller();
                }
                startRSHeartBeatMonitoring();
                startChangeTimeHeartBeatPublishing();
                if (replServerStartMsg.getVersion()
                    >= ProtocolVersion.REPLICATION_PROTOCOL_V3)
                {
                  startChangeTimeHeartBeatPublishing();
                }
              } else
              {
                // Detected new RS with our group id: log disconnection to