When using validation-query and validation-query-timeout for them ("SELECT 1" and a timeout of 3), timeout exceptions occur in all queries. If the validation-query-timeout parameter (and only that one) is removed, everything works as expected.
I tried a lot of things (without DBCP, since I do not have any knowlegde about it), and could not see any difference in how setQueryTimeout/getQuerytimeout behave between ConnectorJ and MariaDB JDBC.
I guess we need a runnable self-contained repro, be it DBCP or anything else.
Vladislav Vaintroub
added a comment - I tried a lot of things (without DBCP, since I do not have any knowlegde about it), and could not see any difference in how setQueryTimeout/getQuerytimeout behave between ConnectorJ and MariaDB JDBC.
I guess we need a runnable self-contained repro, be it DBCP or anything else.
I think I fixed it now. I did not try DBCP, but playing around with timeouts revealed JVM bug in socket timeouts that were used for query timeout. So this got reimplemented again with java.util.Timer.
Vladislav Vaintroub
added a comment - I think I fixed it now. I did not try DBCP, but playing around with timeouts revealed JVM bug in socket timeouts that were used for query timeout. So this got reimplemented again with java.util.Timer.
This fix solved the timeout exceptions, however it creates a resource leak as the Timer is not being cancelled and nulled. See attached patch
George El Boustani
added a comment - This fix solved the timeout exceptions, however it creates a resource leak as the Timer is not being cancelled and nulled. See attached patch
Vladislav Vaintroub
added a comment - After reading docs for java.util.Timer - yes, you're right that there are excessive threads when using multiple timers. So ,the way to fix is it, is to use single (per-JVM) timer with multiple timerTasks , which I done in this patch :
http://bazaar.launchpad.net/~maria-captains/mariadb-java-client/trunk/revision/376
People
Vladislav Vaintroub
Rasmus Johansson (Inactive)
Votes:
0Vote for this issue
Watchers:
3Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":867.5,"ttfb":276.80000019073486,"pageVisibility":"visible","entityId":22211,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"2a49173e-3350-419e-98b1-45fb50952d5f","navigationType":0,"readyForUser":920.8000001907349,"redirectCount":0,"resourceLoadedEnd":600.2000002861023,"resourceLoadedStart":285.6000003814697,"resourceTiming":[{"duration":12.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":285.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":285.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":298.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":12.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":285.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":285.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":298.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":181.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":286.1000003814697,"connectEnd":286.1000003814697,"connectStart":286.1000003814697,"domainLookupEnd":286.1000003814697,"domainLookupStart":286.1000003814697,"fetchStart":286.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":304.1000003814697,"responseEnd":467.30000019073486,"responseStart":326.40000009536743,"secureConnectionStart":286.1000003814697},{"duration":299.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":286.80000019073486,"connectEnd":302.2000002861023,"connectStart":302.2000002861023,"domainLookupEnd":302.2000002861023,"domainLookupStart":302.2000002861023,"fetchStart":286.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":303.90000009536743,"responseEnd":586.7000002861023,"responseStart":319.80000019073486,"secureConnectionStart":302.2000002861023},{"duration":42.200000286102295,"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":287,"connectEnd":287,"connectStart":287,"domainLookupEnd":287,"domainLookupStart":287,"fetchStart":287,"redirectEnd":0,"redirectStart":0,"requestStart":304.7000002861023,"responseEnd":329.2000002861023,"responseStart":325.40000009536743,"secureConnectionStart":287},{"duration":51.299999713897705,"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":287.2000002861023,"connectEnd":287.2000002861023,"connectStart":287.2000002861023,"domainLookupEnd":287.2000002861023,"domainLookupStart":287.2000002861023,"fetchStart":287.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":305.2000002861023,"responseEnd":338.5,"responseStart":336.90000009536743,"secureConnectionStart":287.2000002861023},{"duration":41.19999980926514,"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":287.30000019073486,"connectEnd":287.30000019073486,"connectStart":287.30000019073486,"domainLookupEnd":287.30000019073486,"domainLookupStart":287.30000019073486,"fetchStart":287.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":305.5,"responseEnd":328.5,"responseStart":323.40000009536743,"secureConnectionStart":287.30000019073486},{"duration":16.200000286102295,"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":287.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":287.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":303.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":41.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":287.7000002861023,"connectEnd":287.7000002861023,"connectStart":287.7000002861023,"domainLookupEnd":287.7000002861023,"domainLookupStart":287.7000002861023,"fetchStart":287.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":305.80000019073486,"responseEnd":328.90000009536743,"responseStart":324.30000019073486,"secureConnectionStart":287.7000002861023},{"duration":17.09999990463257,"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":287.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":287.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":304.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":53.09999990463257,"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":287.90000009536743,"connectEnd":287.90000009536743,"connectStart":287.90000009536743,"domainLookupEnd":287.90000009536743,"domainLookupStart":287.90000009536743,"fetchStart":287.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":308.80000019073486,"responseEnd":341,"responseStart":329.5,"secureConnectionStart":287.90000009536743},{"duration":309.69999980926514,"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":290.30000019073486,"connectEnd":290.30000019073486,"connectStart":290.30000019073486,"domainLookupEnd":290.30000019073486,"domainLookupStart":290.30000019073486,"fetchStart":290.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":343.7000002861023,"responseEnd":600,"responseStart":595.9000000953674,"secureConnectionStart":290.30000019073486},{"duration":309.80000019073486,"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":290.40000009536743,"connectEnd":290.40000009536743,"connectStart":290.40000009536743,"domainLookupEnd":290.40000009536743,"domainLookupStart":290.40000009536743,"fetchStart":290.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":343.90000009536743,"responseEnd":600.2000002861023,"responseStart":597,"secureConnectionStart":290.40000009536743},{"duration":199.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":619.8000001907349,"connectEnd":619.8000001907349,"connectStart":619.8000001907349,"domainLookupEnd":619.8000001907349,"domainLookupStart":619.8000001907349,"fetchStart":619.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":782,"responseEnd":819.4000000953674,"responseStart":818.5,"secureConnectionStart":619.8000001907349}],"fetchStart":0,"domainLookupStart":68,"domainLookupEnd":86,"connectStart":86,"connectEnd":105,"secureConnectionStart":95,"requestStart":106,"responseStart":276,"responseEnd":290,"domLoading":280,"domInteractive":1025,"domContentLoadedEventStart":1025,"domContentLoadedEventEnd":1073,"domComplete":1617,"loadEventStart":1617,"loadEventEnd":1617,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":996},{"name":"bigPipe.sidebar-id.end","time":996.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":996.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":999.8000001907349},{"name":"activityTabFullyLoaded","time":1094.5}],"measures":[],"correlationId":"53657cd7b0a9b7","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":96,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Reaching out to user that experienced this to get more information.