-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Myloader hung at Reading metadata: metadata #1487
Comments
Ok I think I know whats going on. Myloader is skipping every table because the schema doesnt exist. I dumped the entire database, but not the schemas? Is it just skipping everything? How can I just load schemas and tables? I have a ton of schemas and specifying each one to dump and then load would be crazy. ** (myloader:2748): DEBUG: 21:42:31.390: [CJT] sandbox_****_.auto_coding: NOT_FOUND, voting for finish |
Hi @tylerhowdcgm can you test with the latest prerelease? |
Thanks for the reply. I installed the v0.16.2-2 deb. Is there a newer release? |
Hi @tylerhowdcgm yes, v0.16.2-2 is the latest prerelease. do you have the same issue on that version? if yes, then can you share the metadata file? |
It is happening with that version. I took a look at the metadata file and it has some sensitive information in it about our customers. Its also quite long. Is there an easy way to scrub it or provide me with what you are looking for? I can comb through the metadata a look for what you need. |
Yes! I know, but no worries, How many tables do you have there? can you share just 1 table example editing the sensitive information? there are global sections on that file that might not contain sensitive information, I will need those too. |
Global section
Table example
Oh, we have 42k tables |
I only see tables in the metadata file. Nothing about schemas. |
I created all the schemas with a script and its still skipping all the tables. Not sure what I did wrong. |
Hi @tylerhowdcgm, does the schema names has special characters? |
We have underscores in just about every schema name. No other special characters. |
Bug found! |
I built the master branch and installed. It looks to me like it has the same issue. |
Hi @tylerhowdcgm, |
I assume we will have to do a new dump because the metadata file has changed with this fix? |
Hi @tylerhowdcgm, |
Hi @tylerhowdcgm Can we close this issue? |
Hi, I'm not the original poster but I have the same issue:
It seems to spend most of its time in this loop in refresh_table_list_without_table_hash_lock:
My guess is that append_new_db_table is too slow when there's a large number of tables:
|
Hi @alexoj !! THANKS for you review! yes, that is a important finding, I'm going to modify myloader to avoid this performance degradation. I will also review mydumper to confirm that the metadata.partial are not re sending the tables that were already sent. |
Describe the bug
Im dumping from RDS Mysql 8 and importing into Aurora. Total dump size is 105G. The dump took a bit over an hour, but the load into Aurora has be hung at
Reading metadata: metadata
for over 2 hours. Is this expected behavior? Am I doing something wrong?To Reproduce
Command executed:
mydumper -t 14 -u USER --password='PASSWORD' -h rds-database.us-east-1.rds.amazonaws.com -P 3306 -o /home/ubuntu/backup --lock-all-tables -v 3 -R -Y
myloader --threads=14 -u USER --password='PASSWORD' -h 'aurora.us-east-1.rds.amazonaws.com' -P 3306 -v 3 -d /home/ubuntu/backup
What mydumper and myloader version has been used?
mydumper v0.16.1-3
myloader v0.16.1-3
Expected behavior
The import to start
Environment (please complete the following information):
Ubuntu 22.04
Other info:
I just installed the latest deb and im testing again
The text was updated successfully, but these errors were encountered: