After upgrading to percona/percona-backup-mongodb:2.8.0
we were no longer able to restore any backups, as they always fail to restore an arbitrary text-index.
E.g.
2025-01-15T09:29:05.000+0000 E [restore/2025-01-15T09:28:20.337518414Z] restore: restore indexes: createIndexes for <index>.<collection>: (CannotCreateIndex) Error in specification { key: { _fts: "text", _ftsx: 1 }, name: "name_text", v: 2 } :: caused by :: text index option 'weights' must specify fields or the wildcard
The index definition from the source database is
{
v: 2,
key: {
_fts: 'text',
_ftsx: 1
},
name: 'name_text',
background: true,
weights: {
name: 1
},
default_language: 'english',
language_override: 'language',
textIndexVersion: 3
}
so weights should fit the criteria criticized in the error.
We tried multiple combinations of version for both restore and backup agent.
Backup Agent Version | Restore Agent Version | Restore outcome |
---|---|---|
2.8.0 | 2.8.0 | ![]() |
2.8.0 | 2.6.0 | ![]() |
2.6.0 | 2.8.0 | ![]() |
2.6.0 | 2.6.0 | ![]() |
2.7.0 | 2.7.0 | ![]() |
2.7.0 | 2.8.0 | ![]() |
Any help is appreciated.