TestabilityExtensions.CleanTestStateAsync Method (FabricClient.ClusterManagementClient)

 

Cleans up all the test state in the cluster.

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

Syntax

public static Task CleanTestStateAsync(
    this FabricClient.ClusterManagementClient clusterManagementClient
)

Parameters

Return Value

Type: System.Threading.Tasks.Task

Task

Exceptions

Exception Condition
TimeoutException

Action took more than its allocated time.

Remarks

Cleans up all the test state in the cluster which has been set for fault operations like StopNode, InvokeDataLoss, RestartPartition and InvokeQuorumLoss This API should be called if any of these operations fail or if the test driver process dies or an operation is cancelled while in flight to ensure that the cluster is back into the normal state. Normally all the fault operations clean up their state at the end of the execution of the API so CleanTestState only needs to be called if the API operation is interrupted.

See Also

CleanTestStateAsync Overload
TestabilityExtensions Class
System.Fabric.Testability Namespace

Return to top