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

Make sure that Postgres always get a consistent snapshot #929

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Commits on Apr 19, 2022

  1. Make create_replication_slot return consistent LSN

    This change ensures that the LSN at which the replication slot is
    first consistent is availiable to the caller of the method.
    judahrand committed Apr 19, 2022
    Configuration menu
    Copy the full SHA
    4a8ab42 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8ee5493 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0e91b92 View commit details
    Browse the repository at this point in the history
  4. Ensure that replica is ahead of replication slot

    There is a replication lag between a primary and replica database.
    We get information about what data the replication slot can provide
    from the primary but perform the initial data snapshot on the replica.
    Therefore, we must make sure that the replica has caught up to at
    least the LSN which we are going to begin streaming from the
    replication slot.
    judahrand committed Apr 19, 2022
    Configuration menu
    Copy the full SHA
    b0fb60f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d78347b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d1f7ece View commit details
    Browse the repository at this point in the history
  7. Update tests

    judahrand committed Apr 19, 2022
    Configuration menu
    Copy the full SHA
    f40d130 View commit details
    Browse the repository at this point in the history
  8. Fix call to textwrap.dedent

    judahrand committed Apr 19, 2022
    Configuration menu
    Copy the full SHA
    0d6fb63 View commit details
    Browse the repository at this point in the history
  9. Timeout better

    judahrand committed Apr 19, 2022
    Configuration menu
    Copy the full SHA
    f795486 View commit details
    Browse the repository at this point in the history