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

ADBDEV-4338: Fix gprestore with --resize-cluster to a smaller one #40

Closed
wants to merge 6 commits into from

Commits on Sep 25, 2023

  1. Fix gprestore with --resize-cluster to a smaller one

    When restoring a large cluster to a smaller one with the --resize-cluster
    option, the error "Found incorrect number of backup files" occurs.
    This error occurs when checking a backup, when the pgrestore expects
    an increased set of data in the backup directories for certain segments,
    but in fact this is not the case. Moreover, if you disable the checking,
    another error will appear indicating that not all expected data was restored.
    
    This patch fixes both of these bugs.
    To correct the first error, the patch collects actual data not only from
    the directory for one segment, but also from the remaining directories
    that will be restored on this segment.
    To correct the second error, the patch changes the path to the file
    being restored, replacing not only the file name,
    but also the directory name. This can be done because the path always
    contains the sequence "...SegmentNumber/backups/..."
    
    Tests for restoring with the --resize-cluster option to a smaller cluster
    contained the moveSegmentBackupFiles function, which moved the backup data
    to the required directories. Now you don't need to do this anymore.
    RekGRpth committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    79acfa9 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. Configuration menu
    Copy the full SHA
    a78107c View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

  1. simplify

    RekGRpth committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    324c015 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    78bfa2d View commit details
    Browse the repository at this point in the history
  3. remove double quote

    RekGRpth committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    25d0ece View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2023

  1. comments

    RekGRpth committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    217a3b8 View commit details
    Browse the repository at this point in the history