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

Late replicas fail silently when they rejoin a topology after the purge delay

    Details

      Description

      It should be possible for users to detect and be alerted when a replica falls behind the purge delay. However, when a replica rejoins a topology and it is already behind the purge delay there are no errors or warnings and dsrepl status indicates that the topology is healthy, even though this is not the case. Sometimes the late replica is able to continue to accept updates, but sometimes it does not. The exact behavior seems sensitive to whether the change number index is enabled or not (possibly because replica DBs are purged more aggressively when it is disabled).

      Steps to reproduce:

      1. create a 2-way topology
      2. disable the change number index
      3. set the purge delay to 30 seconds
      4. perform an addrate at 100/s
      5. observe growth in the changelogs using watch tree -lh changelogdb
      6. stop second server
      7. wait for purge delay to expire and observe rotation of changelog on first server as the addrate continues (i.e. wait until it should no longer be possible for the second server to rejoin)
      8. restart the second server
      9. observe the second server seems to work just fine, including dsrepl status, also no errors in the error or replication logs
      10. observe number of entries in the base entry has significantly diverged on both servers

      I've attached a script which automates steps 1-4 and also enables the non-JSON access loggers in combined mode for easier debugging.

      Acceptance criteria:
      The replica should detect that it cannot be recovered because its ds-sync-state is behind the purge delay of the RS it is connecting to. However, in these are combined DS/RS so the RS appears valid to its local DS, but should fail when connecting to the remote RS.

      At least, something should fail somewhere! It would be nice if this was reported to dsrepl status as well.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fabiop Fabio Pistolesi
                Reporter:
                matthew Matthew Swift
                Dev Assignee:
                Fabio Pistolesi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: