Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-4317

Replication: search on cn=changelog with cookie does not retrieve changes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.5.0
    • Component/s: replication
    • Labels:
    • Sprint:
      OpenDJ Sprint 111

      Description

      Found with OpenDJ 5.5.0-SNAPSHOT rev 6bd7105edc6

      1. we setup 2 DJ servers with some data on dc=com
      2. we enable replication for this suffix and initialize this replication
      3. in a test to check that changelog can handle multiple suffixes, we add a new suffix on both servers backends and configure replication for this new suffix.
      4. we modify an entry from one server on this new suffix and check the entry is available on second server and that changelog keeps up.
      5. we add 3 entries on 1st server under dc=com
      6. we check these entries are visible on both servers
      7. we check the changelog:
        ./DJ1/opendj/bin/ldapsearch -h localhost -p 1392 -D "cn=Directory Manager" -w password -b "cn=changelog" "(changenumber>=19)" "*" changeinitiatorsname targetentryuuid changelogcookie
        
        dn: changeNumber=19,cn=changelog
         objectClass: top
         objectClass: changeLogEntry
         changeNumber: 19
         changeTime: 20170921092855Z
         changeType: add
         targetDN: cn=newuser0,ou=people,dc=example,dc=com
         changes:: b2JqZWN0Q2xhc3M6IHRvcApvYmplY3RDbGFzczogaW5ldG9yZ3BlcnNvbgpvYmplY3RDbGFzczogb3JnYW5pemF0aW9uYWxwZXJzb24Kb2JqZWN0Q2xhc3M6IHBlcnNvbgpzbjogTXVsdGlwbGUgYWRkIG11bHRpcGxlIHNlcnZlcnMKY246IG5ld3VzZXIwCnVpZDogTkVXVS0wCnVpZDogQQpjcmVhdGVUaW1lc3RhbXA6IDIwMTcwOTIxMDkyODU1WgpjcmVhdG9yc05hbWU6IGNuPURpcmVjdG9yeSBNYW5hZ2VyLGNuPVJvb3QgRE5zLGNuPWNvbmZpZwplbnRyeVVVSUQ6IDBhZjM5ZDcyLTZlZTQtNGFkOS1hMGQxLWNlODJjNzUxOGE1YQo=
         changeinitiatorsname: cn=Directory Manager,cn=Root DNs,cn=config
         targetentryuuid: 0af39d72-6ee4-4ad9-a0d1-ce82c7518a5a
         changelogcookie: dc=com:0000015ea3c4c4521b6800000010;
        
        dn: changeNumber=20,cn=changelog
         objectClass: top
         objectClass: changeLogEntry
         changeNumber: 20
         changeTime: 20170921092857Z
         changeType: add
         targetDN: cn=newuser1,ou=people,dc=example,dc=com
         changes:: b2JqZWN0Q2xhc3M6IHRvcApvYmplY3RDbGFzczogaW5ldG9yZ3BlcnNvbgpvYmplY3RDbGFzczogb3JnYW5pemF0aW9uYWxwZXJzb24Kb2JqZWN0Q2xhc3M6IHBlcnNvbgpzbjogTXVsdGlwbGUgYWRkIG11bHRpcGxlIHNlcnZlcnMKY246IG5ld3VzZXIxCnVpZDogTkVXVS0xCnVpZDogQQpjcmVhdGVUaW1lc3RhbXA6IDIwMTcwOTIxMDkyODU3WgpjcmVhdG9yc05hbWU6IGNuPURpcmVjdG9yeSBNYW5hZ2VyLGNuPVJvb3QgRE5zLGNuPWNvbmZpZwplbnRyeVVVSUQ6IDljM2ZjMDk1LWE5NTQtNGQ1NC04NjBkLTE2NDczY2M3N2JlZgo=
         changeinitiatorsname: cn=Directory Manager,cn=Root DNs,cn=config
         targetentryuuid: 9c3fc095-a954-4d54-860d-16473cc77bef
         changelogcookie: dc=com:0000015ea3c4c4521b6800000010 0000015ea3c4cc0a5a1c00000002;
        
        dn: changeNumber=21,cn=changelog
         objectClass: top
         objectClass: changeLogEntry
         changeNumber: 21
         changeTime: 20170921092858Z
         changeType: add
         targetDN: cn=newuser2,ou=people,dc=example,dc=com
         changes:: b2JqZWN0Q2xhc3M6IHRvcApvYmplY3RDbGFzczogaW5ldG9yZ3BlcnNvbgpvYmplY3RDbGFzczogb3JnYW5pemF0aW9uYWxwZXJzb24Kb2JqZWN0Q2xhc3M6IHBlcnNvbgpzbjogTXVsdGlwbGUgYWRkIG11bHRpcGxlIHNlcnZlcnMKY246IG5ld3VzZXIyCnVpZDogTkVXVS0yCnVpZDogQQpjcmVhdGVUaW1lc3RhbXA6IDIwMTcwOTIxMDkyODU4WgpjcmVhdG9yc05hbWU6IGNuPURpcmVjdG9yeSBNYW5hZ2VyLGNuPVJvb3QgRE5zLGNuPWNvbmZpZwplbnRyeVVVSUQ6IGVhYTE5MzdkLTYyMmItNDk3NC05MTdhLThiNTFkYmU4MTFjMwo=
         changeinitiatorsname: cn=Directory Manager,cn=Root DNs,cn=config
         targetentryuuid: eaa1937d-622b-4974-917a-8b51dbe811c3
         changelogcookie: dc=com:0000015ea3c4d32d1b6800000011 0000015ea3c4cc0a5a1c00000002;
        
      1. we query the changelog with the cookie:
        ./DJ1/opendj/bin/ldapsearch -h nameserver.example.com -p 1392 -D "cn=Directory Manager" -w password -b "cn=changelog" "(|(changelogcookie=dc=com:0000015ea3c4c4521b6800000010;)(changelogcookie=dc=com:0000015ea3c4c4521b6800000010 0000015ea3c4cc0a5a1c00000002;)(changelogcookie=dc=com:0000015ea3c4d32d1b6800000011 0000015ea3c4cc0a5a1c00000002;))" "*" changeinitiatorsname targetentryuuid changelogcookie
        

      Nothing is returned

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                JnRouvignac Jean-Noël Rouvignac
                Reporter:
                cforel carole forel
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: