Service Fabric: removed actors and now upgrade fails

我的梦境 提交于 2019-12-10 09:25:36

问题


I'm trying to upgrade a Service Fabric application with a mix of stateful and stateless actors. I did some refactoring and so removed some actors I didn't need any more. Now, when I try to upgrade the application, I get the following error:

Services must be explicitly deleted before removing their Service Types.

After thinking about it a little bit, I think I understand the trouble that could come from removed services and upgrades, but then what's the correct way to do this?


回答1:


You need to remove the service instances before you can upgrade to a version that doesn't contain the removed service package. Either:

  • In SF Explorer, navigate to the service and click Actions > Delete Service
  • In PowerShell:

    Connect-ServiceFabricCluster
    Remove-ServiceFabricService -ServiceName fabric:/MyApp/MyService
    

DO BE CAREFUL - If you're deleting a stateful service you'll lose all its data. Always be sure to have a periodic backup of production data.



来源:https://stackoverflow.com/questions/36320402/service-fabric-removed-actors-and-now-upgrade-fails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!