Uploaded image for project: 'Percona XtraBackup'
  1. Percona XtraBackup
  2. PXB-2164

Modify xbcloud to return the error when the backup doesn't exist in s3 bucket

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 2.4.x, 8.0.x
    • 2.4.21, 8.0.13
    • None

    Description

      Hi,

      We have some interesting behaviour of 'xbcloud'. When we have valid credentials for AWS and try to get the file from backup which does not exist xbcloud returns the following massage with exit code '0'. Is it correct?

      [root@239a0b699ea0]# xbcloud get s3://operator-testing/XXXXXX xtrabackup_info
      200429 11:51:56 xbcloud: Successfully connected.
      200429 11:51:56 xbcloud: Download completed.
      
      [root@239a0b699ea]# echo $?
      0
      

      STR:
      1) use the following version:
      xbcloud Ver 8.0.11 for Linux (x86_64)

      2) add valid credentials:
      export AWS_SECRET_ACCESS_KEY='****************'
      export AWS_ACCESS_KEY_ID='********************'

      3) run the following command:
      xbcloud get s3://operator-testing/XXXXXX xtrabackup_info

      The debug log is in attachment.

      Attachments

        Activity

          People

            rahul.malik Rahul Malik (Inactive)
            slava.sarzhan Slava Sarzhan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 45 minutes
                45m

                Smart Checklist