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 replication excludes specific by region #12592

Merged

Commits on Nov 11, 2016

  1. Move the default replication excludes out of the settings.yml file

    This will allow us to move away from storing this database centric
    setting as related to the server.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1389821
    carbonin committed Nov 11, 2016
    Configuration menu
    Copy the full SHA
    f50c798 View commit details
    Browse the repository at this point in the history
  2. Get the default excludes from the new file rather than Settings.

    This also exposes a new method, `#active_excludes`, to retrieve
    the current excludes being used by pglogical. This will pull
    the list of tables directly from the pglogical tables in the
    database rather than using an intermediate list of settings
    related to the server.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1389821
    carbonin committed Nov 11, 2016
    Configuration menu
    Copy the full SHA
    0b3975a View commit details
    Browse the repository at this point in the history
  3. Add class methods for refreshing the excludes from the queue

    We can't use the instance methods with the queue because this is
    not an ActiveRecord object.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1389821
    carbonin committed Nov 11, 2016
    Configuration menu
    Copy the full SHA
    b3969a7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    991a3d4 View commit details
    Browse the repository at this point in the history
  5. Remove exclude table logic from config activator

    This is no longer needed because the exclude tables are not stored
    in the global Settings anymore.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1389821
    carbonin committed Nov 11, 2016
    Configuration menu
    Copy the full SHA
    d6103a8 View commit details
    Browse the repository at this point in the history
  6. Set the currently configured excludes to the active ones for new inst…

    …ances
    
    This means that `MiqPglogical.new.refresh_excludes` will not change
    the excluded tables back to the default, but will leave them as
    they currently are.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1389821
    carbonin committed Nov 11, 2016
    Configuration menu
    Copy the full SHA
    9301b25 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2016

  1. Add a migration to remove settings_changes rows for the excludes

    Because we have removed the excludes from the settings.yml file
    we should remove the changes made in the database.
    
    This will leave current installations of pglogical in the same state
    they were in (we will read the excludes from the pglogical tables),
    but will reset new installations created when moving from rubyrep
    to pglogical.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1389821
    carbonin committed Nov 14, 2016
    Configuration menu
    Copy the full SHA
    0e79109 View commit details
    Browse the repository at this point in the history