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

Replication: changelog not in sync when restarting a server in a topology

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.0
    • Component/s: replication
    • Labels:
    • Flagged:
      Impediment

      Description

      Found with 6.0.0 rev 822a0693cba

      We set up 2 DJs with some data on first DJ, replicate them.
      We install a third server, DJ3.

      We add 1 entry through DJ1, and 1 through DJ2.
      We check data are in sync.

      Then we stop DJ2 and start it again.

      We configure replication between DJ1 and DJ3, and initialize it.
      We add 1 entry on each server and expect to have 5 entries in each changelog.

      Data are in sync on 3 servers but changelogs are not:
      DJ2's changelog does not show the entry added by DJ3:

      /DJ2/opendj/bin/ldapsearch -h nameserver.example.com -p 1393 -D "cn=myself" -w password -b "cn=changelog"  "(changenumber>=1)" "*" changeinitiatorsname targetentryuuid changelogcookie 	
      16:22:03.048 	INFO 	SUCCESS:
      -- rc --
      returned 0, expected 0
      -- stdout --
      dn: changeNumber=1,cn=changelog
      objectclass: top
      objectclass: changeLogEntry
      changeNumber: 1
      changeTime: 20180327141948Z
      changeType: add
      targetDN: cn=usera,ou=people,dc=example,dc=com
      changes:: b2JqZWN0Q2xhc3M6IHRvcApvYmplY3RDbGFzczogaW5ldG9yZ3BlcnNvbgpvYmplY3RDbGFzczogb3JnYW5pemF0aW9uYWxwZXJzb24Kb2JqZWN0Q2xhc3M6IHBlcnNvbgpzbjogdXNlckEKZGVzY3JpcHRpb246IDEKZGVzY3JpcHRpb246IDIKdWlkOiBVU0VSQQpjbjogdXNlcmEKY3JlYXRvcnNOYW1lOiBjbj1teXNlbGYKY3JlYXRlVGltZXN0YW1wOiAyMDE4MDMyNzE0MTk0OFoKZW50cnlVVUlEOiAyNzk0MTFiZi0zZmM4LTQ2Y2YtODhjYS1kN2U2Y2VmZDU2NmQK
      changeinitiatorsname: cn=myself
      targetentryuuid: 279411bf-3fc8-46cf-88ca-d7e6cefd566d
      changelogcookie: dc=com:0000016267d44b22267000000001;
      
      dn: changeNumber=2,cn=changelog
      objectclass: top
      objectclass: changeLogEntry
      changeNumber: 2
      changeTime: 20180327141950Z
      changeType: add
      targetDN: cn=userb,ou=people,dc=example,dc=com
      changes:: b2JqZWN0Q2xhc3M6IHRvcApvYmplY3RDbGFzczogaW5ldG9yZ3BlcnNvbgpvYmplY3RDbGFzczogb3JnYW5pemF0aW9uYWxwZXJzb24Kb2JqZWN0Q2xhc3M6IHBlcnNvbgpzbjogdXNlckIKZGVzY3JpcHRpb246IDEKZGVzY3JpcHRpb246IDIKdWlkOiBVU0VSQgpjbjogdXNlcmIKY3JlYXRvcnNOYW1lOiBjbj1teXNlbGYKY3JlYXRlVGltZXN0YW1wOiAyMDE4MDMyNzE0MTk1MFoKZW50cnlVVUlEOiAwNTBmODUxMS1lNjhmLTQxOTQtYWE3MC1jZTI5NjYxYTc5YzQK
      changeinitiatorsname: cn=myself
      targetentryuuid: 050f8511-e68f-4194-aa70-ce29661a79c4
      changelogcookie: dc=com:0000016267d44b22267000000001 0000016267d4508d5c4200000001;
      
      dn: changeNumber=3,cn=changelog
      objectclass: top
      objectclass: changeLogEntry
      changeNumber: 3
      changeTime: 20180327142047Z
      changeType: add
      targetDN: cn=server1,ou=people,dc=example,dc=com
      changes:: b2JqZWN0Q2xhc3M6IHRvcApvYmplY3RDbGFzczogaW5ldG9yZ3BlcnNvbgpvYmplY3RDbGFzczogb3JnYW5pemF0aW9uYWxwZXJzb24Kb2JqZWN0Q2xhc3M6IHBlcnNvbgpzbjogc2VydmVyMQpkZXNjcmlwdGlvbjogMQpkZXNjcmlwdGlvbjogMgp1aWQ6IFNFUlZFUjEKY246IHNlcnZlcjEKY3JlYXRvcnNOYW1lOiBjbj1teXNlbGYKY3JlYXRlVGltZXN0YW1wOiAyMDE4MDMyNzE0MjA0N1oKZW50cnlVVUlEOiBhZTg3MWIzNS1jYjJmLTRjMjUtYWIxMi0yY2RmNGU5MTNmMjYK
      changeinitiatorsname: cn=myself
      targetentryuuid: ae871b35-cb2f-4c25-ab12-2cdf4e913f26
      changelogcookie: dc=com:0000016267d5305a267000000003 0000016267d4508d5c4200000001;
      
      dn: changeNumber=4,cn=changelog
      objectclass: top
      objectclass: changeLogEntry
      changeNumber: 4
      changeTime: 20180327142049Z
      changeType: add
      targetDN: cn=server2,ou=people,dc=example,dc=com
      changes:: b2JqZWN0Q2xhc3M6IHRvcApvYmplY3RDbGFzczogaW5ldG9yZ3BlcnNvbgpvYmplY3RDbGFzczogb3JnYW5pemF0aW9uYWxwZXJzb24Kb2JqZWN0Q2xhc3M6IHBlcnNvbgpzbjogc2VydmVyMgpkZXNjcmlwdGlvbjogMQpkZXNjcmlwdGlvbjogMgp1aWQ6IFNFUlZFUjIKY246IHNlcnZlcjIKY3JlYXRvcnNOYW1lOiBjbj1teXNlbGYKY3JlYXRlVGltZXN0YW1wOiAyMDE4MDMyNzE0MjA0OVoKZW50cnlVVUlEOiBjYjcyY2I5NS0wY2UwLTQ1NDYtOGI5Ni1kZjA5NjZjYTEzM2UK
      changeinitiatorsname: cn=myself
      targetentryuuid: cb72cb95-0ce0-4546-8b96-df0966ca133e
      changelogcookie: dc=com:0000016267d5305a267000000003 0000016267d537045c4200000004;
      

      reproducible through:
      ./run-pybot.py -v -n -s replication_group2.ExternalChangelogNewServer -t New_RS_Joining_Existing_Topology OpenDJ

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fabiop Fabio Pistolesi
                Reporter:
                cforel carole forel
                QA Assignee:
                Viktor Nawrath
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: