mydumper icon indicating copy to clipboard operation
mydumper copied to clipboard

mydumper is generating *metadata file for each table

Open aloks2019 opened this issue 2 years ago • 7 comments

Mydumper is generating *metadata file for each table. This file contains number of imsert statements mentioned in file *.SQL.gz ; however there are separate files *sql.gz having actual insert statements.

However, myloader is not able to process those file and error is “cannot open file /database name.tablename-metadata.

backup command mydumper —user —ask-password —compress —compress-protocol—triggers—events —routines —build-empty-files —try-consistency-only —kill-long-queries —outputdir

aloks2019 avatar May 12 '22 02:05 aloks2019

Hi @aloks2019 are you using same mydumper/myloader versions?

davidducos avatar May 12 '22 12:05 davidducos

Yes.. using same version v0.12.1

aloks2019 avatar May 12 '22 16:05 aloks2019

I couldn’t try latest version as rpm of mydumper for RHEL8 is not available

aloks2019 avatar May 12 '22 16:05 aloks2019

As a workaround, just remove them.

davidducos avatar May 12 '22 18:05 davidducos

Yeah!! Doing same for now.. I have deleted all the *-metadata files except “metadata” file.

aloks2019 avatar May 12 '22 20:05 aloks2019

Can you prepare a test case? it was impossible for me to reproduce your issue.

davidducos avatar May 20 '22 20:05 davidducos

I don’t see this issue in latest version

aloks2019 avatar Jun 10 '22 02:06 aloks2019