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

xbstream exit with error code 0 when it failed to create one or more target files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.4.11
    • Fix Version/s: 2.4.12, 2.3.NEXT
    • Component/s: None
    • Labels:
      None

      Description

      The log line is:

      encryption: using gcrypt 1.6.5

      2.4.10 doesn't behavior like this.

      I did some searching in the code base. This PR:

      https://github.com/percona/percona-xtrabackup/pull/485

      caused the change, i.e. now in 2.4.11, libgcrypt is always initialized, 2.4.10 only does the initialization when the "-d"  is specified.

       

      There're two questions about this problem:

      1. logging libgcrypt version info to stderr seems not neccessary, is this expected, or will it got removed?
      2. Is it neccessary to initialize libgcrypt at the very beginning of execution?

       

      This problem affects OpenStack Trove mysql restore implementation. Trove use xbstream to restore data, and relys on the empty stderr to ensure the restore is successful. Do we have any better solution to check whether xbstream restores successfully? I did some simple tests(xbstream restore for a second time, the command exits with "Errorcode: 17 - File exists", however the exit code is 0, which does not follow the common convention.

       

      Thanks!

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            zhaochao1984 Zhao Chao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h

                  Smart Checklist