The table performance_schema.events_transactions_history_long that was imported from MySQL 5.7.28 to MariaDB Server 10.5.2 may report bogus trx_id values for InnoDB transactions:
--source include/not_embedded.inc
|
--source include/have_perfschema.inc
|
--source include/have_innodb.inc
|
|
TRUNCATE performance_schema.events_transactions_history_long;
|
|
START TRANSACTION WITH CONSISTENT SNAPSHOT;
|
COMMIT;
|
BEGIN;
|
SELECT COUNT(*)>=0 FROM mysql.innodb_index_stats LOCK IN SHARE MODE;
|
COMMIT;
|
|
SELECT state,trx_id,gtid
|
FROM performance_schema.events_transactions_history_long;
|
For the first reported row, the trx_id may not be deterministic between test runs, because it is based on the value of trx_t*, computed by the function trx_get_id_for_print() and passed to trans_register_ha() by innobase_register_trx().
Yes, it is possible that no transaction identifier has been assigned to a transaction at the time when innobase_register_trx() has been called. In this case, passing the dummy value trx->id=0 would result in a preferred outcome: the TRX_ID would be reported as NULL.
We can also observe that GTID} will be reported as a dummy value '0-0-0' instead of more appropriate NULL. I will not report or address that for now.
{"report":{"fcp":805.8000001907349,"ttfb":265.80000019073486,"pageVisibility":"visible","entityId":95951,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"e330d621-060c-48cb-ab73-b0cf2f66aa87","navigationType":0,"readyForUser":875.8000001907349,"redirectCount":0,"resourceLoadedEnd":537.8000001907349,"resourceLoadedStart":274.7000000476837,"resourceTiming":[{"duration":4.700000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":274.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":279.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":4.800000190734863,"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":275,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":279.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":145.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":275.10000014305115,"connectEnd":275.10000014305115,"connectStart":275.10000014305115,"domainLookupEnd":275.10000014305115,"domainLookupStart":275.10000014305115,"fetchStart":275.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":281.5,"responseEnd":420.80000019073486,"responseStart":320.10000014305115,"secureConnectionStart":275.10000014305115},{"duration":262.7000000476837,"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":275.10000014305115,"connectEnd":275.10000014305115,"connectStart":275.10000014305115,"domainLookupEnd":275.10000014305115,"domainLookupStart":275.10000014305115,"fetchStart":275.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":285.10000014305115,"responseEnd":537.8000001907349,"responseStart":321.7000000476837,"secureConnectionStart":275.10000014305115},{"duration":6.799999952316284,"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":275.2000000476837,"connectEnd":275.2000000476837,"connectStart":275.2000000476837,"domainLookupEnd":275.2000000476837,"domainLookupStart":275.2000000476837,"fetchStart":275.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":275.2000000476837,"responseEnd":282,"responseStart":282,"secureConnectionStart":275.2000000476837},{"duration":7.900000095367432,"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":275.40000009536743,"connectEnd":275.40000009536743,"connectStart":275.40000009536743,"domainLookupEnd":275.40000009536743,"domainLookupStart":275.40000009536743,"fetchStart":275.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":275.40000009536743,"responseEnd":283.30000019073486,"responseStart":283.30000019073486,"secureConnectionStart":275.40000009536743},{"duration":9,"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":275.40000009536743,"connectEnd":275.40000009536743,"connectStart":275.40000009536743,"domainLookupEnd":275.40000009536743,"domainLookupStart":275.40000009536743,"fetchStart":275.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":275.40000009536743,"responseEnd":284.40000009536743,"responseStart":284.40000009536743,"secureConnectionStart":275.40000009536743},{"duration":10,"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":275.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":285.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":9.899999856948853,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":275.60000014305115,"connectEnd":275.60000014305115,"connectStart":275.60000014305115,"domainLookupEnd":275.60000014305115,"domainLookupStart":275.60000014305115,"fetchStart":275.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":275.60000014305115,"responseEnd":285.5,"responseStart":285.5,"secureConnectionStart":275.60000014305115},{"duration":10.899999856948853,"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":275.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":286.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":11.399999856948853,"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":275.80000019073486,"connectEnd":275.80000019073486,"connectStart":275.80000019073486,"domainLookupEnd":275.80000019073486,"domainLookupStart":275.80000019073486,"fetchStart":275.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":275.80000019073486,"responseEnd":287.2000000476837,"responseStart":287.2000000476837,"secureConnectionStart":275.80000019073486},{"duration":190.20000004768372,"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":280,"connectEnd":280,"connectStart":280,"domainLookupEnd":280,"domainLookupStart":280,"fetchStart":280,"redirectEnd":0,"redirectStart":0,"requestStart":303.30000019073486,"responseEnd":470.2000000476837,"responseStart":465.90000009536743,"secureConnectionStart":280},{"duration":190.59999990463257,"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":280.10000014305115,"connectEnd":280.10000014305115,"connectStart":280.10000014305115,"domainLookupEnd":280.10000014305115,"domainLookupStart":280.10000014305115,"fetchStart":280.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":312.7000000476837,"responseEnd":470.7000000476837,"responseStart":467.5,"secureConnectionStart":280.10000014305115},{"duration":154.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":568.1000001430511,"connectEnd":568.1000001430511,"connectStart":568.1000001430511,"domainLookupEnd":568.1000001430511,"domainLookupStart":568.1000001430511,"fetchStart":568.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":691.7000000476837,"responseEnd":722.7000000476837,"responseStart":721.7000000476837,"secureConnectionStart":568.1000001430511}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":47,"responseStart":266,"responseEnd":280,"domLoading":270,"domInteractive":965,"domContentLoadedEventStart":965,"domContentLoadedEventEnd":1005,"domComplete":1960,"loadEventStart":1960,"loadEventEnd":1962,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":945.3000001907349},{"name":"bigPipe.sidebar-id.end","time":946.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":946.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":948.7000000476837},{"name":"activityTabFullyLoaded","time":1014.4000000953674}],"measures":[],"correlationId":"c197ba76e7ecb0","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":117,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}