Bug #117202 mysqlsh "stuck" for a long time after DDL load

Submitted: 13 Jan 2025 17:15 Modified: 14 Jan 2025 14:24
Reporter: Vinicius Ruoso Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Shell Dump & Load Severity:S5 (Performance)
Version:8.4.3 OS:Ubuntu (24.04)
Assigned to: MySQL Verification Team CPU Architecture:Any

[13 Jan 2025 17:15] Vinicius Ruoso
Description:
When running the util.loadDump utility for a large number of tables (~500k), after the DDL is executed and the view DDL is completed, the process takes 100% of one CPU for a long time, after the output below:

Checking for pre-existing objects - done
Executing common preamble SQL - done
Executing DDL - done
Executing view DDL - done

Can you clarify what is being done after that step that can take so long to run?

How to repeat:
Create a dump from a database with a large number of tables. Run the loadDump utility like the command below:

util.loadDump("dumpdata", {dryRun: false, threads: 128, loadDdl: true, loadData: false, ignoreExistingObjects: true, updateGtidSet: "off"})

After view DDLs are done executing, you can see that one CPU spikes to 100% and there is no feedback on what is happening. System metrics do not show any relevant disk or network IO.
[14 Jan 2025 4:53] Alfredo Kojima
you can see what it's doing by starting mysqlsh with --verbose --log-sql=all --log-level=debug3

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.044 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.