Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
None
There's a race between FLUSH LOGS and binlog-group commit for Binlog-checkpoint notification which must be done *after * the committed group transactions' affected
data are flushed to disk. However the notification may happen before that fore the reason
FLUSH LOGS handler does to acquire necessary mutexes.
A test case follows with a patch to be committed soon.
Andrei Elkin
made changes -
2021-01-05 13:20
Description
There's a race between {{FLUSH LOGS}} and binlog-group commit for Binlog-checkpoint notification which must be done **after** the committed group transactions' affected
data are flushed to disk. However the notification may happen before that fore the reason
{{FLUSH LOGS}} handler does to acquire necessary mutexes.
A test case follows with a patch to committed soon.
There's a race between {{FLUSH LOGS}} and binlog-group commit for Binlog-checkpoint notification which must be done **after** the committed group transactions' affected
data are flushed to disk. However the notification may happen before that fore the reason
{{FLUSH LOGS}} handler does to acquire necessary mutexes.
A test case follows with a patch to be committed soon.
Andrei Elkin
made changes -
2021-01-07 13:03
Status
Open
[ 1
]
In Progress
[ 3
]
Andrei Elkin
made changes -
2021-01-07 13:06
Assignee
Andrei Elkin
[ elkin
]
Sujatha Sivakumar
[ sujatha.sivakumar
]
Status
In Progress
[ 3
]
In Review
[ 10002
]
Sujatha Sivakumar (Inactive)
made changes -
2021-01-13 10:36
Assignee
Sujatha Sivakumar
[ sujatha.sivakumar
]
Andrei Elkin
[ elkin
]
Status
In Review
[ 10002
]
Stalled
[ 10000
]
Andrei Elkin
made changes -
2021-04-21 13:10
Summary
binlog rotate via FLUSH LOGS may obsolate binlog file too eary
binlog rotate via FLUSH LOGS may obsolate binlog file for recovery too early
Andrei Elkin
made changes -
2021-04-21 13:27
Fix Version/s
10.2.38
[ 25207
]
Fix Version/s
10.3.29
[ 25206
]
Fix Version/s
10.4.19
[ 25205
]
Fix Version/s
10.5.10
[ 25204
]
Fix Version/s
10.2
[ 14601
]
Fix Version/s
10.3
[ 22126
]
Fix Version/s
10.4
[ 22408
]
Fix Version/s
10.5
[ 23123
]
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:52
Workflow
MariaDB v3
[ 117815
]
MariaDB v4
[ 158751
]
{"report":{"fcp":1361.1000003814697,"ttfb":316.5,"pageVisibility":"visible","entityId":95615,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a0f986e0-fbd0-4bb8-bd98-c43155a8095a","navigationType":0,"readyForUser":1437.8000001907349,"redirectCount":0,"resourceLoadedEnd":1626.6000003814697,"resourceLoadedStart":331.80000019073486,"resourceTiming":[{"duration":536.8000001907349,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":331.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":868.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":536.9000000953674,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":332,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":332,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":868.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":545.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":332.30000019073486,"connectEnd":332.30000019073486,"connectStart":332.30000019073486,"domainLookupEnd":332.30000019073486,"domainLookupStart":332.30000019073486,"fetchStart":332.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":332.30000019073486,"responseEnd":878,"responseStart":878,"secureConnectionStart":332.30000019073486},{"duration":624.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":332.40000009536743,"connectEnd":332.40000009536743,"connectStart":332.40000009536743,"domainLookupEnd":332.40000009536743,"domainLookupStart":332.40000009536743,"fetchStart":332.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":332.40000009536743,"responseEnd":956.8000001907349,"responseStart":956.8000001907349,"secureConnectionStart":332.40000009536743},{"duration":628.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":332.7000002861023,"connectEnd":332.7000002861023,"connectStart":332.7000002861023,"domainLookupEnd":332.7000002861023,"domainLookupStart":332.7000002861023,"fetchStart":332.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":332.7000002861023,"responseEnd":961.2000002861023,"responseStart":961.2000002861023,"secureConnectionStart":332.7000002861023},{"duration":638.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":332.90000009536743,"connectEnd":332.90000009536743,"connectStart":332.90000009536743,"domainLookupEnd":332.90000009536743,"domainLookupStart":332.90000009536743,"fetchStart":332.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":332.90000009536743,"responseEnd":971.7000002861023,"responseStart":971.6000003814697,"secureConnectionStart":332.90000009536743},{"duration":644.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":333.1000003814697,"connectEnd":333.1000003814697,"connectStart":333.1000003814697,"domainLookupEnd":333.1000003814697,"domainLookupStart":333.1000003814697,"fetchStart":333.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":333.1000003814697,"responseEnd":977.2000002861023,"responseStart":977.2000002861023,"secureConnectionStart":333.1000003814697},{"duration":695.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":333.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":333.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1029,"responseStart":0,"secureConnectionStart":0},{"duration":652.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":333.30000019073486,"connectEnd":333.30000019073486,"connectStart":333.30000019073486,"domainLookupEnd":333.30000019073486,"domainLookupStart":333.30000019073486,"fetchStart":333.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":333.30000019073486,"responseEnd":985.7000002861023,"responseStart":985.7000002861023,"secureConnectionStart":333.30000019073486},{"duration":695.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":333.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":333.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1029.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":653,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":333.7000002861023,"connectEnd":333.7000002861023,"connectStart":333.7000002861023,"domainLookupEnd":333.7000002861023,"domainLookupStart":333.7000002861023,"fetchStart":333.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":333.7000002861023,"responseEnd":986.7000002861023,"responseStart":986.7000002861023,"secureConnectionStart":333.7000002861023},{"duration":1102.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":342.2000002861023,"connectEnd":342.2000002861023,"connectStart":342.2000002861023,"domainLookupEnd":342.2000002861023,"domainLookupStart":342.2000002861023,"fetchStart":342.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":342.2000002861023,"responseEnd":1444.3000001907349,"responseStart":1444.3000001907349,"secureConnectionStart":342.2000002861023},{"duration":1284.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":342.40000009536743,"connectEnd":342.40000009536743,"connectStart":342.40000009536743,"domainLookupEnd":342.40000009536743,"domainLookupStart":342.40000009536743,"fetchStart":342.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":342.40000009536743,"responseEnd":1626.6000003814697,"responseStart":1626.6000003814697,"secureConnectionStart":342.40000009536743},{"duration":412.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1041.8000001907349,"connectEnd":1041.8000001907349,"connectStart":1041.8000001907349,"domainLookupEnd":1041.8000001907349,"domainLookupStart":1041.8000001907349,"fetchStart":1041.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1041.8000001907349,"responseEnd":1454.6000003814697,"responseStart":1454.6000003814697,"secureConnectionStart":1041.8000001907349},{"duration":302.69999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1353.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1353.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1656,"responseStart":0,"secureConnectionStart":0},{"duration":223,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":1489.1000003814697,"connectEnd":1489.1000003814697,"connectStart":1489.1000003814697,"domainLookupEnd":1489.1000003814697,"domainLookupStart":1489.1000003814697,"fetchStart":1489.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1489.1000003814697,"responseEnd":1712.1000003814697,"responseStart":1712.1000003814697,"secureConnectionStart":1489.1000003814697}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":126,"responseStart":316,"responseEnd":335,"domLoading":324,"domInteractive":1659,"domContentLoadedEventStart":1659,"domContentLoadedEventEnd":1709,"domComplete":1981,"loadEventStart":1981,"loadEventEnd":1982,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1628.5},{"name":"bigPipe.sidebar-id.end","time":1629.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1629.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1633.1000003814697},{"name":"activityTabFullyLoaded","time":1731.6000003814697}],"measures":[],"correlationId":"a59b1ff105ceb6","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":133,"dbReadsTimeInMs":28,"dbConnsTimeInMs":39,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}