Open JadedATB opened 6 years ago
Update... Using the non-async version didn't totally solve the problem. We still had an issue in our nightly build last night:
#####################################################################
2018-10-19T04:46:08.1720990Z [2018-10-19 04:37:16] Failed to create service bus 'sb-segment-test-ussc-9038': A task was canceled.
2018-10-19T04:46:08.1721174Z [2018-10-19 04:37:16] System.Threading.Tasks.TaskCanceledException: A task was canceled.
2018-10-19T04:46:08.1721346Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2018-10-19T04:46:08.1721495Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-10-19T04:46:08.1721677Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
2018-10-19T04:46:08.1721822Z [2018-10-19 04:37:16] at Microsoft.Azure.Management.ServiceBus.Fluent.NamespacesOperations.4.<Microsoft-Azure-Management-ResourceManager-Fluent-Core-ResourceActions-IResourceCreator<IResourceT>-CreateResourceAsync>d__15.MoveNext() 2018-10-19T04:46:08.1726343Z [2018-10-19 04:37:16] --- End of stack trace from previous location where exception was thrown --- 2018-10-19T04:46:08.1726555Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 2018-10-19T04:46:08.1726726Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-10-19T04:46:08.1726942Z [2018-10-19 04:37:16] at Microsoft.Azure.Management.ResourceManager.Fluent.Core.DAG.CreatorTaskItem
1.3.<CreateAsync>d__2.MoveNext() 2018-10-19T04:46:08.1728591Z [2018-10-19 04:37:16] --- End of stack trace from previous location where exception was thrown --- 2018-10-19T04:46:08.1728771Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 2018-10-19T04:46:08.1728911Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-10-19T04:46:08.1729099Z [2018-10-19 04:37:16] at Microsoft.Azure.Management.ServiceBus.Fluent.ServiceBusNamespaceImpl.<SubmitChildrenOperationsAsync>d__52.MoveNext() 2018-10-19T04:46:08.1729239Z [2018-10-19 04:37:16] --- End of stack trace from previous location where exception was thrown --- 2018-10-19T04:46:08.1729530Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 2018-10-19T04:46:08.1729757Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-10-19T04:46:08.1729907Z [2018-10-19 04:37:16] at Microsoft.Azure.Management.ServiceBus.Fluent.ServiceBusNamespaceImpl.<CreateResourceAsync>d__57.MoveNext() 2018-10-19T04:46:08.1730193Z [2018-10-19 04:37:16] --- End of stack trace from previous location where exception was thrown --- 2018-10-19T04:46:08.1730337Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 2018-10-19T04:46:08.1732616Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-10-19T04:46:08.1732836Z [2018-10-19 04:37:16] at Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.Creatable
4.<Microsoft-Azure-Management-ResourceManager-Fluent-Core-ResourceActions-IResourceCreator1.<ExecuteNodeTaskAsync>d__14.MoveNext() 2018-10-19T04:46:08.1737928Z [2018-10-19 04:37:16] --- End of stack trace from previous location where exception was thrown --- 2018-10-19T04:46:08.1738761Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 2018-10-19T04:46:08.1739478Z [2018-10-19 04:37:16] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-10-19T04:46:08.1740150Z [2018-10-19 04:37:16] at Microsoft.Azure.Management.ResourceManager.Fluent.Core.Extensions.Synchronize[TResult](Func
1 function)
2018-10-19T04:46:08.1740851Z [2018-10-19 04:37:16] at Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.Creatable`4.Create()
2018-10-19T04:46:08.1741565Z [2018-10-19 04:37:16] at ########.Azure.Deployment.Deploy.AzureDeploy.
@JadedATB does this issue still existing with the latest version(1.27.0)?
In our nightly build, this started failing:
Getting a System.Threading.Tasks.TaskCanceledException: Message = "A task was canceled."
========================================================== If I simply change the code to be non-async:
It works fine. Why does this happen? Why did this just start happening after working perfectly fine for months before?