【问题标题】:How to fix Service Fabric Health Error "Entity not found in Health Store."如何修复 Service Fabric 运行状况错误“在运行状况存储中找不到实体”。
【发布时间】:2020-04-29 12:24:09
【问题描述】:

我在本地集群中托管了服务结构应用程序。应用程序中的一项服务在服务结构资源管理器中的健康状态为“错误”。

事件字段说

'MyApplication' reported Error for property 'BoundedContextRegistration'.
System.Fabric.FabricException: Entity not found in Health Store. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C17
   at System.Fabric.Interop.NativeClient.IFabricHealthClient4.EndGetServiceHealth2(IFabricAsyncOperationContext context)
   at System.Fabric.FabricClient.HealthClient.GetServiceHealthEndWrapper(IFabricAsyncOperationContext context)
   at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at MyApplication2.ActivatorService.d__4.MoveNext()

后台代码:

namespace MyApplication2
{
    public class ActivatorService : ActorService
    {}
}

运行状况为 Error 的实际服务代码为:

namespace MyApplication.Activator
{
    /// <remarks>
    /// This class represents an actor.
    /// Every ActorID maps to an instance of this class.
    /// The StatePersistence attribute determines persistence and replication of actor state:
    ///  - Persisted: State is written to disk and replicated.
    ///  - Volatile: State is kept in memory only and replicated.
    ///  - None: State is kept in memory only and not replicated.
    /// </remarks>
    [ActorService(Name = "MyApplicationActivatorActorService")]
    [StatePersistence(StatePersistence.Persisted)]
    internal class Activator : Actor, IActivatorInitialize, IActor, IDestroyable, IActorManager, ILendingActivator, ICommandHandler
    {

我找不到原因。并从 microsoft 文档和其他 Internet 搜索中了解。我确实重新启动了机器。我撤消源代码中的更改并重新构建和发布。但是健康状态仍然是错误的。如何查找此服务“MyApplicationActivatorActorService”的错误健康原因?

【问题讨论】:

    标签: azure-service-fabric


    【解决方案1】:

    MyApplication2 是另一个服务结构应用程序。这应该可以解决这个问题。发布 MyApplication2 服务结构应用程序后,健康状态正常

    【讨论】:

      猜你喜欢
      • 2019-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-22
      • 2020-11-30
      • 2021-02-24
      • 1970-01-01
      相关资源
      最近更新 更多