Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.3(EOL) , 10.4(EOL) , 10.5 , 10.6 , 10.7(EOL) , 10.8(EOL)
created after CONJ-948
Synchronous connectors can rely on OK_Packet/EOF_Packet server status's SERVER_STATUS_IN_TRANS flag that explicitly indicate if a transaction is currently active.
Java connector use that information to avoid issuing a rollback/commit command, skipping the command if there is no transaction.
Problem concerns only MyISAM that never set SERVER_STATUS_IN_TRANS flag. Still there is some case when there is some kind of lock : ( example from serg: )
create table t1 (a int ) engine=myisam;
insert t1 values (1);
and in another
this DROP TABLE will wait until the transaction ends.
either MyISAM should return SERVER_STATUS_IN_TRANS flag, so connector know there is really a commit to be issued.
either MyISAM doesn't set any lock. (It may be just an issue : for some metadata locks are taken on the object name , before the table is opened, before we know it's a MyISAM table.)
Either way is ok.
(Another solution would be to always issue a COMMIT/ROLLBACK statement when there is no need, but that would degrade performance dramatically for some application. For example when connections are given back to pools, pools generally issues a connection.rollback() to ensure connection state, and there is lots of application where that command would represent 25% of the commands)
{"report":{"fcp":1100.7000000476837,"ttfb":271.5,"pageVisibility":"visible","entityId":111873,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9f4f342e-5ed5-44ab-ac93-e1aa993a30c6","navigationType":0,"readyForUser":1195.7000000476837,"redirectCount":0,"resourceLoadedEnd":1255.5,"resourceLoadedStart":276.7999999523163,"resourceTiming":[{"duration":325,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":276.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":276.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":601.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":324.7999999523163,"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":277.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":277.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":602,"responseStart":0,"secureConnectionStart":0},{"duration":334.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":277.40000009536743,"connectEnd":277.40000009536743,"connectStart":277.40000009536743,"domainLookupEnd":277.40000009536743,"domainLookupStart":277.40000009536743,"fetchStart":277.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":277.40000009536743,"responseEnd":611.5999999046326,"responseStart":611.5999999046326,"secureConnectionStart":277.40000009536743},{"duration":423.10000014305115,"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":277.59999990463257,"connectEnd":277.59999990463257,"connectStart":277.59999990463257,"domainLookupEnd":277.59999990463257,"domainLookupStart":277.59999990463257,"fetchStart":277.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":277.59999990463257,"responseEnd":700.7000000476837,"responseStart":700.7000000476837,"secureConnectionStart":277.59999990463257},{"duration":426.7999999523163,"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":277.7999999523163,"connectEnd":277.7999999523163,"connectStart":277.7999999523163,"domainLookupEnd":277.7999999523163,"domainLookupStart":277.7999999523163,"fetchStart":277.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":277.7999999523163,"responseEnd":704.5999999046326,"responseStart":704.5999999046326,"secureConnectionStart":277.7999999523163},{"duration":427,"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":278,"connectEnd":278,"connectStart":278,"domainLookupEnd":278,"domainLookupStart":278,"fetchStart":278,"redirectEnd":0,"redirectStart":0,"requestStart":278,"responseEnd":705,"responseStart":705,"secureConnectionStart":278},{"duration":427.2999999523163,"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":278.2000000476837,"connectEnd":278.2000000476837,"connectStart":278.2000000476837,"domainLookupEnd":278.2000000476837,"domainLookupStart":278.2000000476837,"fetchStart":278.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":278.2000000476837,"responseEnd":705.5,"responseStart":705.5,"secureConnectionStart":278.2000000476837},{"duration":480.60000014305115,"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":278.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":278.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":758.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":427.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":278.5,"connectEnd":278.5,"connectStart":278.5,"domainLookupEnd":278.5,"domainLookupStart":278.5,"fetchStart":278.5,"redirectEnd":0,"redirectStart":0,"requestStart":278.5,"responseEnd":705.9000000953674,"responseStart":705.9000000953674,"secureConnectionStart":278.5},{"duration":480.40000009536743,"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":278.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":278.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":759,"responseStart":0,"secureConnectionStart":0},{"duration":427.5,"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":278.90000009536743,"connectEnd":278.90000009536743,"connectStart":278.90000009536743,"domainLookupEnd":278.90000009536743,"domainLookupStart":278.90000009536743,"fetchStart":278.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":278.90000009536743,"responseEnd":706.4000000953674,"responseStart":706.4000000953674,"secureConnectionStart":278.90000009536743},{"duration":798.7000000476837,"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":286.2000000476837,"connectEnd":286.2000000476837,"connectStart":286.2000000476837,"domainLookupEnd":286.2000000476837,"domainLookupStart":286.2000000476837,"fetchStart":286.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":286.2000000476837,"responseEnd":1084.9000000953674,"responseStart":1084.9000000953674,"secureConnectionStart":286.2000000476837},{"duration":968.5999999046326,"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":286.90000009536743,"connectEnd":286.90000009536743,"connectStart":286.90000009536743,"domainLookupEnd":286.90000009536743,"domainLookupStart":286.90000009536743,"fetchStart":286.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":286.90000009536743,"responseEnd":1255.5,"responseStart":1255.5,"secureConnectionStart":286.90000009536743},{"duration":315,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":770.7000000476837,"connectEnd":770.7000000476837,"connectStart":770.7000000476837,"domainLookupEnd":770.7000000476837,"domainLookupStart":770.7000000476837,"fetchStart":770.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":770.7000000476837,"responseEnd":1085.7000000476837,"responseStart":1085.7000000476837,"secureConnectionStart":770.7000000476837},{"duration":205,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1093.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1093.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1298.0999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":100,"responseStart":272,"responseEnd":287,"domLoading":275,"domInteractive":1302,"domContentLoadedEventStart":1302,"domContentLoadedEventEnd":1356,"domComplete":2091,"loadEventStart":2091,"loadEventEnd":2091,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1264.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1265.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1265.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1271.0999999046326},{"name":"activityTabFullyLoaded","time":1374.2999999523163}],"measures":[],"correlationId":"f49910a6e66c53","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":111,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
OK to push