Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create missing PRRLs after primary activation #44009

Commits on Jul 5, 2019

  1. Create missing PRRLs after primary activation

    Today peer recovery retention leases (PRRLs) are created when starting a
    replication group from scratch and during peer recovery. However, if the
    replication group was migrated from nodes running a version which does not
    create PRRLs (e.g. 7.3 and earlier) then it's possible that the primary was
    relocated or promoted without first establishing all the expected leases.
    
    It's not possible to establish these leases before or during primary
    activation, so we must create them as soon as possible afterwards. This gives
    weaker guarantees about history retention, since there's a possibility that
    history will be discarded before it can be used. In practice such situations
    are expected to occur only rarely.
    
    This commit adds the machinery to create missing leases after primary
    activation, and strengthens the assertions about the existence of such leases
    in order to ensure that once all the leases do exist we never again enter a
    state where there's a missing lease.
    
    Relates elastic#41536
    DaveCTurner committed Jul 5, 2019
    Configuration menu
    Copy the full SHA
    d233bb0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f2a197 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2019

  1. Merge branch 'peer-recovery-retention-leases-7.x' into 2019-07-05-prr…

    …ls-bwc-create-after-primary-activation
    DaveCTurner committed Jul 8, 2019
    Configuration menu
    Copy the full SHA
    65b785d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aa7ac54 View commit details
    Browse the repository at this point in the history