Type:
Task
Status:
Resolved
Priority:
Minor
Resolution:
Fixed
Affects Version/s:
None
Fix Version/s:
None
Component/s:
None
Extract a function called createEligibleReplicas from prepDistributed() in HttpShardHandler.
This method takes a collection of all available replicas, a cluster state, onlyNrtReplicas boolean and a predicate and returns a list of eligible replicas.
This helps with readability and could be used to perform further refactoring in the future
{"report":{"fcp":3322.100000023842,"ttfb":146.10000002384186,"pageVisibility":"visible","entityId":13076463,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":16,"apdex":0.5,"journeyId":"e7490f85-2651-44c7-8383-53456fb23c77","navigationType":0,"readyForUser":3463.600000023842,"redirectCount":0,"resourceLoadedEnd":3201.399999976158,"resourceLoadedStart":164,"resourceTiming":[{"duration":730.6000000238419,"initiatorType":"link","name":"https://issues.apache.org/jira/s/b62489a2eaac59d9b8a093c1a51d034f-CDN/xd97tr/820010/13pdxe5/49fa3aa3d35a2cc689cbf274e66cc41a/_/download/contextbatch/css/_super/batch.css","startTime":164,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":894.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":730.5999999046326,"initiatorType":"link","name":"https://issues.apache.org/jira/s/56490edcf9d54e35149505f78cca6a47-CDN/xd97tr/820010/13pdxe5/72cb823bcc50211a60c1ebe830467cae/_/download/contextbatch/css/jira.browse.project,jira.view.issue,project.issue.navigator,atl.general,atl.global,jira.global,jira.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&richediton=true&slack-enabled=true","startTime":164.30000007152557,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.30000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":894.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":861.6999999284744,"initiatorType":"script","name":"https://issues.apache.org/jira/s/5263129088916436ab9aeb2417075b3f-CDN/xd97tr/820010/13pdxe5/49fa3aa3d35a2cc689cbf274e66cc41a/_/download/contextbatch/js/_super/batch.js?locale=en-UK","startTime":196.70000004768372,"connectEnd":196.70000004768372,"connectStart":196.70000004768372,"domainLookupEnd":196.70000004768372,"domainLookupStart":196.70000004768372,"fetchStart":196.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":196.70000004768372,"responseEnd":1058.3999999761581,"responseStart":1058.3999999761581,"secureConnectionStart":196.70000004768372},{"duration":1893.3999999761581,"initiatorType":"script","name":"https://issues.apache.org/jira/s/611c208bd094adb71a6f4f3e7f6fff3d-CDN/xd97tr/820010/13pdxe5/72cb823bcc50211a60c1ebe830467cae/_/download/contextbatch/js/jira.browse.project,jira.view.issue,project.issue.navigator,atl.general,atl.global,jira.global,jira.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&slack-enabled=true","startTime":202.20000004768372,"connectEnd":202.20000004768372,"connectStart":202.20000004768372,"domainLookupEnd":202.20000004768372,"domainLookupStart":202.20000004768372,"fetchStart":202.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":202.20000004768372,"responseEnd":2095.600000023842,"responseStart":2095.600000023842,"secureConnectionStart":202.20000004768372},{"duration":606.5,"initiatorType":"script","name":"https://issues.apache.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/xd97tr/820010/13pdxe5/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":202.30000007152557,"connectEnd":202.30000007152557,"connectStart":202.30000007152557,"domainLookupEnd":202.30000007152557,"domainLookupStart":202.30000007152557,"fetchStart":202.30000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":202.30000007152557,"responseEnd":808.8000000715256,"responseStart":808.8000000715256,"secureConnectionStart":202.30000007152557},{"duration":605.1000000238419,"initiatorType":"script","name":"https://issues.apache.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/xd97tr/820010/13pdxe5/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":202.5,"connectEnd":202.5,"connectStart":202.5,"domainLookupEnd":202.5,"domainLookupStart":202.5,"fetchStart":202.5,"redirectEnd":0,"redirectStart":0,"requestStart":202.5,"responseEnd":807.6000000238419,"responseStart":807.5,"secureConnectionStart":202.5},{"duration":692.1999999284744,"initiatorType":"link","name":"https://issues.apache.org/jira/s/981f587853769311cda7c3b845131a06-CDN/xd97tr/820010/13pdxe5/cb5a5495a038c0744457f25821ba9ee8/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":202.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":202.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":894.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":605.5999999046326,"initiatorType":"script","name":"https://issues.apache.org/jira/rest/api/1.0/shortcuts/820010/5840efff50357da9055d4714dc0713f/shortcuts.js?context=issuenavigation&context=issueaction","startTime":202.80000007152557,"connectEnd":202.80000007152557,"connectStart":202.80000007152557,"domainLookupEnd":202.80000007152557,"domainLookupStart":202.80000007152557,"fetchStart":202.80000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":202.80000007152557,"responseEnd":808.3999999761581,"responseStart":808.3999999761581,"secureConnectionStart":202.80000007152557},{"duration":691.6999999284744,"initiatorType":"link","name":"https://issues.apache.org/jira/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/xd97tr/820010/13pdxe5/efa42a25652b26dfd802540c024826b3/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.css?jira.create.linked.issue=true&richediton=true","startTime":203.30000007152557,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203.30000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":895,"responseStart":0,"secureConnectionStart":0},{"duration":604.6000000238419,"initiatorType":"script","name":"https://issues.apache.org/jira/s/efa8931cd5ac13ed95c56ca8a1dc1967-CDN/xd97tr/820010/13pdxe5/efa42a25652b26dfd802540c024826b3/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.js?jira.create.linked.issue=true&locale=en-UK&richediton=true","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":808.1000000238419,"responseStart":808.1000000238419,"secureConnectionStart":203.5},{"duration":1806.3999999761581,"initiatorType":"script","name":"https://issues.apache.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/xd97tr/820010/13pdxe5/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":299.5,"connectEnd":299.5,"connectStart":299.5,"domainLookupEnd":299.5,"domainLookupStart":299.5,"fetchStart":299.5,"redirectEnd":0,"redirectStart":0,"requestStart":299.5,"responseEnd":2105.899999976158,"responseStart":2105.899999976158,"secureConnectionStart":299.5},{"duration":2901.7999999523163,"initiatorType":"script","name":"https://issues.apache.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/xd97tr/820010/13pdxe5/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":299.60000002384186,"connectEnd":299.60000002384186,"connectStart":299.60000002384186,"domainLookupEnd":299.60000002384186,"domainLookupStart":299.60000002384186,"fetchStart":299.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":299.60000002384186,"responseEnd":3201.399999976158,"responseStart":3201.399999976158,"secureConnectionStart":299.60000002384186},{"duration":1169.3999999761581,"initiatorType":"xmlhttprequest","name":"https://issues.apache.org/jira/rest/webResources/1.0/resources","startTime":1477.2000000476837,"connectEnd":1477.2000000476837,"connectStart":1477.2000000476837,"domainLookupEnd":1477.2000000476837,"domainLookupStart":1477.2000000476837,"fetchStart":1477.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1477.2000000476837,"responseEnd":2646.600000023842,"responseStart":2646.600000023842,"secureConnectionStart":1477.2000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":12,"responseStart":146,"responseEnd":297,"domLoading":150,"domInteractive":3664,"domContentLoadedEventStart":3665,"domContentLoadedEventEnd":3736,"domComplete":5013,"loadEventStart":5013,"loadEventEnd":5026,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":3523.5},{"name":"bigPipe.sidebar-id.end","time":3524.3000000715256},{"name":"bigPipe.activity-panel-pipe-id.start","time":3524.399999976158},{"name":"bigPipe.activity-panel-pipe-id.end","time":3528.2000000476837},{"name":"activityTabFullyLoaded","time":3751.899999976158}],"measures":[],"correlationId":"51a26bb1cee8d8","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":84,"dbReadsTimeInMs":2,"dbConnsTimeInMs":9,"applicationHash":"ace47f9899e9ee25d7157d59aa17ab06aee30d3d","experiments":[]}}
The patch without suffixes is for master
The patch with the 6X suffix is for branch_6x