FabricClient.TestManagementClient.CleanTestStateAsync Method

Definition

Overloads

CleanTestStateAsync()

Cleans up all the test state in the cluster.

CleanTestStateAsync(TimeSpan, CancellationToken)

Cleans up all the test state in the cluster.

CleanTestStateAsync()

Cleans up all the test state in the cluster.

public System.Threading.Tasks.Task CleanTestStateAsync ();
member this.CleanTestStateAsync : unit -> System.Threading.Tasks.Task
Public Function CleanTestStateAsync () As Task

Returns

Task

Exceptions

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 canceled 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.

Applies to

CleanTestStateAsync(TimeSpan, CancellationToken)

Cleans up all the test state in the cluster.

public System.Threading.Tasks.Task CleanTestStateAsync (TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.CleanTestStateAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CleanTestStateAsync (operationTimeout As TimeSpan, token As CancellationToken) As Task

Parameters

operationTimeout
TimeSpan

The overall timeout for the operation.

token
CancellationToken

Cancellation token

Returns

Task

Exceptions

Action took more than its allocated time.

Remarks

Cleans up all the test state in the cluster which has been set for fault operations, 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 canceled 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 .

Applies to