Aracılığıyla paylaş


FabricClient.ClusterManagementClient.RecoverPartitionAsync Method

Definition

Overloads

RecoverPartitionAsync(Guid, TimeSpan, CancellationToken)

Indicates to the Service Fabric cluster that it should attempt to recover a specific partition which is currently stuck in quorum loss.

RecoverPartitionAsync(Guid)

Indicates to the Service Fabric cluster that it should attempt to recover a specific partition which is currently stuck in quorum loss.

RecoverPartitionAsync(Guid, TimeSpan, CancellationToken)

Indicates to the Service Fabric cluster that it should attempt to recover a specific partition which is currently stuck in quorum loss.

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

Parameters

partitionId
Guid

The partition id to recover

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

RecoverPartitionAsync(Guid)

Indicates to the Service Fabric cluster that it should attempt to recover a specific partition which is currently stuck in quorum loss.

public System.Threading.Tasks.Task RecoverPartitionAsync (Guid partitionId);
member this.RecoverPartitionAsync : Guid -> System.Threading.Tasks.Task
Public Function RecoverPartitionAsync (partitionId As Guid) As Task

Parameters

partitionId
Guid

The partition id 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