Skip to content

MultiHost throws error when stopping TestWorkerRole #100

@jlongo62

Description

@jlongo62

When starting MultiHost with TestWorkerRole configuration:
{ "Roles": [ { "EnabledOnStartup": false, "Assembly": "..\\..\\..\\TestWorkerRole\\bin\\Debug\\TestWorkerRole.dll", "RoleName": "TestWorkerRole", "Title": "TestWorkerRoleService", "ConfigurationPath": "..\\..\\..\\TestCloudService\\ServiceConfiguration.Local.cscfg", "Port": null, "UseSsl": null, "Hostname": null, "RoleIsolationMode": "AppDomain" } ] }

The Worker appears to work nicely. However, when attempting to stop the role, I get:
Thread shutdown failed to complete within 30 seconds. Aborting: TestWorkerRoleServiceThread LightBlue.MultiHost.vshost.exe Information: 0 : Working: Running locally 2027776622 C:\Users\jlongo\AppData\Local\Temp\1\ LightBlue.MultiHost.vshost.exe Information: 0 : TestWorkerRole is stopping LightBlue.MultiHost.vshost.exe Information: 0 : TestWorkerRole has stopped System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Monitor.ObjWait(Boolean exitContext, Int32 millisecondsTimeout, Object obj) at System.Threading.ManualResetEventSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.SpinThenBlockingWait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.InternalWait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at TestWorkerRole.WorkerRole.Run() in C:\workspaces\Monitoring\LightBlue-master\TestWorkerRole\WorkerRole.cs:line 29 at LightBlue.Infrastructure.HostRunner.RunRole(Type workerRoleType) in C:\workspaces\Monitoring\LightBlue-master\LightBlue\Infrastructure\HostRunner.cs:line 64 at LightBlue.Infrastructure.HostRunner.Run(String workerRoleAssembly, String configurationPath, String serviceDefinitionPath, String roleName, Boolean useHostedStorage) in C:\workspaces\Monitoring\LightBlue-master\LightBlue\Infrastructure\HostRunner.cs:line 33 at LightBlue.MultiHost.Runners.ThreadRunner.HostStub2.Run(String workerRoleAssembly, String configurationPath, String serviceDefinitionPath, String roleName, Boolean useHostedStorage) in C:\workspaces\Monitoring\LightBlue-master\LightBlue.MultiHost\Runners\ThreadRunner.cs:line 120 at LightBlue.MultiHost.Runners.ThreadRunner.StartInternal() in C:\workspaces\Monitoring\LightBlue-master\LightBlue.MultiHost\Runners\ThreadRunner.cs:line 160 Thread aborted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions