Open dominikjeske opened 6 years ago
@bigdnf - is this is a stateful service? For the stateful service "Change Role" is called first and then close on the communication listener for the primary. If the change role is blocked, the UD will timeout and upgrade will rollback. During the upgrade you can use Get-ServiceFabricApplicationUpgrade (https://docs.microsoft.com/en-us/powershell/module/servicefabric/get-servicefabricapplicationupgrade?view=azureservicefabricps) command to get more information on what is blocking the upgrade.
The logic for state transitions for stateful and stateless services is here: https://github.com/Microsoft/service-fabric-services-and-actors-dotnet/blob/develop/src/Microsoft.ServiceFabric.Services/Runtime/StatefulServiceReplicaAdapter.cs
CloseAsync of ICommunicationListener is not invoked during application update cousing rollback. Is this beheviour by design or maybe this is a bug?