Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix retry timeout when running under debugger #1503

Merged
merged 1 commit into from Feb 27, 2016

Conversation

yevhen
Copy link
Contributor

@yevhen yevhen commented Feb 27, 2016

Debugging Orleans in Compute Emulator almost always gives this error:

Exception thrown: 'System.TimeoutException' in Orleans.dll
Microsoft.WindowsAzure.ServiceRuntime Critical: 31337 : System.TimeoutException: Task.WaitWithThrow has timed out after 00:00:03.
   at Orleans.OrleansTaskExtentions.WaitWithThrow(Task task, TimeSpan timeout)
   at Orleans.AzureUtils.OrleansSiloInstanceManager.RegisterSiloInstance(SiloInstanceTableEntry entry)
   at Orleans.Runtime.Host.AzureSilo.Start(ClusterConfiguration config, String deploymentId, String connectionString)
   at Example.Azure.Program.OnStart() in C:\Work\OSS\Orleankka\Source\Example.Azure.Cluster\Program.cs:line 26
   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum)
   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRole(RoleType roleType)
   at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.<InitializeRole>b__0()

The longer timeout which set in case the Orleans is running under debugger was ignored due to code mistakenly put into #if DEBUG, which was ruling it out from release binaries.

sergeybykov added a commit that referenced this pull request Feb 27, 2016
Fix retry timeout when running under debugger
@sergeybykov sergeybykov merged commit 634cd2d into dotnet:master Feb 27, 2016
@sergeybykov
Copy link
Contributor

Thank you, @yevhen!

@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants