-
Type:
Bug
-
Status:
Done
-
Priority:
High
-
Resolution:
Done
-
Affects Version/s:
None
-
-
-
Company:
All Clients/Multiple Clients
-
Sprint:
DMS - Gap Fall & Win Sprint 3
Userdid : dmsuserid4cmp1
AccDid : A7F0PT78MTMZ470WBBT
Error is received for Send Bulk API
PFA
{"report":{"apdex":1,"isInitial":true,"journeyId":"a989a36a-0cbf-453f-ab55-e6c039768789","key":"jira.project.issue.view-issue","navigationType":0,"readyForUser":747.8999999985099,"redirectCount":0,"resourceLoadedEnd":703.8999999985099,"resourceLoadedStart":172.39999999850988,"resourceTiming":[{"duration":114.5,"initiatorType":"link","name":"https://jira.workterra.net/s/3003653444a1e1a85555cab7dcfb3a21-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/css/_super/batch.css","startTime":172.39999999850988,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172.39999999850988,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":286.8999999985099,"responseStart":0,"secureConnectionStart":0},{"duration":114.40000000223517,"initiatorType":"link","name":"https://jira.workterra.net/s/dd6a0911920485696ac20493290df627-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/3abe50d469404b639745df44b51476b6/_/download/contextbatch/css/jira.browse.project,jira.view.issue,project.issue.navigator,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&richediton=true","startTime":172.59999999776483,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172.59999999776483,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287,"responseStart":0,"secureConnectionStart":0},{"duration":114.30000000074506,"initiatorType":"link","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/8.5.0/_/download/batch/com.atlassian.auiplugin:split_aui.pattern.label/com.atlassian.auiplugin:split_aui.pattern.label.css","startTime":172.69999999925494,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172.69999999925494,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287,"responseStart":0,"secureConnectionStart":0},{"duration":114.30000000074506,"initiatorType":"link","name":"https://jira.workterra.net/s/bd548f27bbf8f278bd83b60dd3284ed8-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:global-static-adgs/jira.webresources:global-static-adgs.css","startTime":172.79999999701977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172.79999999701977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287.0999999977648,"responseStart":0,"secureConnectionStart":0},{"duration":156.39999999850988,"initiatorType":"link","name":"https://jira.workterra.net/s/70725731a158a7140f19ddbd4201ba27-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:global-static/jira.webresources:global-static.css","startTime":172.89999999850988,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172.89999999850988,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":329.29999999701977,"responseStart":0,"secureConnectionStart":0},{"duration":164.69999999925494,"initiatorType":"script","name":"https://jira.workterra.net/s/f2623af22c15df767ec6ff268ae0b8bd-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/js/_super/batch.js?locale=en-US","startTime":173,"connectEnd":173,"connectStart":173,"domainLookupEnd":173,"domainLookupStart":173,"fetchStart":173,"redirectEnd":0,"redirectStart":0,"requestStart":173,"responseEnd":337.69999999925494,"responseStart":337.69999999925494,"secureConnectionStart":173},{"duration":220.19999999925494,"initiatorType":"script","name":"https://jira.workterra.net/s/6ce676f2a5bcc9651cef6e7956f05def-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/3abe50d469404b639745df44b51476b6/_/download/contextbatch/js/jira.browse.project,jira.view.issue,project.issue.navigator,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":173.09999999776483,"connectEnd":173.09999999776483,"connectStart":173.09999999776483,"domainLookupEnd":173.09999999776483,"domainLookupStart":173.09999999776483,"fetchStart":173.09999999776483,"redirectEnd":0,"redirectStart":0,"requestStart":173.09999999776483,"responseEnd":393.29999999701977,"responseStart":393.29999999701977,"secureConnectionStart":173.09999999776483},{"duration":222.90000000223517,"initiatorType":"script","name":"https://jira.workterra.net/s/ecf7ec549751ae117b778f0525d6d371-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/4.1.5/_/download/resources/com.atlassian.plugins.atlassian-chaperone:hotspot-tour/hotspot-tour.js?batch=false&locale=en-US","startTime":173.29999999701977,"connectEnd":173.29999999701977,"connectStart":173.29999999701977,"domainLookupEnd":173.29999999701977,"domainLookupStart":173.29999999701977,"fetchStart":173.29999999701977,"redirectEnd":0,"redirectStart":0,"requestStart":173.29999999701977,"responseEnd":396.19999999925494,"responseStart":396.19999999925494,"secureConnectionStart":173.29999999701977},{"duration":223.60000000149012,"initiatorType":"script","name":"https://jira.workterra.net/s/6aa3fcf1fac5fd551eee0b69077524e6-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/aae1242f5fc81cc6a5bb8bc963ccda29/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en-US","startTime":173.39999999850988,"connectEnd":173.39999999850988,"connectStart":173.39999999850988,"domainLookupEnd":173.39999999850988,"domainLookupStart":173.39999999850988,"fetchStart":173.39999999850988,"redirectEnd":0,"redirectStart":0,"requestStart":173.39999999850988,"responseEnd":397,"responseStart":397,"secureConnectionStart":173.39999999850988},{"duration":224.09999999776483,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":173.5,"connectEnd":173.5,"connectStart":173.5,"domainLookupEnd":173.5,"domainLookupStart":173.5,"fetchStart":173.5,"redirectEnd":0,"redirectStart":0,"requestStart":173.5,"responseEnd":397.5999999977648,"responseStart":397.5999999977648,"secureConnectionStart":173.5},{"duration":227.10000000149012,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":173.59999999776483,"connectEnd":173.59999999776483,"connectStart":173.59999999776483,"domainLookupEnd":173.59999999776483,"domainLookupStart":173.59999999776483,"fetchStart":173.59999999776483,"redirectEnd":0,"redirectStart":0,"requestStart":173.59999999776483,"responseEnd":400.69999999925494,"responseStart":400.69999999925494,"secureConnectionStart":173.59999999776483},{"duration":227.5,"initiatorType":"script","name":"https://jira.workterra.net/s/ecf7ec549751ae117b778f0525d6d371-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/8.5.0/_/download/batch/com.atlassian.auiplugin:split_aui.pattern.label/com.atlassian.auiplugin:split_aui.pattern.label.js?locale=en-US","startTime":173.69999999925494,"connectEnd":173.69999999925494,"connectStart":173.69999999925494,"domainLookupEnd":173.69999999925494,"domainLookupStart":173.69999999925494,"fetchStart":173.69999999925494,"redirectEnd":0,"redirectStart":0,"requestStart":173.69999999925494,"responseEnd":401.19999999925494,"responseStart":401.19999999925494,"secureConnectionStart":173.69999999925494},{"duration":228.10000000149012,"initiatorType":"link","name":"https://jira.workterra.net/s/05c862146699bb029ceb0a489075e63b-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/bcd66e9a133a1b9f5fd14b56841e1c5b/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":173.79999999701977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.79999999701977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":401.8999999985099,"responseStart":0,"secureConnectionStart":0},{"duration":228.10000000149012,"initiatorType":"script","name":"https://jira.workterra.net/rest/api/1.0/shortcuts/805012/e80c7a6aee0fa86c2b1a716575a614aa/shortcuts.js?context=issuenavigation&context=issueaction","startTime":173.89999999850988,"connectEnd":173.89999999850988,"connectStart":173.89999999850988,"domainLookupEnd":173.89999999850988,"domainLookupStart":173.89999999850988,"fetchStart":173.89999999850988,"redirectEnd":0,"redirectStart":0,"requestStart":173.89999999850988,"responseEnd":402,"responseStart":402,"secureConnectionStart":173.89999999850988},{"duration":228.5,"initiatorType":"link","name":"https://jira.workterra.net/s/9095228fa10daa2d3e3d7d5760c95e91-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/72477c22780abda5f51fe696920d843f/_/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":174,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":174,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":402.5,"responseStart":0,"secureConnectionStart":0},{"duration":228.5,"initiatorType":"script","name":"https://jira.workterra.net/s/c19a1b46e985d7fb85efaf27c8febfdd-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/72477c22780abda5f51fe696920d843f/_/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-US&richediton=true","startTime":174.09999999776483,"connectEnd":174.09999999776483,"connectStart":174.09999999776483,"domainLookupEnd":174.09999999776483,"domainLookupStart":174.09999999776483,"fetchStart":174.09999999776483,"redirectEnd":0,"redirectStart":0,"requestStart":174.09999999776483,"responseEnd":402.5999999977648,"responseStart":402.5999999977648,"secureConnectionStart":174.09999999776483},{"duration":528.0999999977648,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":175,"connectEnd":175,"connectStart":175,"domainLookupEnd":175,"domainLookupStart":175,"fetchStart":175,"redirectEnd":0,"redirectStart":0,"requestStart":175,"responseEnd":703.0999999977648,"responseStart":703.0999999977648,"secureConnectionStart":175},{"duration":528.8000000007451,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":175.09999999776483,"connectEnd":175.09999999776483,"connectStart":175.09999999776483,"domainLookupEnd":175.09999999776483,"domainLookupStart":175.09999999776483,"fetchStart":175.09999999776483,"redirectEnd":0,"redirectStart":0,"requestStart":175.09999999776483,"responseEnd":703.8999999985099,"responseStart":703.8999999985099,"secureConnectionStart":175.09999999776483},{"duration":177.10000000149012,"initiatorType":"xmlhttprequest","name":"https://jira.workterra.net/rest/webResources/1.0/resources","startTime":524.5999999977648,"connectEnd":524.5999999977648,"connectStart":524.5999999977648,"domainLookupEnd":524.5999999977648,"domainLookupStart":524.5999999977648,"fetchStart":524.5999999977648,"redirectEnd":0,"redirectStart":0,"requestStart":524.5999999977648,"responseEnd":701.6999999992549,"responseStart":701.6999999992549,"secureConnectionStart":524.5999999977648}],"threshold":1000,"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":13,"responseStart":168,"responseEnd":170,"domLoading":171,"domInteractive":810,"domContentLoadedEventStart":810,"domContentLoadedEventEnd":853,"domComplete":1314,"loadEventStart":1314,"loadEventEnd":1318,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[],"measures":[],"correlationId":"9f2df17db32015","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":109,"dbReadsTimeInMs":3,"dbConnsTimeInMs":4,"applicationHash":"156decd7d2b4272533aa6cefc8294af635e1da97","experiments":[]}}
3C's
Concern: Error for Send Bulk API
Cause: Send Bulk API uses parallel loop to generate token for each template. The context that is needed for common routines was not getting initialized for every thread which resulted in this issue. Common routine object was recently removed in caching changes.
Actual error log: System.AggregateException: One or more errors occurred. (A second operation started on this context before a previous operation completed. This is usually caused by different threads using the same instance of DbContext, however instance members are not guaranteed to be thread safe. This could also be caused by a nested query being evaluated on the client, if this is the case rewrite the query avoiding nested invocations.) ---> System.InvalidOperationException: A second operation started on this context before a previous operation completed. This is usually caused by different threads using the same instance of DbContext, however instance members are not guaranteed to be thread safe. This could also be caused by a nested query being evaluated on the client, if this is the case rewrite the query avoiding nested invocations.
Correction: We have created a commonroutine object in parallel loop for that different threads use different objects.
CC:Rohan J Khandave