RemoveNodeStateAsync() on a node in fabric cluster fails even when the node is in disabled state. -


i have custom auto scale set scaling of nodes in cluster. scale works great. have issues scaling down. problem when want scale down, identify node want remove- after call deactivatenodeasync() method on intent of removing node. wait till deactivation done, check status of node confirm disabled. once disbled call method removenodestateasync() cluster can register node being removed.

but problem - when call removenodestateasync(), getting following exception - says node up. complete exception.

scale containers: scale nodes failed . exception : system.aggregateexception: 1 or more errors occurred. ---> system.aggregateexception: 1 or more errors occurred. ---> system.fabric.fabricexception: node up. ---> system.runtime.interopservices.comexception: exception hresult: 0x80071bc4 @ system.fabric.interop.nativeclient.ifabricclustermanagementclient9.endnodestateremoved(ifabricasyncoperationcontext context) @ system.fabric.interop.utility.<>c__displayclass20_0.b__0(ifabricasyncoperationcontext context) @ system.fabric.interop.asynccalloutadapter2`1.finish(ifabricasyncoperationcontext context, boolean expectedcompletedsynchronously) --- end of inner exception stack trace --- --- end of inner exception stack trace --- @ system.threading.tasks.task.throwifexceptional(boolean includetaskcanceledexceptions) @ system.threading.tasks.task.wait(int32 millisecondstimeout, cancellationtoken cancellationtoken)

what missing ? why saying node after explicitly checking status says node disabled ? how can register cluster node removed. appreciate on this.

i found answer in azure article : https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-programmatic-scaling

removenodestate needs done after node removed scaleset not before.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -