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

Valery Kharseko
2 days ago 058f073a3cdbe9b6d1f6733ed0e51289603b67e9
Wait for the renamed entry before reading the naming conflict monitor (#895)
1 files modified
6 ■■■■ changed files
opendj-server-legacy/src/test/java/org/opends/server/replication/UpdateOperationTest.java 6 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/UpdateOperationTest.java
@@ -729,7 +729,11 @@
    assertNull(getEntry(personWithUUIDEntry.getName(), 10000, false),
        "The DELETE replication message was not replayed");
    assertNull(getEntry(personWithSecondUniqueID.getName(), 10000, false),
    // The second entry was created with the same DN as the first one, so waiting
    // on that DN again returns as soon as the first delete is replayed. Wait on
    // the DN the naming conflict renamed it to instead: the second delete then
    // has resolved its conflict, and counted it, before the monitor is read below.
    assertNull(getEntry(dn2, 10000, false),
        "The DELETE replication message was not replayed");
    /*
     * Check that and added entry is correctly added below it's