Hello,
I am running Percona Server 5.7.44-48 on a large dataset (~9 TB).
This instance is a replica / test clone, not production.
While running util.checkForServerUpgrade() (MySQL Shell) in preparation for an upgrade to MySQL / Percona 8.0, I am getting the following blocking error:
Schema inconsistencies resulting from file removal or corruption
Table kep.#sql-ib197-3868964134 is present in
INFORMATION_SCHEMA.INNODB_SYS_TABLES
but missing from TABLES table
Querying the metadata confirms this:
SELECT *
FROM information_schema.INNODB_SYS_TABLES
WHERE NAME LIKE 'kep/#sql%';
Result:
NAME: kep/#sql-ib197-3868964134
SPACE: 595
This looks like an orphan InnoDB internal table left behind by a failed or interrupted ALTER TABLE operation.
What I already tried
-
Connecting as
root@localhostvia UNIX socket -
DROP TABLE IF EXISTS kep.\#sql-ib197-3868964134`;` -
Restarting MySQL
-
Starting MySQL with
innodb_force_recovery = 1 -
Retrying
DROP TABLE -
Restarting again without
innodb_force_recovery
The table remains present in INNODB_SYS_TABLES and cannot be removed.
Important note:
- On Percona Server 5.7,
INNODB_SYS_*tables are read-only, so manual deletion frominformation_schemais not possible.
Key constraints
-
Dataset size is ~9 TB (dropping/reloading schemas is not practical)
-
This is a replica/test node, but data should remain intact
-
I want to prepare the instance safely for an upgrade to Percona 8.0
-
I want to avoid unsupported hacks or ibdata file manipulation
Questions
-
Is this a known issue / bug in Percona Server 5.7 regarding orphan
#sql-ib*entries? -
Is there a supported way to clean up this orphan InnoDB metadata in 5.7?
-
Can this orphan entry be safely ignored when upgrading Percona Server 5.7 → Percona Server 8.0, or does it risk upgrade failure?
-
Would Percona recommend:
-
in-place upgrade,
-
or creating a new Percona 8.0 instance and cloning data into it?
-
Any guidance from Percona engineers or users who have faced a similar situation would be greatly appreciated.
Thank you.