【问题标题】:StartPartitionDataLossAsync throws FabricExceptionStartPartitionDataLossAsync 抛出 FabricException
【发布时间】:2017-02-16 16:52:50
【问题描述】:

我正在尝试在本地 1 节点集群上从自身恢复我的 SF 服务:

using (var client = new FabricClient())
{
    await client.TestManager.StartPartitionDataLossAsync(
        Guid.NewGuid(),
        PartitionSelector.PartitionIdOf(Context.ServiceName, Context.PartitionId),
        DataLossMode.FullDataLoss);
}

调用失败,FabricException 带有未知错误代码:

System.Fabric.FabricException: An error occurred during this operation.  Please check the trace logs for more details. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071D0A
   at System.Fabric.Interop.NativeClient.IFabricTestManagementClient3.EndStartPartitionDataLoss(IFabricAsyncOperationContext context)
   at System.Fabric.Interop.Utility.<>c__DisplayClassa.<WrapNativeAsyncInvoke>b__9(IFabricAsyncOperationContext context)
   at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)

跟踪日志包含此错误:

ProcessClientOperation for action 'ForwardMessage' encountered error FMFailoverUnitNotFound. 

【问题讨论】:

    标签: azure-service-fabric


    【解决方案1】:

    将本地集群切换到 5 节点模式。

    单节点集群不包含引发故障所需的fabric:/System/FaultAnalysisService

    【讨论】:

      猜你喜欢
      • 2018-02-06
      • 2017-10-19
      • 1970-01-01
      • 2013-05-24
      • 1970-01-01
      • 2014-11-23
      • 2013-05-30
      • 2018-11-09
      • 2014-01-13
      相关资源
      最近更新 更多