See also (original report):
http://bugs.debian.org/946671
Using mysqlhotcopy, I received the error:
DBD::mysql::db do failed: You can't use locks with log tables at /usr/bin/mysqlhotcopy line 545.
(Your line number may differ: I use my "own" mysqlhotcopy, as per
http://bugs.debian.org/735014 .)
This seems related to the new transaction_registry table
as suggested in
https://mariadb.com/kb/en/library/mysqldump/
that says:
mysqldump in MariaDB 10.3 includes logic to cater for the
mysql.transaction_registry table. ...
My patch for this issue, below.
Cheers, Paul
--- /usr/bin/mysqlhotcopy.OLD 2017-12-26 09:11:27.000000000 +1100
+++ /usr/bin/mysqlhotcopy 2019-12-13 21:10:34.225611502 +1100
@@ -317,8 +317,24 @@
## keep in sync with mysqldump.
if ($db =~ m/^mysql$/i)
{
+#####
+# @dbh_base_tables = grep
+# { !/^(apply_status|schema|general_log|slow_log)$/ } @dbh_base_tables
+#####
+# PSz 13 Dec 2019
+# Skip transaction_registry also.
+# See also:
+# https://bugs.mysql.com/bug.php?id=43594
+# https://bugs.debian.org/574514
+# and see
+# https://mariadb.com/kb/en/library/mysqldump/
+# that says:
+# mysqldump in MariaDB 10.3 includes logic to cater for the mysql.transaction_registry table. ...
+# but I guess they forgot about mysqlhotcopy.
+#####
@dbh_base_tables = grep
- { !/^(apply_status|schema|general_log|slow_log)$/ } @dbh_base_tables
+ { !/^(apply_status|schema|general_log|slow_log|transaction_registry)$/ } @dbh_base_tables
+#####
}
## generate regex for tables/files
–
Paul Szabo psz@maths.usyd.edu.au http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics University of Sydney Australia
Sergei Golubchik
made changes -
2019-12-30 12:16
Field
Original Value
New Value
Description
See also (original report):
http://bugs.debian.org/946671
Using mysqlhotcopy, I received the error:
DBD::mysql::db do failed: You can't use locks with log tables at /usr/bin/mysqlhotcopy line 545.
(Your line number may differ: I use my "own" mysqlhotcopy, as per
http://bugs.debian.org/735014 .)
This seems related to the new transaction_registry table
as suggested in
https://mariadb.com/kb/en/library/mysqldump/
that says:
mysqldump in MariaDB 10.3 includes logic to cater for the
mysql.transaction_registry table. ...
My patch for this issue, below.
Cheers, Paul
--- /usr/bin/mysqlhotcopy.OLD 2017-12-26 09:11:27.000000000 +1100
+++ /usr/bin/mysqlhotcopy 2019-12-13 21:10:34.225611502 +1100
@@ -317,8 +317,24 @@
## keep in sync with mysqldump.
if ($db =~ m/^mysql$/i)
{
+#####
+# @dbh_base_tables = grep
+# { !/^(apply_status|schema|general_log|slow_log)$/ } @dbh_base_tables
+#####
+# PSz 13 Dec 2019
+# Skip transaction_registry also.
+# See also:
+# https://bugs.mysql.com/bug.php?id=43594
+# https://bugs.debian.org/574514
+# and see
+# https://mariadb.com/kb/en/library/mysqldump/
+# that says:
+# mysqldump in MariaDB 10.3 includes logic to cater for the mysql.transaction_registry table. ...
+# but I guess they forgot about mysqlhotcopy.
+#####
@dbh_base_tables = grep
- { !/^(apply_status|schema|general_log|slow_log)$/ } @dbh_base_tables
+ { !/^(apply_status|schema|general_log|slow_log|transaction_registry)$/ } @dbh_base_tables
+#####
}
## generate regex for tables/files
--
Paul Szabo psz@maths.usyd.edu.au http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics University of Sydney Australia
See also (original report):
http://bugs.debian.org/946671
Using mysqlhotcopy, I received the error:
DBD::mysql::db do failed: You can't use locks with log tables at /usr/bin/mysqlhotcopy line 545.
(Your line number may differ: I use my "own" mysqlhotcopy, as per
http://bugs.debian.org/735014 .)
This seems related to the new transaction_registry table
as suggested in
https://mariadb.com/kb/en/library/mysqldump/
that says:
mysqldump in MariaDB 10.3 includes logic to cater for the
mysql.transaction_registry table. ...
My patch for this issue, below.
Cheers, Paul
{code:diff}
--- /usr/bin/mysqlhotcopy.OLD 2017-12-26 09:11:27.000000000 +1100
+++ /usr/bin/mysqlhotcopy 2019-12-13 21:10:34.225611502 +1100
@@ -317,8 +317,24 @@
## keep in sync with mysqldump.
if ($db =~ m/^mysql$/i)
{
+#####
+# @dbh_base_tables = grep
+# { !/^(apply_status|schema|general_log|slow_log)$/ } @dbh_base_tables
+#####
+# PSz 13 Dec 2019
+# Skip transaction_registry also.
+# See also:
+# https://bugs.mysql.com/bug.php?id=43594
+# https://bugs.debian.org/574514
+# and see
+# https://mariadb.com/kb/en/library/mysqldump/
+# that says:
+# mysqldump in MariaDB 10.3 includes logic to cater for the mysql.transaction_registry table. ...
+# but I guess they forgot about mysqlhotcopy.
+#####
@dbh_base_tables = grep
- { !/^(apply_status|schema|general_log|slow_log)$/ } @dbh_base_tables
+ { !/^(apply_status|schema|general_log|slow_log|transaction_registry)$/ } @dbh_base_tables
+#####
}
## generate regex for tables/files
{code}
--
Paul Szabo psz@maths.usyd.edu.au http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics University of Sydney Australia
Sergei Golubchik
made changes -
2019-12-30 12:16
Assignee
Aleksey Midenkov
[ midenok
]
Aleksey Midenkov
made changes -
2020-01-08 20:27
Labels
patch
patch trx-versioning
Aleksey Midenkov
made changes -
2020-01-08 20:28
Status
Open
[ 1
]
In Progress
[ 3
]
Aleksey Midenkov
made changes -
2020-02-03 12:04
Fix Version/s
10.3.23
[ 24222
]
Fix Version/s
10.4.13
[ 24223
]
Fix Version/s
10.3
[ 22126
]
Resolution
Fixed
[ 1
]
Status
In Progress
[ 3
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:50
Workflow
MariaDB v3
[ 101884
]
MariaDB v4
[ 157100
]
{"report":{"fcp":889.1999999880791,"ttfb":222.19999998807907,"pageVisibility":"visible","entityId":81167,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"3fcef683-d9de-4c4f-8bef-4d9e9e4b3189","navigationType":0,"readyForUser":960.3000000119209,"redirectCount":0,"resourceLoadedEnd":1018.3000000119209,"resourceLoadedStart":228.10000002384186,"resourceTiming":[{"duration":148.80000001192093,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":228.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":228.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":376.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":148.79999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":228.4000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":228.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":377.19999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":164.4000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":228.5,"connectEnd":228.5,"connectStart":228.5,"domainLookupEnd":228.5,"domainLookupStart":228.5,"fetchStart":228.5,"redirectEnd":0,"redirectStart":0,"requestStart":228.5,"responseEnd":392.9000000357628,"responseStart":392.9000000357628,"secureConnectionStart":228.5},{"duration":241.4000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":228.69999998807907,"connectEnd":228.69999998807907,"connectStart":228.69999998807907,"domainLookupEnd":228.69999998807907,"domainLookupStart":228.69999998807907,"fetchStart":228.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":228.69999998807907,"responseEnd":470.10000002384186,"responseStart":470.10000002384186,"secureConnectionStart":228.69999998807907},{"duration":244.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":229,"connectEnd":229,"connectStart":229,"domainLookupEnd":229,"domainLookupStart":229,"fetchStart":229,"redirectEnd":0,"redirectStart":0,"requestStart":229,"responseEnd":473.69999998807907,"responseStart":473.69999998807907,"secureConnectionStart":229},{"duration":245.0999999642372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":229.10000002384186,"connectEnd":229.10000002384186,"connectStart":229.10000002384186,"domainLookupEnd":229.10000002384186,"domainLookupStart":229.10000002384186,"fetchStart":229.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":229.10000002384186,"responseEnd":474.19999998807907,"responseStart":474.19999998807907,"secureConnectionStart":229.10000002384186},{"duration":245.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":229.30000001192093,"connectEnd":229.30000001192093,"connectStart":229.30000001192093,"domainLookupEnd":229.30000001192093,"domainLookupStart":229.30000001192093,"fetchStart":229.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":229.30000001192093,"responseEnd":474.60000002384186,"responseStart":474.60000002384186,"secureConnectionStart":229.30000001192093},{"duration":303,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":229.4000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":532.4000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":245.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":229.60000002384186,"connectEnd":229.60000002384186,"connectStart":229.60000002384186,"domainLookupEnd":229.60000002384186,"domainLookupStart":229.60000002384186,"fetchStart":229.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":229.60000002384186,"responseEnd":474.9000000357628,"responseStart":474.9000000357628,"secureConnectionStart":229.60000002384186},{"duration":302.9000000357628,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":229.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":532.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":245.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":229.80000001192093,"connectEnd":229.80000001192093,"connectStart":229.80000001192093,"domainLookupEnd":229.80000001192093,"domainLookupStart":229.80000001192093,"fetchStart":229.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":229.80000001192093,"responseEnd":475.5,"responseStart":475.5,"secureConnectionStart":229.80000001192093},{"duration":723.3000000119209,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":230.69999998807907,"connectEnd":230.69999998807907,"connectStart":230.69999998807907,"domainLookupEnd":230.69999998807907,"domainLookupStart":230.69999998807907,"fetchStart":230.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":230.69999998807907,"responseEnd":954,"responseStart":954,"secureConnectionStart":230.69999998807907},{"duration":723.8000000119209,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":230.80000001192093,"connectEnd":230.80000001192093,"connectStart":230.80000001192093,"domainLookupEnd":230.80000001192093,"domainLookupStart":230.80000001192093,"fetchStart":230.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":230.80000001192093,"responseEnd":954.6000000238419,"responseStart":954.6000000238419,"secureConnectionStart":230.80000001192093},{"duration":82,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":543.6000000238419,"connectEnd":543.6000000238419,"connectStart":543.6000000238419,"domainLookupEnd":543.6000000238419,"domainLookupStart":543.6000000238419,"fetchStart":543.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":543.6000000238419,"responseEnd":625.6000000238419,"responseStart":625.6000000238419,"secureConnectionStart":543.6000000238419},{"duration":207.19999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":810.9000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":810.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1018.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":206.80000001192093,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2bu7/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":811.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":811.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1018.3000000119209,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":12,"responseStart":222,"responseEnd":224,"domLoading":225,"domInteractive":1029,"domContentLoadedEventStart":1029,"domContentLoadedEventEnd":1077,"domComplete":1300,"loadEventStart":1300,"loadEventEnd":1301,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":999.4000000357628},{"name":"bigPipe.sidebar-id.end","time":1000.1999999880791},{"name":"bigPipe.activity-panel-pipe-id.start","time":1000.3000000119209},{"name":"bigPipe.activity-panel-pipe-id.end","time":1003.3000000119209},{"name":"activityTabFullyLoaded","time":1097.1000000238419}],"measures":[],"correlationId":"89cc09abcd0496","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":147,"dbReadsTimeInMs":21,"dbConnsTimeInMs":31,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thanks for the contribution! Pushed to 10.3.