TestabilityExtensions.RestartNodeAsync Method (FabricClient.ClusterManagementClient, ReplicaSelector, Boolean, CompletionMode, TimeSpan, CancellationToken)

 

Restarts a cluster node.

Namespace:   System.Fabric.Testability
Assembly:  System.Fabric.Testability (in System.Fabric.Testability.dll)

Syntax

public static Task<RestartNodeResult> RestartNodeAsync(
    this FabricClient.ClusterManagementClient clusterManagementClient,
    ReplicaSelector replicaSelector,
    bool createFabricDump,
    CompletionMode completionMode,
    TimeSpan operationTimeout,
    CancellationToken token
)

Parameters

  • createFabricDump
    Type: System.Boolean

    If set to true, the system will create the process dump for Fabric.exe on this node.

  • completionMode
    Type: System.Fabric.Testability.CompletionMode

    If set to Verify, the system will check that the node restarted, and the API will not return until it has and NodeStatus is Up. If set to DoNotVerify, the API returns once the node restart has been initiated.

Return Value

Type: System.Threading.Tasks.Task<RestartNodeResult>

A task with information representing the target node, and the replica selected.

Exceptions

Exception Condition
FabricException

The ErrorCode property will indicate the reason. If the ErrorCode is InvalidArgument, nodeName is invalid. If the errorCode is InstanceIdMismatch, the nodeInstance provided does not match the currently running instance. If the ErrorCode is ReplicaDoesNotExist, the selected replica was not found. If the ErrorCode is PartitionNotFound, the specified partition does not exist.

TimeoutException

The operation timed out.

ArgumentNullException

An argument with a value of null was passed in.

Remarks

A cluster node is a process, not an virtual or physical machine.If the createFabricDump parameter is set , on restart the process is crashed and the crash dump is placed in the Crash Dumps folder which the DCA can be configured to upload.

See Also

RestartNodeAsync Overload
TestabilityExtensions Class
System.Fabric.Testability Namespace

Return to top