Dela via


FabricClient.ClusterManagementClient.RecoverPartitionsAsync Method

Definition

Overloads

RecoverPartitionsAsync(TimeSpan, CancellationToken)

Indicates to the Service Fabric cluster that it should attempt to recover any services (including system services) which are currently stuck in quorum loss.

RecoverPartitionsAsync()

Indicates to the Service Fabric cluster that it should attempt to recover any services (including system services) which are currently stuck in quorum loss.

RecoverPartitionsAsync(TimeSpan, CancellationToken)

Indicates to the Service Fabric cluster that it should attempt to recover any services (including system services) which are currently stuck in quorum loss.

public System.Threading.Tasks.Task RecoverPartitionsAsync (TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.RecoverPartitionsAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RecoverPartitionsAsync (timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

timeout
TimeSpan

The timespan that defines the maximum amount of time will allow this operation to continue before returning a TimeoutException.

cancellationToken
CancellationToken

The optional cancellation token that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation may still be completed even if it is cancelled.

Returns

A task representing acknowledgement of the intent.

Exceptions

Remarks

This operation should only be performed if it is known that the replicas that are down cannot be recovered. Incorrect use of this API can cause potential data loss.

Applies to

RecoverPartitionsAsync()

Indicates to the Service Fabric cluster that it should attempt to recover any services (including system services) which are currently stuck in quorum loss.

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

Returns

A task representing acknowledgement of the intent.

Exceptions

Remarks

This operation should only be performed if it is known that the replicas that are down cannot be recovered. Incorrect use of this API can cause potential data loss.

Applies to