Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.6
The fix of MDEV-23328 introduced a background thread for killing conflicting transactions. In 10.6, thanks to the refactoring that was conducted in MDEV-24671 , the high-priority ("brute-force") applier thread can kill the conflicting transactions itself, before waiting for the locks to be finally released (after the conflicting transactions have been rolled back), in the lock_wait() function.
This will also allow us to remove the Galera hack LockGGuard that had to be added in MDEV-20612 , and remove Galera-related function parameters from lock creation.
Marko Mäkelä
made changes -
2021-02-18 10:21
Description
The fix of MDEV-23328 introduced a background thread for killing conflicting transactions. In 10.6, thanks to the refactoring that was conducted in MDEV-24671 , we can simply kill those transactions in the high-priority ("brute-force") applier thread that seeks to break those locks by aborting the transactions that hold the conflicting locks, in the {{lock_wait()}} function.
This will also allow us to remove the Galera hack {{LockGGuard}} that had to be added in MDEV-20612 , and remove Galera-related function parameters from lock creation.
The fix of MDEV-23328 introduced a background thread for killing conflicting transactions. In 10.6, thanks to the refactoring that was conducted in MDEV-24671 , the high-priority ("brute-force") applier thread can kill the conflicting transactions itself, before waiting for the locks to be finally released (after the conflicting transactions have been rolled back), in the {{lock_wait()}} function.
This will also allow us to remove the Galera hack {{LockGGuard}} that had to be added in MDEV-20612 , and remove Galera-related function parameters from lock creation.
Marko Mäkelä
made changes -
2021-02-18 10:22
Status
Open
[ 1
]
In Progress
[ 3
]
Marko Mäkelä
made changes -
2021-02-18 14:25
issue.field.resolutiondate
2021-02-18 14:25:52.0
2021-02-18 14:25:52.908
Marko Mäkelä
made changes -
2021-02-18 14:25
Fix Version/s
10.6.0
[ 24431
]
Fix Version/s
10.6
[ 24028
]
Resolution
Fixed
[ 1
]
Status
In Progress
[ 3
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:53
Workflow
MariaDB v3
[ 119278
]
MariaDB v4
[ 158923
]
{"report":{"fcp":1047.1999999284744,"ttfb":365.39999997615814,"pageVisibility":"visible","entityId":97066,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"9220aca4-8d1a-4a8d-bdef-b7f661dd0b6f","navigationType":0,"readyForUser":1139.8999999761581,"redirectCount":0,"resourceLoadedEnd":1168.3999999761581,"resourceLoadedStart":372,"resourceTiming":[{"duration":125.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":497.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":125.5,"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":372.1999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":372.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":497.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":133.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":372.39999997615814,"connectEnd":372.39999997615814,"connectStart":372.39999997615814,"domainLookupEnd":372.39999997615814,"domainLookupStart":372.39999997615814,"fetchStart":372.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":372.39999997615814,"responseEnd":506.2999999523163,"responseStart":506.2999999523163,"secureConnectionStart":372.39999997615814},{"duration":209.40000009536743,"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":372.59999990463257,"connectEnd":372.59999990463257,"connectStart":372.59999990463257,"domainLookupEnd":372.59999990463257,"domainLookupStart":372.59999990463257,"fetchStart":372.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":372.59999990463257,"responseEnd":582,"responseStart":582,"secureConnectionStart":372.59999990463257},{"duration":213.20000004768372,"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":372.7999999523163,"connectEnd":372.7999999523163,"connectStart":372.7999999523163,"domainLookupEnd":372.7999999523163,"domainLookupStart":372.7999999523163,"fetchStart":372.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":372.7999999523163,"responseEnd":586,"responseStart":586,"secureConnectionStart":372.7999999523163},{"duration":213.5,"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":373,"connectEnd":373,"connectStart":373,"domainLookupEnd":373,"domainLookupStart":373,"fetchStart":373,"redirectEnd":0,"redirectStart":0,"requestStart":373,"responseEnd":586.5,"responseStart":586.5,"secureConnectionStart":373},{"duration":213.70000004768372,"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":373.1999999284744,"connectEnd":373.1999999284744,"connectStart":373.1999999284744,"domainLookupEnd":373.1999999284744,"domainLookupStart":373.1999999284744,"fetchStart":373.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":373.1999999284744,"responseEnd":586.8999999761581,"responseStart":586.8999999761581,"secureConnectionStart":373.1999999284744},{"duration":278.2999999523163,"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":373.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":373.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":651.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":213.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":373.5,"connectEnd":373.5,"connectStart":373.5,"domainLookupEnd":373.5,"domainLookupStart":373.5,"fetchStart":373.5,"redirectEnd":0,"redirectStart":0,"requestStart":373.5,"responseEnd":587.2999999523163,"responseStart":587.2999999523163,"secureConnectionStart":373.5},{"duration":278.10000002384186,"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":373.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":373.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":651.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":214.10000002384186,"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":373.7999999523163,"connectEnd":373.7999999523163,"connectStart":373.7999999523163,"domainLookupEnd":373.7999999523163,"domainLookupStart":373.7999999523163,"fetchStart":373.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":373.7999999523163,"responseEnd":587.8999999761581,"responseStart":587.8999999761581,"secureConnectionStart":373.7999999523163},{"duration":421.2999999523163,"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":375,"connectEnd":375,"connectStart":375,"domainLookupEnd":375,"domainLookupStart":375,"fetchStart":375,"redirectEnd":0,"redirectStart":0,"requestStart":375,"responseEnd":796.2999999523163,"responseStart":796.2999999523163,"secureConnectionStart":375},{"duration":751.4000000953674,"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":375.09999990463257,"connectEnd":375.09999990463257,"connectStart":375.09999990463257,"domainLookupEnd":375.09999990463257,"domainLookupStart":375.09999990463257,"fetchStart":375.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":375.09999990463257,"responseEnd":1126.5,"responseStart":1126.5,"secureConnectionStart":375.09999990463257},{"duration":131.89999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":664.7999999523163,"connectEnd":664.7999999523163,"connectStart":664.7999999523163,"domainLookupEnd":664.7999999523163,"domainLookupStart":664.7999999523163,"fetchStart":664.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":664.7999999523163,"responseEnd":796.6999999284744,"responseStart":796.6999999284744,"secureConnectionStart":664.7999999523163},{"duration":232.20000004768372,"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":936.1999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":936.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1168.3999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":301.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":937.2999999523163,"connectEnd":937.2999999523163,"connectStart":937.2999999523163,"domainLookupEnd":937.2999999523163,"domainLookupStart":937.2999999523163,"fetchStart":937.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":937.2999999523163,"responseEnd":1238.6999999284744,"responseStart":1238.6999999284744,"secureConnectionStart":937.2999999523163},{"duration":325.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/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.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":937.6999999284744,"connectEnd":937.6999999284744,"connectStart":937.6999999284744,"domainLookupEnd":937.6999999284744,"domainLookupStart":937.6999999284744,"fetchStart":937.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":937.6999999284744,"responseEnd":1262.7999999523163,"responseStart":1262.7999999523163,"secureConnectionStart":937.6999999284744}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":164,"responseStart":366,"responseEnd":370,"domLoading":370,"domInteractive":1198,"domContentLoadedEventStart":1198,"domContentLoadedEventEnd":1243,"domComplete":1577,"loadEventStart":1577,"loadEventEnd":1577,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1180.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1180.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":1181},{"name":"bigPipe.activity-panel-pipe-id.end","time":1183.8999999761581},{"name":"activityTabFullyLoaded","time":1280.3999999761581}],"measures":[],"correlationId":"7c77b82d1291dd","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":141,"dbReadsTimeInMs":30,"dbConnsTimeInMs":40,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}