Perform retries for getting source and target replication markers