myloader needs to handle errors better

Bug #806698 reported by Andrew Hutchings
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MySQL Data Dumper
Won't Fix
Wishlist
Max Bubenick

Bug Description

Errors like this need to be handled better. Maybe a retry option?

** (myloader:19336): CRITICAL **: Error restoring xxxxx.xxxxx from file xxxxx.xxxxx.00005.sql: Lock wait timeout exceeded; try restarting transaction

Revision history for this message
bobby hakimi (bhakimi26) wrote :

Can we please add this? it really helps. was thinking about commenting out this part of the code

                                if (mysql_real_query(conn, data->str, data->len)) {
                                        //g_critical("Error restoring %s.%s from file %s: %s", db ? db : database, table, filename, mysql_error(conn));
                                        errors++;
                                        return;
                                }

Changed in mydumper:
importance: Undecided → Wishlist
assignee: nobody → Max Bubenick (max-bubenick)
status: New → Triaged
milestone: none → 0.9.3
Revision history for this message
Max Bubenick (max-bubenick) wrote :

Hi you can reduce the --queries-per-transaction to avoid those errors when you have chunks.

Changed in mydumper:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.