1. 03 Nov, 2018 1 commit
    • Stan Hu's avatar
      Disable replication lag check for Aurora PostgreSQL databases · fd7f95ee
      Stan Hu authored
      Replication slots are not supported in Aurora. Attempting to check
      the lag results in the message:
      
      ```
      ActiveRecord::StatementInvalid: PG::FeatureNotSupported: ERROR:
      Replication slots are currently not supported in Aurora : SELECT
      pg_xlog_location_diff(pg_current_xlog_insert_location(),
      restart_lsn)::...
      ```
      
      To avoid breaking support for background migrations in Aurora, we just
      disable the check if we encounter this error.
      
      This change also now checks whether there are any replication slots
      present in the primary before checking the replication lag.
      
      Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52176
      fd7f95ee
  2. 02 Nov, 2018 25 commits
  3. 01 Nov, 2018 14 commits