This failure had been reported in MDEV-15533, which was filed about a different failure in 10.2.
There are multiple assertions log->blobs in the function row_log_table_apply_update(). The one that fails in the rr replay trace appears to be specific to 10.3 and later, likely caused by MDEV-12288:
if (memcmp(rec_trx_id, old_pk_trx_id->data,
|
DATA_TRX_ID_LEN + DATA_ROLL_PTR_LEN)) {
|
/* The ROW_T_UPDATE was logged for a different
|
DB_TRX_ID,DB_ROLL_PTR. This is possible if an
|
earlier ROW_T_INSERT or ROW_T_UPDATE was diverted
|
because some BLOBs were missing due to rolling
|
back the initial insert or due to purging
|
the old BLOB values of an update. */
|
ut_ad(log->blobs);
|
In the trace that I analyzed, old_trx_id->data is reset_trx_id.
The value was assigned earlier:
#0 0x000055bd086d1405 in dfield_set_data (len=6,
|
data=0x55bd0997f4e0 <reset_trx_id>, field=0x61200036ddb0)
|
at /home/mleich/10.5_A/storage/innobase/include/data0data.ic:93
|
#1 row_log_table_get_pk (rec=<optimized out>,
|
index=index@entry=0x61800020f520, offsets=offsets@entry=0x7f9a4025f9d0,
|
sys=sys@entry=0x0, heap=heap@entry=0x7f9a4025f6f0)
|
at /home/mleich/10.5_A/storage/innobase/row/row0log.cc:1416
|
#2 0x000055bd0876a3fd in row_upd_clust_rec (flags=flags@entry=0,
|
node=node@entry=0x621000c6f220, index=index@entry=0x61800020f520,
|
offsets=<optimized out>, offsets@entry=0x7f9a4025f9d0,
|
offsets_heap=offsets_heap@entry=0x7f9a4025f850,
|
thr=thr@entry=0x621000c6f600, mtr=<optimized out>)
|
at /home/mleich/10.5_A/storage/innobase/row/row0upd.cc:2550
|
The code in row_log_table_get_pk() is directly related to this:
if (trx_read_trx_id(trx_roll) < log->min_trx) {
|
trx_roll = reset_trx_id;
|
if (sys) {
|
memcpy(sys, trx_roll,
|
DATA_TRX_ID_LEN + DATA_ROLL_PTR_LEN);
|
}
|
...
|
}
|
|
ut_d(trx_id_check(trx_roll, log->min_trx));
|
|
dfield_set_data(dtuple_get_nth_field(tuple, new_n_uniq),
|
trx_roll, DATA_TRX_ID_LEN);
|
dfield_set_data(dtuple_get_nth_field(tuple, new_n_uniq + 1),
|
trx_roll + DATA_TRX_ID_LEN, DATA_ROLL_PTR_LEN);
|
We should adjust the condition to take log->min_trx into account. At the time of the mismatch, we have mach_read_from_6(rec_trx_id) == 6388 and log->min_trx == 6385. It seems that we are correctly treating this as a mismatch of the DB_TRX_ID, because in row_log_table_get_pk() the original DB_TRX_ID must have been smaller than 6385. So, this might be a 'harmless' debug assertion failure.
This should only affect cases where the PRIMARY KEY is being redefined while concurrent DML is being executed. In the trace that I analyzed, ALTER TABLE t2 ADD PRIMARY KEY (col2) was being executed.
Transition |
Time In Source Status |
Execution Times |
Open |
|
In Progress |
|
1d 4h 18m
|
1
|
In Progress |
|
Closed |
|
23h 32m
|
1
|
{"report":{"fcp":960,"ttfb":285.60000002384186,"pageVisibility":"visible","entityId":89747,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a18bd55a-47b7-4499-9b7f-64590521c134","navigationType":0,"readyForUser":1078.699999988079,"redirectCount":0,"resourceLoadedEnd":1053.199999988079,"resourceLoadedStart":291.10000002384186,"resourceTiming":[{"duration":193.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":291.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":291.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":484.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":193.60000002384186,"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":291.30000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":291.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":484.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":202.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":291.60000002384186,"connectEnd":291.60000002384186,"connectStart":291.60000002384186,"domainLookupEnd":291.60000002384186,"domainLookupStart":291.60000002384186,"fetchStart":291.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":291.60000002384186,"responseEnd":493.9000000357628,"responseStart":493.9000000357628,"secureConnectionStart":291.60000002384186},{"duration":248,"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":291.69999998807907,"connectEnd":291.69999998807907,"connectStart":291.69999998807907,"domainLookupEnd":291.69999998807907,"domainLookupStart":291.69999998807907,"fetchStart":291.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":291.69999998807907,"responseEnd":539.6999999880791,"responseStart":539.6999999880791,"secureConnectionStart":291.69999998807907},{"duration":251.5,"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":292,"connectEnd":292,"connectStart":292,"domainLookupEnd":292,"domainLookupStart":292,"fetchStart":292,"redirectEnd":0,"redirectStart":0,"requestStart":292,"responseEnd":543.5,"responseStart":543.5,"secureConnectionStart":292},{"duration":251.70000004768372,"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":292.19999998807907,"connectEnd":292.19999998807907,"connectStart":292.19999998807907,"domainLookupEnd":292.19999998807907,"domainLookupStart":292.19999998807907,"fetchStart":292.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":292.19999998807907,"responseEnd":543.9000000357628,"responseStart":543.9000000357628,"secureConnectionStart":292.19999998807907},{"duration":251.79999995231628,"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":292.4000000357628,"connectEnd":292.4000000357628,"connectStart":292.4000000357628,"domainLookupEnd":292.4000000357628,"domainLookupStart":292.4000000357628,"fetchStart":292.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":292.4000000357628,"responseEnd":544.1999999880791,"responseStart":544.1999999880791,"secureConnectionStart":292.4000000357628},{"duration":342.0999999642372,"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":292.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":292.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":634.6999999880791,"responseStart":0,"secureConnectionStart":0},{"duration":252.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":292.69999998807907,"connectEnd":292.69999998807907,"connectStart":292.69999998807907,"domainLookupEnd":292.69999998807907,"domainLookupStart":292.69999998807907,"fetchStart":292.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":292.69999998807907,"responseEnd":544.8000000119209,"responseStart":544.8000000119209,"secureConnectionStart":292.69999998807907},{"duration":342,"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":292.9000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":292.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":634.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":252.30000001192093,"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":293,"connectEnd":293,"connectStart":293,"domainLookupEnd":293,"domainLookupStart":293,"fetchStart":293,"redirectEnd":0,"redirectStart":0,"requestStart":293,"responseEnd":545.3000000119209,"responseStart":545.3000000119209,"secureConnectionStart":293},{"duration":481.7999999523163,"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":293.9000000357628,"connectEnd":293.9000000357628,"connectStart":293.9000000357628,"domainLookupEnd":293.9000000357628,"domainLookupStart":293.9000000357628,"fetchStart":293.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":293.9000000357628,"responseEnd":775.6999999880791,"responseStart":775.6999999880791,"secureConnectionStart":293.9000000357628},{"duration":706.8999999761581,"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":294.10000002384186,"connectEnd":294.10000002384186,"connectStart":294.10000002384186,"domainLookupEnd":294.10000002384186,"domainLookupStart":294.10000002384186,"fetchStart":294.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":294.10000002384186,"responseEnd":1001,"responseStart":1001,"secureConnectionStart":294.10000002384186},{"duration":131,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":645.6999999880791,"connectEnd":645.6999999880791,"connectStart":645.6999999880791,"domainLookupEnd":645.6999999880791,"domainLookupStart":645.6999999880791,"fetchStart":645.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":645.6999999880791,"responseEnd":776.6999999880791,"responseStart":776.6999999880791,"secureConnectionStart":645.6999999880791},{"duration":105.60000002384186,"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":901.3000000119209,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":901.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1006.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":142.9000000357628,"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":902.1999999880791,"connectEnd":902.1999999880791,"connectStart":902.1999999880791,"domainLookupEnd":902.1999999880791,"domainLookupStart":902.1999999880791,"fetchStart":902.1999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":902.1999999880791,"responseEnd":1045.1000000238419,"responseStart":1045.1000000238419,"secureConnectionStart":902.1999999880791},{"duration":150.69999998807907,"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":902.5,"connectEnd":902.5,"connectStart":902.5,"domainLookupEnd":902.5,"domainLookupStart":902.5,"fetchStart":902.5,"redirectEnd":0,"redirectStart":0,"requestStart":902.5,"responseEnd":1053.199999988079,"responseStart":1053.1000000238419,"secureConnectionStart":902.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":113,"responseStart":286,"responseEnd":289,"domLoading":289,"domInteractive":1139,"domContentLoadedEventStart":1139,"domContentLoadedEventEnd":1180,"domComplete":1730,"loadEventStart":1730,"loadEventEnd":1730,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1124.300000011921},{"name":"bigPipe.sidebar-id.end","time":1125},{"name":"bigPipe.activity-panel-pipe-id.start","time":1125.199999988079},{"name":"bigPipe.activity-panel-pipe-id.end","time":1126.1000000238419},{"name":"activityTabFullyLoaded","time":1199.800000011921}],"measures":[],"correlationId":"f770e6c248e862","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":108,"dbReadsTimeInMs":22,"dbConnsTimeInMs":30,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}