Type:
Improvement
Status:
Closed
Priority:
Trivial
Resolution:
Fixed
Affects Version/s:
None
Component/s:
None
The busy loop can be refactor by select timeout.
for {
mgr.cleanOrphanPlaceholders()
for i := 0; i < 50; i++ {
select {
case <-mgr.stopChan:
mgr.setRunning(false)
log.Logger().Info("PlaceholderManager has been stopped" )
return
default :
time.Sleep(100 * time.Millisecond)
}
}
}
No work has yet been logged on this issue.
{"report":{"fcp":1560.6000000238419,"ttfb":145.70000004768372,"pageVisibility":"visible","entityId":13396045,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":16,"apdex":0.5,"journeyId":"5f1e3ff3-0dc5-4b14-b41f-5a8e7fed260f","navigationType":0,"readyForUser":1682.800000011921,"redirectCount":0,"resourceLoadedEnd":690.4000000357628,"resourceLoadedStart":183.10000002384186,"resourceTiming":[{"duration":48.60000002384186,"initiatorType":"link","name":"https://issues-test.apache.org/jira/s/b62489a2eaac59d9b8a093c1a51d034f-CDN/xd97tr/820010/13pdxe5/49fa3aa3d35a2cc689cbf274e66cc41a/_/download/contextbatch/css/_super/batch.css","startTime":183.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":183.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":231.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":52.59999996423721,"initiatorType":"link","name":"https://issues-test.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":183.4000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":183.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":236,"responseStart":0,"secureConnectionStart":0},{"duration":253.69999998807907,"initiatorType":"script","name":"https://issues-test.apache.org/jira/s/5263129088916436ab9aeb2417075b3f-CDN/xd97tr/820010/13pdxe5/49fa3aa3d35a2cc689cbf274e66cc41a/_/download/contextbatch/js/_super/batch.js?locale=en-UK","startTime":183.60000002384186,"connectEnd":269.10000002384186,"connectStart":242.70000004768372,"domainLookupEnd":242.70000004768372,"domainLookupStart":242.70000004768372,"fetchStart":183.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":270.10000002384186,"responseEnd":437.30000001192093,"responseStart":311.2000000476837,"secureConnectionStart":255.4000000357628},{"duration":506.69999998807907,"initiatorType":"script","name":"https://issues-test.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":183.70000004768372,"connectEnd":183.70000004768372,"connectStart":183.70000004768372,"domainLookupEnd":183.70000004768372,"domainLookupStart":183.70000004768372,"fetchStart":183.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":243.5,"responseEnd":690.4000000357628,"responseStart":268.30000001192093,"secureConnectionStart":183.70000004768372},{"duration":103.19999998807907,"initiatorType":"script","name":"https://issues-test.apache.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/xd97tr/820010/13pdxe5/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":183.9000000357628,"connectEnd":269.30000001192093,"connectStart":242.60000002384186,"domainLookupEnd":242.60000002384186,"domainLookupStart":242.60000002384186,"fetchStart":183.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":270.2000000476837,"responseEnd":287.10000002384186,"responseStart":285.30000001192093,"secureConnectionStart":255.10000002384186},{"duration":103.30000001192093,"initiatorType":"script","name":"https://issues-test.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":184.10000002384186,"connectEnd":269.80000001192093,"connectStart":243.10000002384186,"domainLookupEnd":243.10000002384186,"domainLookupStart":243.10000002384186,"fetchStart":184.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":270.30000001192093,"responseEnd":287.4000000357628,"responseStart":284.30000001192093,"secureConnectionStart":255.60000002384186},{"duration":59.40000003576279,"initiatorType":"link","name":"https://issues-test.apache.org/jira/s/981f587853769311cda7c3b845131a06-CDN/xd97tr/820010/13pdxe5/cb5a5495a038c0744457f25821ba9ee8/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":184.30000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":184.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":243.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":103.30000001192093,"initiatorType":"script","name":"https://issues-test.apache.org/jira/rest/api/1.0/shortcuts/820010/cbe16f38f7505e5e6265f404cabf9a39/shortcuts.js?context=issuenavigation&context=issueaction","startTime":184.4000000357628,"connectEnd":269.9000000357628,"connectStart":243.5,"domainLookupEnd":243.5,"domainLookupStart":243.5,"fetchStart":184.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":270.30000001192093,"responseEnd":287.7000000476837,"responseStart":286.30000001192093,"secureConnectionStart":256},{"duration":59.30000001192093,"initiatorType":"link","name":"https://issues-test.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":184.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":184.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":243.80000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":127.40000003576279,"initiatorType":"script","name":"https://issues-test.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":184.80000001192093,"connectEnd":274.9000000357628,"connectStart":245.10000002384186,"domainLookupEnd":245.10000002384186,"domainLookupStart":245.10000002384186,"fetchStart":184.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":274.9000000357628,"responseEnd":312.2000000476837,"responseStart":310.30000001192093,"secureConnectionStart":257.80000001192093},{"duration":287.30000001192093,"initiatorType":"script","name":"https://issues-test.apache.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/xd97tr/820010/13pdxe5/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":185.60000002384186,"connectEnd":185.60000002384186,"connectStart":185.60000002384186,"domainLookupEnd":185.60000002384186,"domainLookupStart":185.60000002384186,"fetchStart":185.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":454.30000001192093,"responseEnd":472.9000000357628,"responseStart":472,"secureConnectionStart":185.60000002384186},{"duration":472.0999999642372,"initiatorType":"script","name":"https://issues-test.apache.org/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/xd97tr/820010/13pdxe5/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":185.70000004768372,"connectEnd":185.70000004768372,"connectStart":185.70000004768372,"domainLookupEnd":185.70000004768372,"domainLookupStart":185.70000004768372,"fetchStart":185.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":642.7000000476837,"responseEnd":657.8000000119209,"responseStart":657,"secureConnectionStart":185.70000004768372},{"duration":62.80000001192093,"initiatorType":"xmlhttprequest","name":"https://issues-test.apache.org/jira/rest/webResources/1.0/resources","startTime":742.8000000119209,"connectEnd":742.8000000119209,"connectStart":742.8000000119209,"domainLookupEnd":742.8000000119209,"domainLookupStart":742.8000000119209,"fetchStart":742.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":761.7000000476837,"responseEnd":805.6000000238419,"responseStart":805,"secureConnectionStart":742.8000000119209}],"fetchStart":0,"domainLookupStart":11,"domainLookupEnd":46,"connectStart":46,"connectEnd":73,"secureConnectionStart":58,"requestStart":73,"responseStart":145,"responseEnd":179,"domLoading":181,"domInteractive":1753,"domContentLoadedEventStart":1753,"domContentLoadedEventEnd":1811,"domComplete":2504,"loadEventStart":2504,"loadEventEnd":2507,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1736.9000000357628},{"name":"bigPipe.sidebar-id.end","time":1737.800000011921},{"name":"bigPipe.activity-panel-pipe-id.start","time":1737.9000000357628},{"name":"bigPipe.activity-panel-pipe-id.end","time":1738.5},{"name":"activityTabFullyLoaded","time":1833}],"measures":[],"correlationId":"670ce5c35fca95","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":70,"dbReadsTimeInMs":3,"dbConnsTimeInMs":9,"applicationHash":"ace47f9899e9ee25d7157d59aa17ab06aee30d3d","experiments":[]}}