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":2255.5999999046326,"ttfb":379.7999999523163,"pageVisibility":"visible","entityId":111873,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"e76c06e0-07d9-49f9-94bf-ea72cf3169f3","navigationType":0,"readyForUser":2337.0999999046326,"redirectCount":0,"resourceLoadedEnd":2257,"resourceLoadedStart":392.69999980926514,"resourceTiming":[{"duration":713.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":392.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":392.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1106.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":1224.6000001430511,"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":392.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":392.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1617.5,"responseStart":0,"secureConnectionStart":0},{"duration":1238,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":393.19999980926514,"connectEnd":393.19999980926514,"connectStart":393.19999980926514,"domainLookupEnd":393.19999980926514,"domainLookupStart":393.19999980926514,"fetchStart":393.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":393.19999980926514,"responseEnd":1631.1999998092651,"responseStart":1631.1999998092651,"secureConnectionStart":393.19999980926514},{"duration":1373.2999999523163,"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":393.39999985694885,"connectEnd":393.39999985694885,"connectStart":393.39999985694885,"domainLookupEnd":393.39999985694885,"domainLookupStart":393.39999985694885,"fetchStart":393.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":393.39999985694885,"responseEnd":1766.6999998092651,"responseStart":1766.6999998092651,"secureConnectionStart":393.39999985694885},{"duration":1379.4000000953674,"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":393.59999990463257,"connectEnd":393.59999990463257,"connectStart":393.59999990463257,"domainLookupEnd":393.59999990463257,"domainLookupStart":393.59999990463257,"fetchStart":393.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":393.59999990463257,"responseEnd":1773,"responseStart":1773,"secureConnectionStart":393.59999990463257},{"duration":1388.5,"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":393.7999999523163,"connectEnd":393.7999999523163,"connectStart":393.7999999523163,"domainLookupEnd":393.7999999523163,"domainLookupStart":393.7999999523163,"fetchStart":393.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":393.7999999523163,"responseEnd":1782.2999999523163,"responseStart":1782.2999999523163,"secureConnectionStart":393.7999999523163},{"duration":1389,"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":393.89999985694885,"connectEnd":393.89999985694885,"connectStart":393.89999985694885,"domainLookupEnd":393.89999985694885,"domainLookupStart":393.89999985694885,"fetchStart":393.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":393.89999985694885,"responseEnd":1782.8999998569489,"responseStart":1782.8999998569489,"secureConnectionStart":393.89999985694885},{"duration":1427.2000000476837,"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":394.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":394.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1821.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":1390.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":394.19999980926514,"connectEnd":394.19999980926514,"connectStart":394.19999980926514,"domainLookupEnd":394.19999980926514,"domainLookupStart":394.19999980926514,"fetchStart":394.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":394.19999980926514,"responseEnd":1784.8999998569489,"responseStart":1784.8999998569489,"secureConnectionStart":394.19999980926514},{"duration":1427.1000001430511,"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":394.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":394.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1821.5,"responseStart":0,"secureConnectionStart":0},{"duration":1391.5999999046326,"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":394.59999990463257,"connectEnd":394.59999990463257,"connectStart":394.59999990463257,"domainLookupEnd":394.59999990463257,"domainLookupStart":394.59999990463257,"fetchStart":394.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":394.59999990463257,"responseEnd":1786.1999998092651,"responseStart":1786.1999998092651,"secureConnectionStart":394.59999990463257},{"duration":1857.6999998092651,"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":395.5,"connectEnd":395.5,"connectStart":395.5,"domainLookupEnd":395.5,"domainLookupStart":395.5,"fetchStart":395.5,"redirectEnd":0,"redirectStart":0,"requestStart":395.5,"responseEnd":2253.199999809265,"responseStart":2253.199999809265,"secureConnectionStart":395.5},{"duration":1861.5,"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":395.5,"connectEnd":395.5,"connectStart":395.5,"domainLookupEnd":395.5,"domainLookupStart":395.5,"fetchStart":395.5,"redirectEnd":0,"redirectStart":0,"requestStart":395.5,"responseEnd":2257,"responseStart":2257,"secureConnectionStart":395.5},{"duration":389.7999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1863.8999998569489,"connectEnd":1863.8999998569489,"connectStart":1863.8999998569489,"domainLookupEnd":1863.8999998569489,"domainLookupStart":1863.8999998569489,"fetchStart":1863.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":1863.8999998569489,"responseEnd":2253.699999809265,"responseStart":2253.699999809265,"secureConnectionStart":1863.8999998569489},{"duration":347.7999999523163,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2219.399999856949,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2219.399999856949,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2567.199999809265,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":204,"responseStart":380,"responseEnd":383,"domLoading":391,"domInteractive":2627,"domContentLoadedEventStart":2627,"domContentLoadedEventEnd":2690,"domComplete":3217,"loadEventStart":3217,"loadEventEnd":3217,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2581.2999999523163},{"name":"bigPipe.sidebar-id.end","time":2583.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":2583.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":2585.5999999046326},{"name":"activityTabFullyLoaded","time":2710.199999809265}],"measures":[],"correlationId":"238e79496ae4dc","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":113,"dbReadsTimeInMs":29,"dbConnsTimeInMs":38,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}