Uploaded image for project: 'Percona Backup for MongoDB'
  1. Percona Backup for MongoDB
  2. PBM-635

Wait for leader's metadata before starting backups

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • None
    • 1.5.0
    • None
    • None

    Description

      If an agent on the secondary node starts backup before the leaders one, 
      waitForStatus(StatusStarting) could try to read metadata before if was set by the leader. So heartbeat in the meta would be 0 and node assumes that backup stuck (stale heartbeat) and exits with an error.

       

      `waitForStatus` should wait for `pbm.WaitBackupStart` duration for the backup meta

      Attachments

        Activity

          People

            andrew.pogrebnoi Andrew Pogrebnoi
            andrew.pogrebnoi Andrew Pogrebnoi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist