Share via


FabricClient.ClusterManagementClient.RecoverServicePartitionsAsync Method

Definition

Overloads

RecoverServicePartitionsAsync(Uri)

Indicates to the Service Fabric cluster that it should attempt to recover the specified service which is currently stuck in quorum loss.

RecoverServicePartitionsAsync(Uri, TimeSpan, CancellationToken)

Indicates to the Service Fabric cluster that it should attempt to recover the specified service which is currently stuck in quorum loss by using the specified timeout and cancellation token.

RecoverServicePartitionsAsync(Uri)

Indicates to the Service Fabric cluster that it should attempt to recover the specified service which is currently stuck in quorum loss.

public System.Threading.Tasks.Task RecoverServicePartitionsAsync (Uri serviceName);
member this.RecoverServicePartitionsAsync : Uri -> System.Threading.Tasks.Task
Public Function RecoverServicePartitionsAsync (serviceName As Uri) As Task

Parameters

serviceName
Uri

The name of the service to recover.

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

RecoverServicePartitionsAsync(Uri, TimeSpan, CancellationToken)

Indicates to the Service Fabric cluster that it should attempt to recover the specified service which is currently stuck in quorum loss by using the specified timeout and cancellation token.

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

Parameters

serviceName
Uri

The name of the service to recover.

timeout
TimeSpan

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