Service Fabric Actor or Service Becomes Inaccessible at Random after Upgrading to SDK 2.3.301

前端 未结 2 1802
遇见更好的自我
遇见更好的自我 2021-02-04 07:26

After upgrading from Service Fabric SDK 2.0.135 to 2.3.301, we have started encountering situations where a Service Fabric actor or service is inaccessible in spite of showing a

2条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 08:05

    In case it helps anyone we were seeing these timeouts on long running (over 5 minute) operations. Following Suchi's hint about the FabricTransportServiceRemotingProviderAttribute we added the following lines to our SF projects AssemblyInfo.cs to increase the timeout to 1 hour.

    [assembly: FabricTransportServiceRemotingProvider(OperationTimeoutInSeconds = 3600)]
    [assembly: FabricTransportActorRemotingProvider(OperationTimeoutInSeconds = 3600)]
    

    (Also note if you're using Azure Service Buses the maximum lock time is 5 minutes, so you'll have to implement some lock renewal code to support long running operations)

提交回复
热议问题