Type:
Bug
Priority:
Blocker
Resolution:
Unresolved
Affects Version/s:
3.5.1
Fix Version/s:
None
Component/s:
None
Environment:
Test container docker
When using stored procedures, if one batch fails (e.g., due to a primary key or unique key violation), all subsequent batches in the same session also fail, even when there are no issues with the following batches.
The stored procedure is essentially an Insert operation.
Steps Taken:
In the catch block, I ensure to:
Call connection.rollback(); to roll back the current transaction.
Call preparedStatement.clearBatch(); to clear any pending batches.
These steps work as expected for regular CRUD operations but have no effect when the batch contains stored procedure calls.
There are no comments yet on this issue.
{"report":{"fcp":757.2000000476837,"ttfb":178.20000004768372,"pageVisibility":"visible","entityId":132568,"key":"jira.project.issue.nav-detail","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"16081be2-9129-40ca-b170-f9b4784a7e0e","navigationType":0,"readyForUser":1970.2999999523163,"redirectCount":0,"resourceLoadedEnd":889.7999999523163,"resourceLoadedStart":187.70000004768372,"resourceTiming":[{"duration":28.399999856948853,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":187.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":187.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":216.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":28.59999990463257,"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":188,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":188,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":216.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":80.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":188.20000004768372,"connectEnd":188.20000004768372,"connectStart":188.20000004768372,"domainLookupEnd":188.20000004768372,"domainLookupStart":188.20000004768372,"fetchStart":188.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":188.20000004768372,"responseEnd":269,"responseStart":269,"secureConnectionStart":188.20000004768372},{"duration":163.79999995231628,"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":188.70000004768372,"connectEnd":188.70000004768372,"connectStart":188.70000004768372,"domainLookupEnd":188.70000004768372,"domainLookupStart":188.70000004768372,"fetchStart":188.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":188.70000004768372,"responseEnd":352.5,"responseStart":352.5,"secureConnectionStart":188.70000004768372},{"duration":82.09999990463257,"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":189,"connectEnd":189,"connectStart":189,"domainLookupEnd":189,"domainLookupStart":189,"fetchStart":189,"redirectEnd":0,"redirectStart":0,"requestStart":189,"responseEnd":271.09999990463257,"responseStart":271.09999990463257,"secureConnectionStart":189},{"duration":82.40000009536743,"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":189.29999995231628,"connectEnd":189.29999995231628,"connectStart":189.29999995231628,"domainLookupEnd":189.29999995231628,"domainLookupStart":189.29999995231628,"fetchStart":189.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":189.29999995231628,"responseEnd":271.7000000476837,"responseStart":271.7000000476837,"secureConnectionStart":189.29999995231628},{"duration":82.70000004768372,"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":189.59999990463257,"connectEnd":189.59999990463257,"connectStart":189.59999990463257,"domainLookupEnd":189.59999990463257,"domainLookupStart":189.59999990463257,"fetchStart":189.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":189.59999990463257,"responseEnd":272.2999999523163,"responseStart":272.2999999523163,"secureConnectionStart":189.59999990463257},{"duration":82.69999980926514,"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":189.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":189.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":272.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":82.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":189.89999985694885,"connectEnd":189.89999985694885,"connectStart":189.89999985694885,"domainLookupEnd":189.89999985694885,"domainLookupStart":189.89999985694885,"fetchStart":189.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":189.89999985694885,"responseEnd":272.7999999523163,"responseStart":272.7999999523163,"secureConnectionStart":189.89999985694885},{"duration":209,"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":202.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":202.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":411.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":153.29999995231628,"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":203.09999990463257,"connectEnd":203.09999990463257,"connectStart":203.09999990463257,"domainLookupEnd":203.09999990463257,"domainLookupStart":203.09999990463257,"fetchStart":203.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":203.09999990463257,"responseEnd":356.39999985694885,"responseStart":356.39999985694885,"secureConnectionStart":203.09999990463257},{"duration":153.5,"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":203.5,"connectEnd":203.5,"connectStart":203.5,"domainLookupEnd":203.5,"domainLookupStart":203.5,"fetchStart":203.5,"redirectEnd":0,"redirectStart":0,"requestStart":203.5,"responseEnd":357,"responseStart":357,"secureConnectionStart":203.5},{"duration":366.19999980926514,"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":203.70000004768372,"connectEnd":203.70000004768372,"connectStart":203.70000004768372,"domainLookupEnd":203.70000004768372,"domainLookupStart":203.70000004768372,"fetchStart":203.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":203.70000004768372,"responseEnd":569.8999998569489,"responseStart":569.8999998569489,"secureConnectionStart":203.70000004768372},{"duration":148.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":421.7999999523163,"connectEnd":421.7999999523163,"connectStart":421.7999999523163,"domainLookupEnd":421.7999999523163,"domainLookupStart":421.7999999523163,"fetchStart":421.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":421.7999999523163,"responseEnd":570.2000000476837,"responseStart":570.2000000476837,"secureConnectionStart":421.7999999523163},{"duration":205.79999995231628,"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":684,"connectEnd":684,"connectStart":684,"domainLookupEnd":684,"domainLookupStart":684,"fetchStart":684,"redirectEnd":0,"redirectStart":0,"requestStart":684,"responseEnd":889.7999999523163,"responseStart":889.7000000476837,"secureConnectionStart":684},{"duration":378.69999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":744.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":744.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1122.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":835.7999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/orderbycomponent/latest/orderByOptions/primary","startTime":861.7000000476837,"connectEnd":861.7000000476837,"connectStart":861.7000000476837,"domainLookupEnd":861.7000000476837,"domainLookupStart":861.7000000476837,"fetchStart":861.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1657,"responseEnd":1697.5,"responseStart":1696.7000000476837,"secureConnectionStart":861.7000000476837},{"duration":803.2000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":972.5999999046326,"connectEnd":972.5999999046326,"connectStart":972.5999999046326,"domainLookupEnd":972.5999999046326,"domainLookupStart":972.5999999046326,"fetchStart":972.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":972.5999999046326,"responseEnd":1775.7999999523163,"responseStart":1775.7000000476837,"secureConnectionStart":972.5999999046326},{"duration":825.6000001430511,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/menu/latest/appswitcher?_=1741177610514","startTime":1015.8999998569489,"connectEnd":1799,"connectStart":1799,"domainLookupEnd":1799,"domainLookupStart":1799,"fetchStart":1015.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":1799.5,"responseEnd":1841.5,"responseStart":1840.3999998569489,"secureConnectionStart":1799},{"duration":902.8999998569489,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/secure/AjaxIssueAction!default.jspa?issueKey=CONJ-1230&decorator=none&prefetch=false&shouldUpdateCurrentProject=false&loadFields=false&_=1741177610515","startTime":1040.7000000476837,"connectEnd":1040.7000000476837,"connectStart":1040.7000000476837,"domainLookupEnd":1040.7000000476837,"domainLookupStart":1040.7000000476837,"fetchStart":1040.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1799.7000000476837,"responseEnd":1943.5999999046326,"responseStart":1942.7000000476837,"secureConnectionStart":1040.7000000476837}],"fetchStart":0,"domainLookupStart":27,"domainLookupEnd":40,"connectStart":40,"connectEnd":62,"secureConnectionStart":50,"requestStart":62,"responseStart":178,"responseEnd":203,"domLoading":182,"domInteractive":977,"domContentLoadedEventStart":977,"domContentLoadedEventEnd":1034,"domComplete":1731,"loadEventStart":1731,"loadEventEnd":1731,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":935.2000000476837},{"name":"bigPipe.sidebar-id.end","time":935.8999998569489},{"name":"activityTabFullyLoaded","time":1963.2999999523163}],"measures":[],"correlationId":"201a9c0d539d3c","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":69,"dbReadsTimeInMs":0,"dbConnsTimeInMs":7,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}