Details

    • 10.4.0-1

    Attachments

      Issue Links

        Activity

          wlad Vladislav Vaintroub created issue -
          wlad Vladislav Vaintroub made changes -
          Field Original Value New Value
          Fix Version/s 10.3 [ 22126 ]
          Fix Version/s 10.2 [ 14601 ]
          ralf.gebhardt Ralf Gebhardt made changes -
          Epic Link PT-54 [ 62144 ]
          psergei Sergei Petrunia made changes -
          Component/s Storage Engine - RocksDB [ 13901 ]
          psergei Sergei Petrunia made changes -

          Note from wlad: Alibaba has added TokuDB backup support into xtrabackup: https://github.com/alibaba/AliSQLBackup/commit/26573de135d115b100dbbfb9698274463ade5c8d . So we are not the first.

          psergei Sergei Petrunia added a comment - Note from wlad : Alibaba has added TokuDB backup support into xtrabackup: https://github.com/alibaba/AliSQLBackup/commit/26573de135d115b100dbbfb9698274463ade5c8d . So we are not the first.
          ralf.gebhardt Ralf Gebhardt made changes -
          Assignee Vladislav Vaintroub [ wlad ]
          wlad Vladislav Vaintroub added a comment - - edited

          We'll only support full backup in the first iteration, to incrementals or partials .
          what needs to be done

          During mariabackup --backup

          when mariabackup --backup starts
          check if rocksdb plugin is installed

          *in the "synch" phase, under "flush tables with readlock, lock binlog"

           if (rocksdb_present) {
             if (backup to directory) {
               execute SET GLOBAL rocksdb_create_checkpoint=<backup-dir>/#rocksdb
               // this will create rocksdb subdirectory in the backup dir, we're done
            }
            else  {// backup to  stdio with xbstream
               execute SET GLOBAL rocksdb_create_checkpoint=<temp-dir>/#rocksdb
               copy <temp-dir>/#rocksdb  recursively in xbstream format to stdout
               remove <temp-dir>/#rocksdb 
            }
          }
          

          Do we need a parameter for whether to backup rocksdb or not?
          Do we need a parameter for rocksdb temp-dir, in case backup is streaming?. It is beneficial temp directory is on the same volume, checkpoint will create hardlinks rather than copy.

          During mariabackup copy-back

          • copy <backup-dir>/#rocksdb to the rocksdb-data-dir (in absense of this parameter to <target-dir>/#rocksdb)

          That's it.

          wlad Vladislav Vaintroub added a comment - - edited We'll only support full backup in the first iteration, to incrementals or partials . what needs to be done During mariabackup --backup when mariabackup --backup starts check if rocksdb plugin is installed *in the "synch" phase, under "flush tables with readlock, lock binlog" if (rocksdb_present) { if (backup to directory) { execute SET GLOBAL rocksdb_create_checkpoint=<backup-dir>/#rocksdb // this will create rocksdb subdirectory in the backup dir, we're done } else {// backup to stdio with xbstream execute SET GLOBAL rocksdb_create_checkpoint=<temp-dir>/#rocksdb copy <temp-dir>/#rocksdb recursively in xbstream format to stdout remove <temp-dir>/#rocksdb } } Do we need a parameter for whether to backup rocksdb or not? Do we need a parameter for rocksdb temp-dir, in case backup is streaming?. It is beneficial temp directory is on the same volume, checkpoint will create hardlinks rather than copy. During mariabackup copy-back copy <backup-dir>/#rocksdb to the rocksdb-data-dir (in absense of this parameter to <target-dir>/#rocksdb) That's it.
          wlad Vladislav Vaintroub made changes -
          ratzpo Rasmus Johansson (Inactive) made changes -
          Sprint 10.4.0-1 [ 254 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Rank Ranked lower
          ralf.gebhardt Ralf Gebhardt made changes -
          Fix Version/s 10.2 [ 14601 ]
          wlad Vladislav Vaintroub made changes -
          Fix Version/s 10.2.16 [ 23110 ]
          Fix Version/s 10.3.8 [ 23113 ]
          Fix Version/s 10.2 [ 14601 ]
          Fix Version/s 10.3 [ 22126 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          GeoffMontee Geoff Montee (Inactive) made changes -
          GeoffMontee Geoff Montee (Inactive) made changes -
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 81289 ] MariaDB v4 [ 133294 ]
          danblack Daniel Black made changes -
          mariadb-jira-automation Jira Automation (IT) made changes -
          Zendesk Related Tickets 121814

          People

            wlad Vladislav Vaintroub
            wlad Vladislav Vaintroub
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.