From aa88b45c6bdedc409f39cb0cef4aa64211d99aeb Mon Sep 17 00:00:00 2001 From: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Mon, 9 Nov 2026 11:20:44 -0600 Subject: [PATCH 1/5] Content: PXB-3928 Document minimum XtraBackup version for Vector Search Versions: - XtraBackup 9.7.2-3, Percona Server 9.7.4-4. Source: Jira description. Fix Version not verified (ticket not readable). Placeholders: - 9.7.2-3 backs up Vector Search data fully or only fails safely - Exact error message and triggering redo log record type (comparison page and FAQ) - Failure on first record or at end of backup - Result when a Vector Search table is created mid-backup Conflicts: - Intro says 9.7.x backs up any 9.7.xx server. Pointer added. - Feature name "Vector Search data type" needs SME confirmation. Added context: - Exit code 1 inferred from xtrabackup-exit-codes.md. - Fix step: upgrade to 9.7.2-3 or later and back up again. - FAQ entry, exit code example, and About page pointer link to the comparison page section. - 9.7.2-3 release notes not created, per user request. --- docs/about-xtrabackup.md | 2 ++ docs/faq.md | 9 +++++++ docs/server-backup-version-comparison.md | 30 ++++++++++++++++++++++++ docs/xtrabackup-exit-codes.md | 2 ++ 4 files changed, 43 insertions(+) diff --git a/docs/about-xtrabackup.md b/docs/about-xtrabackup.md index d0a4484fa..2acc678d9 100644 --- a/docs/about-xtrabackup.md +++ b/docs/about-xtrabackup.md @@ -30,6 +30,8 @@ Percona’s enterprise-grade commercial [MySQL Support :octicons-link-external-1 Percona XtraBackup can back up data from InnoDB, XtraDB, MyISAM, and MyRocks tables on MySQL {{vers}} servers as well as Percona Server for MySQL {{vers}}. +To back up Percona Server for MySQL 9.7.4-4 databases that use Vector Search, use Percona XtraBackup 9.7.2-3 or later. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). + Percona XtraBackup supports the MyRocks storage engine. Percona XtraBackup copies all MyRocks files on every backup. Incremental backups for MyRocks are not truly incremental: each one copies all MyRocks files, whether or not those files were already in a full or earlier incremental backup. ## Where to go next diff --git a/docs/faq.md b/docs/faq.md index cf32eb7f1..c95eba545 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -60,3 +60,12 @@ Percona XtraBackup will not be able to take a consistent backup. Retry the backu * To block all DDL operations, use the `--lock-ddl` option that issues `LOCK TABLES FOR BACKUP`. +## Backup fails on a Percona Server for MySQL 9.7.4-4 database that uses Vector Search + +Percona XtraBackup versions earlier than 9.7.2-3 cannot back up Vector Search data. If Percona XtraBackup reads the new Vector Search record type in the redo log, the backup fails with exit code 1. In this case, the following error is printed: + +```{.text .no-copy} +[Insert exact error message] +``` + +To fix the error, upgrade Percona XtraBackup to 9.7.2-3 or later and take the backup again. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). diff --git a/docs/server-backup-version-comparison.md b/docs/server-backup-version-comparison.md index 5288198b7..31985c6c3 100644 --- a/docs/server-backup-version-comparison.md +++ b/docs/server-backup-version-comparison.md @@ -5,6 +5,8 @@ record, can cause older versions of Percona XtraBackup to fail. To ensure that you can back up and restore your data, use a Percona XtraBackup version that is equal to your source server major version. This means if you use Percona XtraBackup {{vers}}.x, you can safely back up the source server from {{vers}}.x to {{vers}}.xx. +Some server features require a minimum Percona XtraBackup patch version. See [Minimum Percona XtraBackup version for server features](#minimum-percona-xtrabackup-version-for-server-features). + !!! admonition "See also" [How XtraBackup works](how-xtrabackup-works.md) @@ -42,3 +44,31 @@ When you override the parameter, the following events can happen: * Creates a corrupted backup * Backup successful + +## Minimum Percona XtraBackup version for server features + +Some server features write new redo log record types. A Percona XtraBackup version that does not know the record type cannot back up a database that uses the feature. + +| Server version | Feature | Minimum Percona XtraBackup version | +| -------------- | ------- | ---------------------------------- | +| Percona Server for MySQL 9.7.4-4 | Vector Search data type | 9.7.2-3 | + +### Vector Search data type + +Starting with Percona XtraBackup 9.7.2-3, Percona XtraBackup handles the Vector Search data type. Percona XtraBackup 9.7.2-3 or later is required to back up Percona Server for MySQL 9.7.4-4 databases that use Vector Search. [Insert whether Percona XtraBackup 9.7.2-3 backs up and prepares Vector Search data fully, or only fails safely] + +Earlier Percona XtraBackup 9.7 versions cannot back up Vector Search data: + +* If the database does not use Vector Search, the backup succeeds. + +* If Percona XtraBackup reads the new record type in the redo log, the backup fails with exit code 1 and the following error message: + + ```text + [Insert exact error message and the redo log record type that triggers the error] + ``` + + [Insert whether the backup fails on the first Vector Search redo log record or at the end of the backup] + +* If a user creates a table with a Vector Search column while an earlier version runs a backup, [Insert the result]. + +To fix the failed backup, upgrade Percona XtraBackup to 9.7.2-3 or later and take the backup again. diff --git a/docs/xtrabackup-exit-codes.md b/docs/xtrabackup-exit-codes.md index b65567005..54328e8fe 100644 --- a/docs/xtrabackup-exit-codes.md +++ b/docs/xtrabackup-exit-codes.md @@ -2,4 +2,6 @@ The *xtrabackup* binary exits with the traditional success value of 0 after a backup when no error occurs. If an error occurs during the backup, the exit value is 1. +For example, Percona XtraBackup versions earlier than 9.7.2-3 exit with 1 when the backup reads a Vector Search redo log record from Percona Server for MySQL 9.7.4-4. For details, see [Backup fails on a Percona Server for MySQL 9.7.4-4 database that uses Vector Search](faq.md#backup-fails-on-a-percona-server-for-mysql-974-4-database-that-uses-vector-search). + In certain cases, the exit value can be something other than 0 or 1, due to the command-line option code included from the *MySQL* libraries. An unknown command-line option, for example, will cause an exit code of 255. From 4f89582e69ef4ed100da8461f0f801ed3a26733b Mon Sep 17 00:00:00 2001 From: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Mon, 9 Nov 2026 11:30:33 -0600 Subject: [PATCH 2/5] Style: PXB-3928 Apply style guide to Vector Search version text Style check: style_flagger.py run in ~/style-tools/.venv. Comparison 10/7/3, FAQ 5/3/2, exit codes 3/3/0, About 2/2/0 (sentences/clean/flagged). Skipped style fixes: - L flag, comparison L72 (22 words): sentence ends in placeholder [Insert the result]. Fix after the SME fills it. - I flag, "upgrade ... and take the backup again" (comparison, FAQ): sequential actions. Splitting restructures into steps. Kept. - H flag, "following error message": -ing adjective before a noun is allowed. Kept. Placeholders: - All five Pass 1 placeholders left untouched --- docs/about-xtrabackup.md | 2 +- docs/faq.md | 4 ++-- docs/server-backup-version-comparison.md | 12 ++++++------ docs/xtrabackup-exit-codes.md | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/about-xtrabackup.md b/docs/about-xtrabackup.md index 2acc678d9..13cab323c 100644 --- a/docs/about-xtrabackup.md +++ b/docs/about-xtrabackup.md @@ -30,7 +30,7 @@ Percona’s enterprise-grade commercial [MySQL Support :octicons-link-external-1 Percona XtraBackup can back up data from InnoDB, XtraDB, MyISAM, and MyRocks tables on MySQL {{vers}} servers as well as Percona Server for MySQL {{vers}}. -To back up Percona Server for MySQL 9.7.4-4 databases that use Vector Search, use Percona XtraBackup 9.7.2-3 or later. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). +To create a backup of Percona Server for MySQL 9.7.4-4 databases with Vector Search, use Percona XtraBackup 9.7.2-3 or higher. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). Percona XtraBackup supports the MyRocks storage engine. Percona XtraBackup copies all MyRocks files on every backup. Incremental backups for MyRocks are not truly incremental: each one copies all MyRocks files, whether or not those files were already in a full or earlier incremental backup. diff --git a/docs/faq.md b/docs/faq.md index c95eba545..4bf7177bd 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -62,10 +62,10 @@ Percona XtraBackup will not be able to take a consistent backup. Retry the backu ## Backup fails on a Percona Server for MySQL 9.7.4-4 database that uses Vector Search -Percona XtraBackup versions earlier than 9.7.2-3 cannot back up Vector Search data. If Percona XtraBackup reads the new Vector Search record type in the redo log, the backup fails with exit code 1. In this case, the following error is printed: +Percona XtraBackup versions earlier than 9.7.2-3 cannot create a backup of Vector Search data. If Percona XtraBackup reads the Vector Search record type in the redo log, the backup fails with exit code `1`. In this case, Percona XtraBackup prints the following error message: ```{.text .no-copy} [Insert exact error message] ``` -To fix the error, upgrade Percona XtraBackup to 9.7.2-3 or later and take the backup again. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). +To fix the error, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). diff --git a/docs/server-backup-version-comparison.md b/docs/server-backup-version-comparison.md index 31985c6c3..1d42527a9 100644 --- a/docs/server-backup-version-comparison.md +++ b/docs/server-backup-version-comparison.md @@ -47,7 +47,7 @@ When you override the parameter, the following events can happen: ## Minimum Percona XtraBackup version for server features -Some server features write new redo log record types. A Percona XtraBackup version that does not know the record type cannot back up a database that uses the feature. +Some server features add redo log record types. A Percona XtraBackup version without support for the record type cannot create a backup of a database with the feature. | Server version | Feature | Minimum Percona XtraBackup version | | -------------- | ------- | ---------------------------------- | @@ -55,13 +55,13 @@ Some server features write new redo log record types. A Percona XtraBackup versi ### Vector Search data type -Starting with Percona XtraBackup 9.7.2-3, Percona XtraBackup handles the Vector Search data type. Percona XtraBackup 9.7.2-3 or later is required to back up Percona Server for MySQL 9.7.4-4 databases that use Vector Search. [Insert whether Percona XtraBackup 9.7.2-3 backs up and prepares Vector Search data fully, or only fails safely] +Starting with Percona XtraBackup 9.7.2-3, Percona XtraBackup handles the Vector Search data type. A backup of a Percona Server for MySQL 9.7.4-4 database with Vector Search requires Percona XtraBackup 9.7.2-3 or higher. [Insert whether Percona XtraBackup 9.7.2-3 backs up and prepares Vector Search data fully, or only fails safely] -Earlier Percona XtraBackup 9.7 versions cannot back up Vector Search data: +Earlier Percona XtraBackup 9.7 versions cannot create a backup of Vector Search data: * If the database does not use Vector Search, the backup succeeds. -* If Percona XtraBackup reads the new record type in the redo log, the backup fails with exit code 1 and the following error message: +* If Percona XtraBackup reads a Vector Search redo log record, the backup fails with exit code `1`. Percona XtraBackup prints the following error message: ```text [Insert exact error message and the redo log record type that triggers the error] @@ -69,6 +69,6 @@ Earlier Percona XtraBackup 9.7 versions cannot back up Vector Search data: [Insert whether the backup fails on the first Vector Search redo log record or at the end of the backup] -* If a user creates a table with a Vector Search column while an earlier version runs a backup, [Insert the result]. +* If a user creates a table with a Vector Search column during a backup by an earlier version, [Insert the result]. -To fix the failed backup, upgrade Percona XtraBackup to 9.7.2-3 or later and take the backup again. +To fix the failed backup, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again. diff --git a/docs/xtrabackup-exit-codes.md b/docs/xtrabackup-exit-codes.md index 54328e8fe..a41d988d1 100644 --- a/docs/xtrabackup-exit-codes.md +++ b/docs/xtrabackup-exit-codes.md @@ -2,6 +2,6 @@ The *xtrabackup* binary exits with the traditional success value of 0 after a backup when no error occurs. If an error occurs during the backup, the exit value is 1. -For example, Percona XtraBackup versions earlier than 9.7.2-3 exit with 1 when the backup reads a Vector Search redo log record from Percona Server for MySQL 9.7.4-4. For details, see [Backup fails on a Percona Server for MySQL 9.7.4-4 database that uses Vector Search](faq.md#backup-fails-on-a-percona-server-for-mysql-974-4-database-that-uses-vector-search). +For example, Percona XtraBackup versions earlier than 9.7.2-3 exit with `1` on a Vector Search redo log record. Percona Server for MySQL 9.7.4-4 writes this record type. For details, see [Backup fails on a Percona Server for MySQL 9.7.4-4 database that uses Vector Search](faq.md#backup-fails-on-a-percona-server-for-mysql-974-4-database-that-uses-vector-search). In certain cases, the exit value can be something other than 0 or 1, due to the command-line option code included from the *MySQL* libraries. An unknown command-line option, for example, will cause an exit code of 255. From 7c5696ef059238eadcabbea3052ab82261434cfe Mon Sep 17 00:00:00 2001 From: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Mon, 9 Nov 2026 17:59:21 -0600 Subject: [PATCH 3/5] Revision: PXB-3928 Link version comparison page from index Limitations Added context: - index.md Limitations: one sentence on the Vector Search version rule (XtraBackup earlier than 9.7.2-3, Percona Server 9.7.4-4). - index.md See also: link to server-backup-version-comparison.md. Versions: - 9.7.2-3 and 9.7.4-4, same source as the Content: commit. Style check: index.md 1/1/0 (sentences/clean/flagged). --- docs/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/index.md b/docs/index.md index fe67ef983..cefc1d302 100644 --- a/docs/index.md +++ b/docs/index.md @@ -75,7 +75,11 @@ Incremental backups for MyRocks are not optimized. Each time you run an incremen InnoDB tables are locked while copying non-InnoDB data. +Percona XtraBackup versions earlier than 9.7.2-3 cannot create a backup of Percona Server for MySQL 9.7.4-4 databases with Vector Search. + !!! admonition "See also" [Dependency compatibility and limitations](update-curl-utility.md) + + [Server version and backup version comparison](server-backup-version-comparison.md) From de4eb67d06adcdadeb09fdf63df6409015aa8826 Mon Sep 17 00:00:00 2001 From: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Tue, 10 Nov 2026 09:09:28 -0600 Subject: [PATCH 4/5] Revision: PXB-3928 Fill Vector Search failure details from SME answers Files: - docs/server-backup-version-comparison.md (target) - docs/faq.md (target) - docs/xtrabackup-exit-codes.md (target) Versions: - None added. 9.7.2-3 fix confirmed by the user (PR pending). Added context: - Exact backup error and record type 62 (MLOG_TABLE_DYNAMIC_META). - Backup fails on the first Vector Search redo record. - Prepare crash (signal 11) and import ERROR 1808, with two FAQ entries. - Exit code changed from 1 to 2 (SME tests). Exit codes page updated to match. - Mid-backup item: "vector index" replaces "Vector Search column". Style check: comparison 20/16/4, FAQ 23/14/9, exit codes 4/4/0 (sentences/clean/flagged). Skipped style fixes: - G, H, I flags: allowed phrase, allowed adjective, single idea. - T, N, F flags inside verbatim log output. - T on "was still open when the backup ended": earlier event. Conflicts: - None open. Exit codes page lines 3 and 7 say an error returns 1. They are unedited and now have one documented exception. Placeholders: - None. Co-Authored-By: Claude Sonnet 5.5 --- docs/faq.md | 35 +++++++++++++++++++++-- docs/server-backup-version-comparison.md | 36 +++++++++++++++++++----- docs/xtrabackup-exit-codes.md | 2 +- 3 files changed, 63 insertions(+), 10 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index 4bf7177bd..792ab58e1 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -62,10 +62,41 @@ Percona XtraBackup will not be able to take a consistent backup. Retry the backu ## Backup fails on a Percona Server for MySQL 9.7.4-4 database that uses Vector Search -Percona XtraBackup versions earlier than 9.7.2-3 cannot create a backup of Vector Search data. If Percona XtraBackup reads the Vector Search record type in the redo log, the backup fails with exit code `1`. In this case, Percona XtraBackup prints the following error message: +Percona XtraBackup versions earlier than 9.7.2-3 cannot create a backup of Vector Search data. If Percona XtraBackup reads the Vector Search record type in the redo log, the backup fails with exit code `2`. In this case, Percona XtraBackup prints the following error message: ```{.text .no-copy} -[Insert exact error message] +[ERROR] [MY-012519] [InnoDB] ############### CORRUPT LOG RECORD FOUND ############### +[Note] [MY-012520] [InnoDB] Log record type 62, page 4294967295:4294967295. Log parsing proceeded successfully up to 19604413. +[ERROR] [MY-014008] [InnoDB] [FATAL] Index log version 251 did not match. Max index version is 1. Recovery can't continue. ``` To fix the error, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). + +## Prepare fails on a Percona Server for MySQL 9.7.4-4 database that uses Vector Search + +Percona XtraBackup versions earlier than 9.7.2-3 can create a backup of a table with a vector index. The `--prepare` step can then fail with exit code `2` in two cases: + +* A transaction that changed the table was still open when the backup ended. + +* You run `--prepare --export`. + +In this case, Percona XtraBackup prints the following output: + +```{.text .no-copy} +[Note] [MY-011825] [Xtrabackup] Time taken to build dictionary: ... +mysqld got signal 11 ; + #1 ... dict_table_read_dynamic_metadata(...) + #2 ... dict_table_load_dynamic_metadata(dict_table_t*) +``` + +To fix the error, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). + +## Import of an exported tablespace fails with a schema mismatch + +Percona XtraBackup versions earlier than 9.7.2-3 write a wrong column type to the `.cfg` file for a `VECTOR` column. The `ALTER TABLE ... IMPORT TABLESPACE` statement then prints the following error: + +```{.text .no-copy} +ERROR 1808 (HY000): Schema mismatch (Column v main type mismatch.) +``` + +To fix the error, upgrade Percona XtraBackup to 9.7.2-3 or higher. Then run `--prepare --export` again. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). diff --git a/docs/server-backup-version-comparison.md b/docs/server-backup-version-comparison.md index 1d42527a9..935fc51ca 100644 --- a/docs/server-backup-version-comparison.md +++ b/docs/server-backup-version-comparison.md @@ -55,20 +55,42 @@ Some server features add redo log record types. A Percona XtraBackup version wit ### Vector Search data type -Starting with Percona XtraBackup 9.7.2-3, Percona XtraBackup handles the Vector Search data type. A backup of a Percona Server for MySQL 9.7.4-4 database with Vector Search requires Percona XtraBackup 9.7.2-3 or higher. [Insert whether Percona XtraBackup 9.7.2-3 backs up and prepares Vector Search data fully, or only fails safely] +Starting with Percona XtraBackup 9.7.2-3, Percona XtraBackup handles the Vector Search data type. A backup of a Percona Server for MySQL 9.7.4-4 database with Vector Search requires Percona XtraBackup 9.7.2-3 or higher. Percona XtraBackup 9.7.2-3 fully supports the backup, prepare, and restore steps for Vector Search data. Support includes `--prepare --export` and the import of exported tablespaces. Earlier Percona XtraBackup 9.7 versions cannot create a backup of Vector Search data: -* If the database does not use Vector Search, the backup succeeds. +* If the database has no table with a vector index, the backup and prepare succeed. The same result applies to tables with a `VECTOR` column and no vector index. The import of an exported tablespace is an exception. -* If Percona XtraBackup reads a Vector Search redo log record, the backup fails with exit code `1`. Percona XtraBackup prints the following error message: +* If Percona XtraBackup reads a Vector Search redo log record, the backup fails with exit code `2`. Percona XtraBackup prints the following error message: ```text - [Insert exact error message and the redo log record type that triggers the error] + [ERROR] [MY-012519] [InnoDB] ############### CORRUPT LOG RECORD FOUND ############### + [Note] [MY-012520] [InnoDB] Log record type 62, page 4294967295:4294967295. Log parsing proceeded successfully up to 19604413. + [ERROR] [MY-014008] [InnoDB] [FATAL] Index log version 251 did not match. Max index version is 1. Recovery can't continue. ``` - [Insert whether the backup fails on the first Vector Search redo log record or at the end of the backup] + The record type is `MLOG_TABLE_DYNAMIC_META` (log record type 62). The LSN and the index log version number in the message vary. -* If a user creates a table with a Vector Search column during a backup by an earlier version, [Insert the result]. + The backup fails on the first Vector Search redo log record that Percona XtraBackup parses. The backup does not wait for the end. -To fix the failed backup, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again. +* A user can create a table with a vector index during a backup by an earlier version. The result depends on the table data: + + * If the user inserts no rows, the backup, prepare, and restore succeed. + + * If the user inserts rows, the backup fails with the error in the previous item. + +* If the backup succeeds, `--prepare` can still fail on a table with a vector index. The failure occurs in two cases: + + * A transaction that changed the table, such as a `DELETE`, was still open when the backup ended. The `--prepare` step rolls back this transaction. + + * You run `--prepare --export`. + + In both cases, `xtrabackup --prepare` crashes with signal 11 and exit code `2`. The stack trace includes `dict_table_read_dynamic_metadata`. The saved table metadata holds a value that the earlier version cannot read. + +* If you run `--prepare --export` on a table with a `VECTOR` column, the export succeeds. The earlier version writes a wrong column type to the `.cfg` file. The `ALTER TABLE ... IMPORT TABLESPACE` statement then fails with the following error: + + ```text + ERROR 1808 (HY000): Schema mismatch (Column v main type mismatch.) + ``` + +To fix these failures, upgrade Percona XtraBackup to 9.7.2-3 or higher. Then take the backup again. For the import failure, run `--prepare --export` again. diff --git a/docs/xtrabackup-exit-codes.md b/docs/xtrabackup-exit-codes.md index a41d988d1..ff7e9220e 100644 --- a/docs/xtrabackup-exit-codes.md +++ b/docs/xtrabackup-exit-codes.md @@ -2,6 +2,6 @@ The *xtrabackup* binary exits with the traditional success value of 0 after a backup when no error occurs. If an error occurs during the backup, the exit value is 1. -For example, Percona XtraBackup versions earlier than 9.7.2-3 exit with `1` on a Vector Search redo log record. Percona Server for MySQL 9.7.4-4 writes this record type. For details, see [Backup fails on a Percona Server for MySQL 9.7.4-4 database that uses Vector Search](faq.md#backup-fails-on-a-percona-server-for-mysql-974-4-database-that-uses-vector-search). +An exception applies to Percona XtraBackup versions earlier than 9.7.2-3. These versions exit with `2` on a Vector Search redo log record. Percona Server for MySQL 9.7.4-4 writes this record type. For details, see [Backup fails on a Percona Server for MySQL 9.7.4-4 database that uses Vector Search](faq.md#backup-fails-on-a-percona-server-for-mysql-974-4-database-that-uses-vector-search). In certain cases, the exit value can be something other than 0 or 1, due to the command-line option code included from the *MySQL* libraries. An unknown command-line option, for example, will cause an exit code of 255. From 57261b461437408de9d165a2926148595f1e4456 Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Wed, 25 Nov 2026 18:25:26 +0100 Subject: [PATCH 5/5] Fix docs after the review --- docs/about-xtrabackup.md | 2 +- docs/faq.md | 41 ++++------------------ docs/index.md | 2 +- docs/server-backup-version-comparison.md | 44 +++++------------------- docs/xtrabackup-exit-codes.md | 6 ++-- 5 files changed, 19 insertions(+), 76 deletions(-) diff --git a/docs/about-xtrabackup.md b/docs/about-xtrabackup.md index 13cab323c..9aaec5ae8 100644 --- a/docs/about-xtrabackup.md +++ b/docs/about-xtrabackup.md @@ -30,7 +30,7 @@ Percona’s enterprise-grade commercial [MySQL Support :octicons-link-external-1 Percona XtraBackup can back up data from InnoDB, XtraDB, MyISAM, and MyRocks tables on MySQL {{vers}} servers as well as Percona Server for MySQL {{vers}}. -To create a backup of Percona Server for MySQL 9.7.4-4 databases with Vector Search, use Percona XtraBackup 9.7.2-3 or higher. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). +To create a backup of Percona Server for MySQL 9.7.4-4 databases with vector indexes, use Percona XtraBackup 9.7.2-3 or higher. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). Percona XtraBackup supports the MyRocks storage engine. Percona XtraBackup copies all MyRocks files on every backup. Incremental backups for MyRocks are not truly incremental: each one copies all MyRocks files, whether or not those files were already in a full or earlier incremental backup. diff --git a/docs/faq.md b/docs/faq.md index 792ab58e1..9e74c403c 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -60,43 +60,14 @@ Percona XtraBackup will not be able to take a consistent backup. Retry the backu * To block all DDL operations, use the `--lock-ddl` option that issues `LOCK TABLES FOR BACKUP`. -## Backup fails on a Percona Server for MySQL 9.7.4-4 database that uses Vector Search +## Are backups of a database with vector indexes taken with Percona XtraBackup 9.7.2-2 valid? -Percona XtraBackup versions earlier than 9.7.2-3 cannot create a backup of Vector Search data. If Percona XtraBackup reads the Vector Search record type in the redo log, the backup fails with exit code `2`. In this case, Percona XtraBackup prints the following error message: +No. Percona Server for MySQL 9.7.4-4 adds the vector (HNSW) index. If the server has vector indexes, Percona XtraBackup 9.7.2-2 creates invalid backups. The backup and prepare steps can still succeed, so do not trust these backups. -```{.text .no-copy} -[ERROR] [MY-012519] [InnoDB] ############### CORRUPT LOG RECORD FOUND ############### -[Note] [MY-012520] [InnoDB] Log record type 62, page 4294967295:4294967295. Log parsing proceeded successfully up to 19604413. -[ERROR] [MY-014008] [InnoDB] [FATAL] Index log version 251 did not match. Max index version is 1. Recovery can't continue. -``` - -To fix the error, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). - -## Prepare fails on a Percona Server for MySQL 9.7.4-4 database that uses Vector Search +To get a valid backup, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). -Percona XtraBackup versions earlier than 9.7.2-3 can create a backup of a table with a vector index. The `--prepare` step can then fail with exit code `2` in two cases: +## Can I import an exported tablespace of a table with a vector index? -* A transaction that changed the table was still open when the backup ended. - -* You run `--prepare --export`. - -In this case, Percona XtraBackup prints the following output: - -```{.text .no-copy} -[Note] [MY-011825] [Xtrabackup] Time taken to build dictionary: ... -mysqld got signal 11 ; - #1 ... dict_table_read_dynamic_metadata(...) - #2 ... dict_table_load_dynamic_metadata(dict_table_t*) -``` - -To fix the error, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). - -## Import of an exported tablespace fails with a schema mismatch - -Percona XtraBackup versions earlier than 9.7.2-3 write a wrong column type to the `.cfg` file for a `VECTOR` column. The `ALTER TABLE ... IMPORT TABLESPACE` statement then prints the following error: - -```{.text .no-copy} -ERROR 1808 (HY000): Schema mismatch (Column v main type mismatch.) -``` +No. With Percona XtraBackup 9.7.2-3 or higher, `--prepare --export` succeeds and creates the `.cfg` file. You cannot import the tablespace because vector index support is at the minimum viable product (MVP) stage. -To fix the error, upgrade Percona XtraBackup to 9.7.2-3 or higher. Then run `--prepare --export` again. For details, see [Minimum Percona XtraBackup version for server features](server-backup-version-comparison.md#minimum-percona-xtrabackup-version-for-server-features). +For a table with `VECTOR` columns and no vector index, `--prepare --export` and the import of the exported tablespace work starting with Percona XtraBackup 9.7.2-3. diff --git a/docs/index.md b/docs/index.md index cefc1d302..e455f21c2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -75,7 +75,7 @@ Incremental backups for MyRocks are not optimized. Each time you run an incremen InnoDB tables are locked while copying non-InnoDB data. -Percona XtraBackup versions earlier than 9.7.2-3 cannot create a backup of Percona Server for MySQL 9.7.4-4 databases with Vector Search. +Percona XtraBackup 9.7.2-2 creates invalid backups of Percona Server for MySQL 9.7.4-4 databases with vector indexes. Use Percona XtraBackup 9.7.2-3 or higher. !!! admonition "See also" diff --git a/docs/server-backup-version-comparison.md b/docs/server-backup-version-comparison.md index 935fc51ca..aee220132 100644 --- a/docs/server-backup-version-comparison.md +++ b/docs/server-backup-version-comparison.md @@ -51,46 +51,20 @@ Some server features add redo log record types. A Percona XtraBackup version wit | Server version | Feature | Minimum Percona XtraBackup version | | -------------- | ------- | ---------------------------------- | -| Percona Server for MySQL 9.7.4-4 | Vector Search data type | 9.7.2-3 | +| Percona Server for MySQL 9.7.4-4 | Vector index | 9.7.2-3 | -### Vector Search data type +### Vector index -Starting with Percona XtraBackup 9.7.2-3, Percona XtraBackup handles the Vector Search data type. A backup of a Percona Server for MySQL 9.7.4-4 database with Vector Search requires Percona XtraBackup 9.7.2-3 or higher. Percona XtraBackup 9.7.2-3 fully supports the backup, prepare, and restore steps for Vector Search data. Support includes `--prepare --export` and the import of exported tablespaces. +Percona Server for MySQL 9.7.4-4 adds the vector (HNSW) index. Starting with Percona XtraBackup 9.7.2-3, Percona XtraBackup handles vector indexes. To back up a Percona Server for MySQL 9.7.4-4 database with vector indexes, use Percona XtraBackup 9.7.2-3 or higher. -Earlier Percona XtraBackup 9.7 versions cannot create a backup of Vector Search data: +The `VECTOR` data type is available in all Percona Server for MySQL 9.7 releases. Percona XtraBackup backs up and restores tables with `VECTOR` columns and no vector index. -* If the database has no table with a vector index, the backup and prepare succeed. The same result applies to tables with a `VECTOR` column and no vector index. The import of an exported tablespace is an exception. +The export and import of tablespaces depend on the table: -* If Percona XtraBackup reads a Vector Search redo log record, the backup fails with exit code `2`. Percona XtraBackup prints the following error message: +* For a table with `VECTOR` columns and no vector index, `--prepare --export` and the import of the exported tablespace work starting with Percona XtraBackup 9.7.2-3. - ```text - [ERROR] [MY-012519] [InnoDB] ############### CORRUPT LOG RECORD FOUND ############### - [Note] [MY-012520] [InnoDB] Log record type 62, page 4294967295:4294967295. Log parsing proceeded successfully up to 19604413. - [ERROR] [MY-014008] [InnoDB] [FATAL] Index log version 251 did not match. Max index version is 1. Recovery can't continue. - ``` +* For a table with a vector index, `--prepare --export` succeeds and creates the `.cfg` file. You cannot import the tablespace because vector index support is at the minimum viable product (MVP) stage. - The record type is `MLOG_TABLE_DYNAMIC_META` (log record type 62). The LSN and the index log version number in the message vary. +!!! warning - The backup fails on the first Vector Search redo log record that Percona XtraBackup parses. The backup does not wait for the end. - -* A user can create a table with a vector index during a backup by an earlier version. The result depends on the table data: - - * If the user inserts no rows, the backup, prepare, and restore succeed. - - * If the user inserts rows, the backup fails with the error in the previous item. - -* If the backup succeeds, `--prepare` can still fail on a table with a vector index. The failure occurs in two cases: - - * A transaction that changed the table, such as a `DELETE`, was still open when the backup ended. The `--prepare` step rolls back this transaction. - - * You run `--prepare --export`. - - In both cases, `xtrabackup --prepare` crashes with signal 11 and exit code `2`. The stack trace includes `dict_table_read_dynamic_metadata`. The saved table metadata holds a value that the earlier version cannot read. - -* If you run `--prepare --export` on a table with a `VECTOR` column, the export succeeds. The earlier version writes a wrong column type to the `.cfg` file. The `ALTER TABLE ... IMPORT TABLESPACE` statement then fails with the following error: - - ```text - ERROR 1808 (HY000): Schema mismatch (Column v main type mismatch.) - ``` - -To fix these failures, upgrade Percona XtraBackup to 9.7.2-3 or higher. Then take the backup again. For the import failure, run `--prepare --export` again. + If the server has vector indexes, do not trust backups taken with Percona XtraBackup 9.7.2-2. These backups are invalid. The backup and prepare steps can still succeed. To get a valid backup, upgrade Percona XtraBackup to 9.7.2-3 or higher and take the backup again. diff --git a/docs/xtrabackup-exit-codes.md b/docs/xtrabackup-exit-codes.md index ff7e9220e..0f399b2ba 100644 --- a/docs/xtrabackup-exit-codes.md +++ b/docs/xtrabackup-exit-codes.md @@ -1,7 +1,5 @@ # xtrabackup exit codes -The *xtrabackup* binary exits with the traditional success value of 0 after a backup when no error occurs. If an error occurs during the backup, the exit value is 1. +The *xtrabackup* binary exits with the traditional success value of 0 after a backup when no error occurs. Any non-zero exit value means that an error occurred. -An exception applies to Percona XtraBackup versions earlier than 9.7.2-3. These versions exit with `2` on a Vector Search redo log record. Percona Server for MySQL 9.7.4-4 writes this record type. For details, see [Backup fails on a Percona Server for MySQL 9.7.4-4 database that uses Vector Search](faq.md#backup-fails-on-a-percona-server-for-mysql-974-4-database-that-uses-vector-search). - -In certain cases, the exit value can be something other than 0 or 1, due to the command-line option code included from the *MySQL* libraries. An unknown command-line option, for example, will cause an exit code of 255. +The exact non-zero value depends on the error. The command-line option code from the *MySQL* libraries sets some of these values. For example, an unknown command-line option causes an exit code of 255.