Refactoring and cleaning up spider_get_share() before fixing the
bug. The refactoring is rather faithful and straightforward, with
logical changes made in a separate commit below.
A bit of logical change on top of the refactoring for ease of
review. Will probably squash with the refactoring after the review. It
would be good to backport the squashed refactoring to older versions
too.
This is the commit that fixes the bug in the present ticket.
The other commits in the same branch like f3353ca474d, 2544cace482
are irrelevant as they are either offhand fixes or have already been
pushed for other tickets.
Yuchen Pei
added a comment - - edited Hi holyfoot , can you take a look at my patches for this ticket? In order, they are:
> 9309d0c9cd2 MDEV-30265 Document some sts related functions in spider.
The only reason this commit is not squashed into the next one is
because it is purely a documentation change.
> 425722e8f08 MDEV-29676 refactored and documented spider_get_share() and friends
Refactoring and cleaning up spider_get_share() before fixing the
bug. The refactoring is rather faithful and straightforward, with
logical changes made in a separate commit below.
> eb03f927824 MDEV-29676 Some changes in behaviour w.r.t. spider sts crd
A bit of logical change on top of the refactoring for ease of
review. Will probably squash with the refactoring after the review. It
would be good to backport the squashed refactoring to older versions
too.
> ede6198cf71 MDEV-29676 adding lock wait timeout to get_sts and crd
This is the commit that fixes the bug in the present ticket.
The other commits in the same branch like f3353ca474d, 2544cace482
are irrelevant as they are either offhand fixes or have already been
pushed for other tickets.
The development of this issue has been based on bb-11.0-midenok-MDEV-25292 which is in turn based on 11.0, and the fix can definitely benefit 11.0. Therefore I add 11.0 as a fixversion for free. I will run tests on both 11.0 and 11.1 before pushing.
I also add 11.2 because it is the latest development version.
Yuchen Pei
added a comment - - edited The development of this issue has been based on bb-11.0-midenok- MDEV-25292 which is in turn based on 11.0, and the fix can definitely benefit 11.0. Therefore I add 11.0 as a fixversion for free. I will run tests on both 11.0 and 11.1 before pushing.
I also add 11.2 because it is the latest development version.
Yuchen Pei
added a comment - - edited Thanks for the review holyfoot .
I have rebased the patches on 11.0 (instead of bb-11.0-midenok- MDEV-25292 ) with the test disabled (see MDEV-31138 ). I will push to 11.0 once I have an answer on whether / how to push the post-merge fixup for MDEV-29644 https://github.com/MariaDB/server/commit/e724017debb
Pushed to 11.0. Also tested on 11.1 (but without rebasing on an MDEV-25292 commit because there is no such commit based on 11.1)
Yuchen Pei
added a comment - Pushed to 11.0. Also tested on 11.1 (but without rebasing on an MDEV-25292 commit because there is no such commit based on 11.1)
People
Yuchen Pei
Roel Van de Paar
Votes:
0Vote for this issue
Watchers:
8Start 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":1552.2000007629395,"ttfb":367.1000003814697,"pageVisibility":"visible","entityId":115133,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"e75c95bb-a67f-44e0-94bf-6d280881a65d","navigationType":0,"readyForUser":1650.7000007629395,"redirectCount":0,"resourceLoadedEnd":1227.4000005722046,"resourceLoadedStart":381.80000019073486,"resourceTiming":[{"duration":271.6000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":381.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":381.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":653.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":271.30000019073486,"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":382.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":382.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":653.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":703,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":382.70000076293945,"connectEnd":382.70000076293945,"connectStart":382.70000076293945,"domainLookupEnd":382.70000076293945,"domainLookupStart":382.70000076293945,"fetchStart":382.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":676.7000007629395,"responseEnd":1085.7000007629395,"responseStart":725,"secureConnectionStart":382.70000076293945},{"duration":844.6000003814697,"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":382.80000019073486,"connectEnd":382.80000019073486,"connectStart":382.80000019073486,"domainLookupEnd":382.80000019073486,"domainLookupStart":382.80000019073486,"fetchStart":382.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":677,"responseEnd":1227.4000005722046,"responseStart":723.3000001907349,"secureConnectionStart":382.80000019073486},{"duration":350,"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":383.1000003814697,"connectEnd":383.1000003814697,"connectStart":383.1000003814697,"domainLookupEnd":383.1000003814697,"domainLookupStart":383.1000003814697,"fetchStart":383.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":677.1000003814697,"responseEnd":733.1000003814697,"responseStart":730.9000005722046,"secureConnectionStart":383.1000003814697},{"duration":349.19999980926514,"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":383.30000019073486,"connectEnd":383.30000019073486,"connectStart":383.30000019073486,"domainLookupEnd":383.30000019073486,"domainLookupStart":383.30000019073486,"fetchStart":383.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":677.2000007629395,"responseEnd":732.5,"responseStart":730,"secureConnectionStart":383.30000019073486},{"duration":354.5,"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":383.4000005722046,"connectEnd":383.4000005722046,"connectStart":383.4000005722046,"domainLookupEnd":383.4000005722046,"domainLookupStart":383.4000005722046,"fetchStart":383.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":677.4000005722046,"responseEnd":737.9000005722046,"responseStart":735.7000007629395,"secureConnectionStart":383.4000005722046},{"duration":289.80000019073486,"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":383.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":383.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":673.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":355.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":383.80000019073486,"connectEnd":383.80000019073486,"connectStart":383.80000019073486,"domainLookupEnd":383.80000019073486,"domainLookupStart":383.80000019073486,"fetchStart":383.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":677.6000003814697,"responseEnd":739.6000003814697,"responseStart":737,"secureConnectionStart":383.80000019073486},{"duration":291.30000019073486,"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":384,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":384,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":675.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":357.1000003814697,"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":384.1000003814697,"connectEnd":384.1000003814697,"connectStart":384.1000003814697,"domainLookupEnd":384.1000003814697,"domainLookupStart":384.1000003814697,"fetchStart":384.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":677.8000001907349,"responseEnd":741.2000007629395,"responseStart":738.1000003814697,"secureConnectionStart":384.1000003814697},{"duration":828,"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":393,"connectEnd":393,"connectStart":393,"domainLookupEnd":393,"domainLookupStart":393,"fetchStart":393,"redirectEnd":0,"redirectStart":0,"requestStart":850.5,"responseEnd":1221,"responseStart":1212.6000003814697,"secureConnectionStart":393},{"duration":830.4000005722046,"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":393,"connectEnd":393,"connectStart":393,"domainLookupEnd":393,"domainLookupStart":393,"fetchStart":393,"redirectEnd":0,"redirectStart":0,"requestStart":1122.8000001907349,"responseEnd":1223.4000005722046,"responseStart":1219.5,"secureConnectionStart":393},{"duration":110.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1227.4000005722046,"connectEnd":1227.4000005722046,"connectStart":1227.4000005722046,"domainLookupEnd":1227.4000005722046,"domainLookupStart":1227.4000005722046,"fetchStart":1227.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1305.6000003814697,"responseEnd":1338.1000003814697,"responseStart":1336.8000001907349,"secureConnectionStart":1227.4000005722046},{"duration":272.19999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1472.6000003814697,"connectEnd":1472.6000003814697,"connectStart":1472.6000003814697,"domainLookupEnd":1472.6000003814697,"domainLookupStart":1472.6000003814697,"fetchStart":1472.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1712.3000001907349,"responseEnd":1744.8000001907349,"responseStart":1743.8000001907349,"secureConnectionStart":1472.6000003814697}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":129,"responseStart":367,"responseEnd":391,"domLoading":371,"domInteractive":1848,"domContentLoadedEventStart":1848,"domContentLoadedEventEnd":1917,"domComplete":2768,"loadEventStart":2768,"loadEventEnd":2769,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1818.4000005722046},{"name":"bigPipe.sidebar-id.end","time":1819.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1819.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1821.3000001907349},{"name":"activityTabFullyLoaded","time":1936.7000007629395}],"measures":[],"correlationId":"2cb4be868b7d39","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":119,"dbReadsTimeInMs":20,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Hi holyfoot, can you take a look at my patches for this ticket? In order, they are:
> 9309d0c9cd2 MDEV-30265 Document some sts related functions in spider.
The only reason this commit is not squashed into the next one is
because it is purely a documentation change.
> 425722e8f08
MDEV-29676refactored and documented spider_get_share() and friendsRefactoring and cleaning up spider_get_share() before fixing the
bug. The refactoring is rather faithful and straightforward, with
logical changes made in a separate commit below.
> eb03f927824
MDEV-29676Some changes in behaviour w.r.t. spider sts crdA bit of logical change on top of the refactoring for ease of
review. Will probably squash with the refactoring after the review. It
would be good to backport the squashed refactoring to older versions
too.
> ede6198cf71
MDEV-29676adding lock wait timeout to get_sts and crdThis is the commit that fixes the bug in the present ticket.
The other commits in the same branch like f3353ca474d, 2544cace482
are irrelevant as they are either offhand fixes or have already been
pushed for other tickets.