共用方式為


FabricClient.ClusterManagementClient.RecoverSystemPartitionsAsync Method

Definition

Overloads

RecoverSystemPartitionsAsync()

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

RecoverSystemPartitionsAsync(TimeSpan, CancellationToken)

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

RecoverSystemPartitionsAsync()

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

public System.Threading.Tasks.Task RecoverSystemPartitionsAsync ();
member this.RecoverSystemPartitionsAsync : unit -> System.Threading.Tasks.Task
Public Function RecoverSystemPartitionsAsync () 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

RecoverSystemPartitionsAsync(TimeSpan, CancellationToken)

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

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

Parameters

timeout
TimeSpan

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

cancellationToken
CancellationToken

The 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