| | |
| | | import org.opends.server.replication.protocol.HeartbeatThread; |
| | | import org.opends.server.replication.protocol.ModifyDNMsg; |
| | | import org.opends.server.replication.protocol.ModifyMsg; |
| | | import org.opends.server.replication.protocol.OperationContext; |
| | | import org.opends.server.replication.protocol.ReplicationMsg; |
| | | import org.opends.server.schema.DirectoryStringSyntax; |
| | | import org.opends.server.types.Attribute; |
| | |
| | | * Add an entry in the database |
| | | * |
| | | */ |
| | | private void addEntry(Entry entry) throws Exception |
| | | private ChangeNumber addEntry(Entry entry) throws Exception |
| | | { |
| | | AddOperationBasis addOp = new AddOperationBasis(connection, |
| | | InternalClientConnection.nextOperationID(), InternalClientConnection |
| | |
| | | |
| | | assertEquals(addOp.getResultCode(), ResultCode.SUCCESS); |
| | | assertNotNull(getEntry(entry.getDN(), 1000, true)); |
| | | return OperationContext.getChangeNumber((Operation) addOp); |
| | | } |
| | | |
| | | /** |
| | |
| | | delEntry(conflictDomain2dn); |
| | | delEntry(conflictDomain3dn); |
| | | |
| | | |
| | | // |
| | | // Check that when a delete is replayed over an entry which has child |
| | | // those child are also deleted |
| | |
| | | domain1uid = getEntryUUID(DN.decode(domain1dn)); |
| | | addEntry(domain2); |
| | | domain2uid = getEntryUUID(DN.decode(domain2dn)); |
| | | addEntry(domain3); |
| | | ChangeNumber addCn = addEntry(domain3); |
| | | gen.adjust(addCn); |
| | | domain3uid = getEntryUUID(DN.decode(domain3dn)); |
| | | |
| | | updateMonitorCount(baseDn, unresolvedMonitorAttr); |
| | |
| | | "The DELETE replication message was not replayed"); |
| | | |
| | | // check that domain2 and domain3 have not been renamed as conflicting |
| | | assertNull(getEntry(conflictDomain2dn, 1000, true), |
| | | "The conflicting entries were not created"); |
| | | assertNull(getEntry(conflictDomain3dn, 1000, true), |
| | | "The conflicting entries were not created"); |
| | | assertNull(getEntry(conflictDomain2dn, 10000, true), |
| | | "The conflicting entries were created"); |
| | | assertNull(getEntry(conflictDomain3dn, 10000, true), |
| | | "The conflicting entries were created"); |
| | | |
| | | |
| | | // |