The Spider storage engine provides two ways to specify remote data nodes. One is by the COMMENT clause and the other is by the CONNECTION clause (see below links for existing options). However, writing every specification in a single connection string is not very user-friendly.
We introduce new engine-defined attributes to specify remote data nodes. The engine attributes do not cover all the existing DSN parameters because most of the parameters need not be specified at the table level. So, we first introduce engine-defined attributes that correspond to essential parameters. If users complain that a parameter they need is missing, we can introduce it later.
I believe that the following attributes are enough:
engine-defined attribute
corresponding DNS parameter
REMOTE_SERVER
srv
REMOTE_DATABASE
database
REMOTE_TABLE
tbl
Writing a raw password in the COMMENT or engine-defined option is not preferable from the viewpoint of security because the password might be logged in slow log or general log. Therefore, we should encourage the use of the CREATE SERVER statement, and not introduce attributes such as REMOTE_USER and REMOTE_PASSWORD.
SSL-related parameters might be essential but I believe that they should be covered by CREATE SERVER statement rather than per-table or per-partition attributes.
If, for example, both COMMENT='table "t1"' and REMOTE_TABLE="t2" are specified for a single table or a single partition, the Spider returns an error.
Nayuta Yanagisawa (Inactive)
added a comment - Please review. The patch depends on one for MDEV-5271 .
https://github.com/MariaDB/server/commit/ae9e72ca06d95947e44ef0801c94fbac6882b38e
Nayuta Yanagisawa (Inactive)
added a comment - holyfoot Thank you for your review. I fixed the patch according to your comments. Please check it again. https://github.com/MariaDB/server/commit/384f9d34ff29fe81de234c48516ccf257b9b10f5
Confirming this comment, it is interesting to note that Spider already supported MDEV-5271-like functionality (i.e. per partition engine-defined attributes) using the comment field. iow, in the comment field one could specify per-partition options even before MDEV-5271 was implemented.
Roel Van de Paar
added a comment - Confirming this comment , it is interesting to note that Spider already supported MDEV-5271 -like functionality (i.e. per partition engine-defined attributes) using the comment field. iow, in the comment field one could specify per-partition options even before MDEV-5271 was implemented.
As the COMMENT field functionality was not changed in any way, and as any new SQL syntax is 10.8-only, I did not do any upgrade testing for this issue. nayuta-yanagisawa and serg If you think any should be done, please let me know your thoughts.
Roel Van de Paar
added a comment - As the COMMENT field functionality was not changed in any way, and as any new SQL syntax is 10.8-only, I did not do any upgrade testing for this issue. nayuta-yanagisawa and serg If you think any should be done, please let me know your thoughts.
OK to push. However, I am still running a generic crash test against the feature branch (including the MDEV-27521 patch). Results from that will be available around next week Wednesday.
Roel Van de Paar
added a comment - OK to push. However, I am still running a generic crash test against the feature branch (including the MDEV-27521 patch). Results from that will be available around next week Wednesday.
From the same run, logged MDEV-27575 SIGSEGV in intern_plugin_lock on SHUTDOWN when setting Spider as default storage engine (temporary or global)
Roel Van de Paar
added a comment - - edited From the same run, logged MDEV-27575 SIGSEGV in intern_plugin_lock on SHUTDOWN when setting Spider as default storage engine (temporary or global)
Roel Van de Paar
added a comment - - edited Logged MDEV-27676 Assertion `str.alloced_length() >= str.length() + data_len' failed in spider_string::q_append
Hi greenman, how much work do you think is needed to document the nice feature introduced in this ticket in the KB?
Yuchen Pei
added a comment - - edited Hi greenman , how much work do you think is needed to document the nice feature introduced in this ticket in the KB?
Yuchen Pei
added a comment - > Hi Ian Gilfillan, how much work do you think is needed to document the nice feature introduced in this ticket in the KB?
I added to the kb two weeks ago: https://mariadb.com/kb/en/spider-storage-engine-overview/#basic-usage
People
Nayuta Yanagisawa (Inactive)
Geoff Montee (Inactive)
Votes:
0Vote for this issue
Watchers:
10Start 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":1413,"ttfb":704.8000001907349,"pageVisibility":"visible","entityId":86852,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a0c9b7dd-5c68-494f-95b9-cee62de5ef8b","navigationType":0,"readyForUser":1507.4000005722046,"redirectCount":0,"resourceLoadedEnd":1552.6999998092651,"resourceLoadedStart":710.8000001907349,"resourceTiming":[{"duration":94.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":710.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":710.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":805.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":95,"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":711,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":711,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":806,"responseStart":0,"secureConnectionStart":0},{"duration":158.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":711.1999998092651,"connectEnd":711.1999998092651,"connectStart":711.1999998092651,"domainLookupEnd":711.1999998092651,"domainLookupStart":711.1999998092651,"fetchStart":711.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":711.1999998092651,"responseEnd":869.8000001907349,"responseStart":869.8000001907349,"secureConnectionStart":711.1999998092651},{"duration":228.5,"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":711.5,"connectEnd":711.5,"connectStart":711.5,"domainLookupEnd":711.5,"domainLookupStart":711.5,"fetchStart":711.5,"redirectEnd":0,"redirectStart":0,"requestStart":711.5,"responseEnd":940,"responseStart":940,"secureConnectionStart":711.5},{"duration":232.10000038146973,"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":711.6999998092651,"connectEnd":711.6999998092651,"connectStart":711.6999998092651,"domainLookupEnd":711.6999998092651,"domainLookupStart":711.6999998092651,"fetchStart":711.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":711.6999998092651,"responseEnd":943.8000001907349,"responseStart":943.8000001907349,"secureConnectionStart":711.6999998092651},{"duration":232.4000005722046,"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":712,"connectEnd":712,"connectStart":712,"domainLookupEnd":712,"domainLookupStart":712,"fetchStart":712,"redirectEnd":0,"redirectStart":0,"requestStart":712,"responseEnd":944.4000005722046,"responseStart":944.4000005722046,"secureConnectionStart":712},{"duration":233,"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":712.1999998092651,"connectEnd":712.1999998092651,"connectStart":712.1999998092651,"domainLookupEnd":712.1999998092651,"domainLookupStart":712.1999998092651,"fetchStart":712.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":712.1999998092651,"responseEnd":945.1999998092651,"responseStart":945.1999998092651,"secureConnectionStart":712.1999998092651},{"duration":305.79999923706055,"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":712.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":712.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1018.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":233.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":712.6000003814697,"connectEnd":712.6000003814697,"connectStart":712.6000003814697,"domainLookupEnd":712.6000003814697,"domainLookupStart":712.6000003814697,"fetchStart":712.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":712.6000003814697,"responseEnd":945.6999998092651,"responseStart":945.6999998092651,"secureConnectionStart":712.6000003814697},{"duration":305.6000003814697,"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":712.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":712.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1018.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":233.39999961853027,"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":712.9000005722046,"connectEnd":712.9000005722046,"connectStart":712.9000005722046,"domainLookupEnd":712.9000005722046,"domainLookupStart":712.9000005722046,"fetchStart":712.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":712.9000005722046,"responseEnd":946.3000001907349,"responseStart":946.3000001907349,"secureConnectionStart":712.9000005722046},{"duration":492.8999996185303,"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":719.3000001907349,"connectEnd":719.3000001907349,"connectStart":719.3000001907349,"domainLookupEnd":719.3000001907349,"domainLookupStart":719.3000001907349,"fetchStart":719.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":719.3000001907349,"responseEnd":1212.1999998092651,"responseStart":1212.1999998092651,"secureConnectionStart":719.3000001907349},{"duration":672.8999996185303,"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":726.6000003814697,"connectEnd":726.6000003814697,"connectStart":726.6000003814697,"domainLookupEnd":726.6000003814697,"domainLookupStart":726.6000003814697,"fetchStart":726.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":726.6000003814697,"responseEnd":1399.5,"responseStart":1399.4000005722046,"secureConnectionStart":726.6000003814697},{"duration":182.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1030.6999998092651,"connectEnd":1030.6999998092651,"connectStart":1030.6999998092651,"domainLookupEnd":1030.6999998092651,"domainLookupStart":1030.6999998092651,"fetchStart":1030.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1030.6999998092651,"responseEnd":1213,"responseStart":1213,"secureConnectionStart":1030.6999998092651},{"duration":98.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":1305.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1305.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1404.5,"responseStart":0,"secureConnectionStart":0},{"duration":235.89999961853027,"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","startTime":1306.6000003814697,"connectEnd":1306.6000003814697,"connectStart":1306.6000003814697,"domainLookupEnd":1306.6000003814697,"domainLookupStart":1306.6000003814697,"fetchStart":1306.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1306.6000003814697,"responseEnd":1542.5,"responseStart":1542.5,"secureConnectionStart":1306.6000003814697},{"duration":182.5999994277954,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1403.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1403.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1586.5,"responseStart":0,"secureConnectionStart":0},{"duration":245.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":1307,"connectEnd":1307,"connectStart":1307,"domainLookupEnd":1307,"domainLookupStart":1307,"fetchStart":1307,"redirectEnd":0,"redirectStart":0,"requestStart":1307,"responseEnd":1552.6999998092651,"responseStart":1552.6999998092651,"secureConnectionStart":1307}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":494,"responseStart":705,"responseEnd":726,"domLoading":709,"domInteractive":1600,"domContentLoadedEventStart":1600,"domContentLoadedEventEnd":1667,"domComplete":1953,"loadEventStart":1953,"loadEventEnd":1954,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1562.3000001907349},{"name":"bigPipe.sidebar-id.end","time":1563.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1563.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1566.3000001907349},{"name":"activityTabFullyLoaded","time":1695.6000003814697}],"measures":[],"correlationId":"35cd933d50dc87","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":142,"dbReadsTimeInMs":30,"dbConnsTimeInMs":40,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Please review. The patch depends on one for
MDEV-5271.https://github.com/MariaDB/server/commit/ae9e72ca06d95947e44ef0801c94fbac6882b38e