Delen via


FabricClient.TestManagementClient.StartPartitionQuorumLossAsync Method

Definition

Overloads

StartPartitionQuorumLossAsync(Guid, PartitionSelector, QuorumLossMode, TimeSpan)

Induces quorum loss for a given stateful service partition.

StartPartitionQuorumLossAsync(Guid, PartitionSelector, QuorumLossMode, TimeSpan, CancellationToken)

Induces quorum loss for a given stateful service partition.

StartPartitionQuorumLossAsync(Guid, PartitionSelector, QuorumLossMode, TimeSpan, TimeSpan)

Induces quorum loss for a given stateful service partition.

StartPartitionQuorumLossAsync(Guid, PartitionSelector, QuorumLossMode, TimeSpan, TimeSpan, CancellationToken)

Induces quorum loss for a given stateful service partition.

StartPartitionQuorumLossAsync(Guid, PartitionSelector, QuorumLossMode, TimeSpan)

Induces quorum loss for a given stateful service partition.

public System.Threading.Tasks.Task StartPartitionQuorumLossAsync (Guid operationId, System.Fabric.PartitionSelector partitionSelector, System.Fabric.QuorumLossMode quorumLossMode, TimeSpan quorumLossDuration);
member this.StartPartitionQuorumLossAsync : Guid * System.Fabric.PartitionSelector * System.Fabric.QuorumLossMode * TimeSpan -> System.Threading.Tasks.Task
Public Function StartPartitionQuorumLossAsync (operationId As Guid, partitionSelector As PartitionSelector, quorumLossMode As QuorumLossMode, quorumLossDuration As TimeSpan) As Task

Parameters

operationId
Guid

A user-provided identifier. This identifier can also be passed into the corresponding GetProgress API

partitionSelector
PartitionSelector

Partition which the quorum loss will be invoked. PartitionSelector

quorumLossMode
QuorumLossMode

PartialQuorumLoss or FullQuorumLoss.

quorumLossDuration
TimeSpan

Amount of time for which the partition will be kept in quorum loss.

Returns

A task.

Exceptions

Action took more than its allocated time.

Async operation is canceled.

Partition specified is not a part of a stateful Persisted Service.

Remarks

FullQuorumLoss - All replicas for the target partition will be downed. PartialQuorumLoss - A quorum of replicas for the target partition will be downed..

quorumLossMode indicates the number of replicas that will be faulted in order to cause quorum loss. The partition will remain in quorum loss for quorumLossDuration.

This API should only be called with a stateful service as the target.

Calling this API with a system service as the target is not advised.

The FaultAnalysisService must be enabled to use this API.

Applies to

StartPartitionQuorumLossAsync(Guid, PartitionSelector, QuorumLossMode, TimeSpan, CancellationToken)

Induces quorum loss for a given stateful service partition.

public System.Threading.Tasks.Task StartPartitionQuorumLossAsync (Guid operationId, System.Fabric.PartitionSelector partitionSelector, System.Fabric.QuorumLossMode quorumLossMode, TimeSpan quorumLossDuration, System.Threading.CancellationToken cancellationToken);
member this.StartPartitionQuorumLossAsync : Guid * System.Fabric.PartitionSelector * System.Fabric.QuorumLossMode * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartPartitionQuorumLossAsync (operationId As Guid, partitionSelector As PartitionSelector, quorumLossMode As QuorumLossMode, quorumLossDuration As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

operationId
Guid

A user-provided identifier. This identifier can also be passed into the corresponding GetProgress API

partitionSelector
PartitionSelector

Partition which the quorum loss will be invoked. PartitionSelector

quorumLossMode
QuorumLossMode

PartialQuorumLoss or FullQuorumLoss.

quorumLossDuration
TimeSpan

Amount of time for which the partition will be kept in quorum loss.

cancellationToken
CancellationToken

The cancellation token for the operation.

Returns

A task.

Exceptions

Action took more than its allocated time.

Async operation is canceled.

Partition specified is not a part of a stateful Persisted Service.

Remarks

FullQuorumLoss - All replicas for the target partition will be downed. PartialQuorumLoss - A quorum of replicas for the target partition will be downed..

quorumLossMode indicates the number of replicas that will be faulted in order to cause quorum loss. The partition will remain in quorum loss for quorumLossDuration.

This API should only be called with a stateful service as the target.

Calling this API with a system service as the target is not advised.

The FaultAnalysisService must be enabled to use this API.

Applies to

StartPartitionQuorumLossAsync(Guid, PartitionSelector, QuorumLossMode, TimeSpan, TimeSpan)

Induces quorum loss for a given stateful service partition.

public System.Threading.Tasks.Task StartPartitionQuorumLossAsync (Guid operationId, System.Fabric.PartitionSelector partitionSelector, System.Fabric.QuorumLossMode quorumLossMode, TimeSpan quorumLossDuration, TimeSpan operationTimeout);
member this.StartPartitionQuorumLossAsync : Guid * System.Fabric.PartitionSelector * System.Fabric.QuorumLossMode * TimeSpan * TimeSpan -> System.Threading.Tasks.Task
Public Function StartPartitionQuorumLossAsync (operationId As Guid, partitionSelector As PartitionSelector, quorumLossMode As QuorumLossMode, quorumLossDuration As TimeSpan, operationTimeout As TimeSpan) As Task

Parameters

operationId
Guid

A user-provided identifier. This identifier can also be passed into the corresponding GetProgress API

partitionSelector
PartitionSelector

Partition which the quorum loss will be invoked. PartitionSelector

quorumLossMode
QuorumLossMode

PartialQuorumLoss or FullQuorumLoss.

quorumLossDuration
TimeSpan

Amount of time for which the partition will be kept in quorum loss.

operationTimeout
TimeSpan

Overall timeout for the entire operation.

Returns

A task.

Exceptions

Action took more than its allocated time.

Async operation is canceled.

Partition specified is not a part of a stateful Persisted Service.

Remarks

FullQuorumLoss - All replicas for the target partition will be downed. PartialQuorumLoss - A quorum of replicas for the target partition will be downed..

quorumLossMode indicates the number of replicas that will be faulted in order to cause quorum loss. The partition will remain in quorum loss for quorumLossDuration.

This API should only be called with a stateful service as the target.

Calling this API with a system service as the target is not advised.

The FaultAnalysisService must be enabled to use this API.

Applies to

StartPartitionQuorumLossAsync(Guid, PartitionSelector, QuorumLossMode, TimeSpan, TimeSpan, CancellationToken)

Induces quorum loss for a given stateful service partition.

public System.Threading.Tasks.Task StartPartitionQuorumLossAsync (Guid operationId, System.Fabric.PartitionSelector partitionSelector, System.Fabric.QuorumLossMode quorumlossMode, TimeSpan quorumlossDuration, TimeSpan operationTimeout, System.Threading.CancellationToken cancellationToken);
member this.StartPartitionQuorumLossAsync : Guid * System.Fabric.PartitionSelector * System.Fabric.QuorumLossMode * TimeSpan * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartPartitionQuorumLossAsync (operationId As Guid, partitionSelector As PartitionSelector, quorumlossMode As QuorumLossMode, quorumlossDuration As TimeSpan, operationTimeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

operationId
Guid

A user-provided identifier. This identifier can also be passed into the corresponding GetProgress API

partitionSelector
PartitionSelector

Partition which the quorum loss will be invoked. PartitionSelector

quorumlossMode
QuorumLossMode

PartialQuorumLoss or FullQuorumLoss.

quorumlossDuration
TimeSpan

Amount of time for which the partition will be kept in quorum loss.

operationTimeout
TimeSpan

Overall timeout for the entire operation.

cancellationToken
CancellationToken

The cancellation token for the operation.

Returns

A task.

Exceptions

Action took more than its allocated time.

Async operation is canceled.

Partition specified is not a part of a stateful Persisted Service.

Remarks

FullQuorumLoss - All replicas for the target partition will be downed. PartialQuorumLoss - A quorum of replicas for the target partition will be downed..

quorumLossMode indicates the number of replicas that will be faulted in order to cause quorum loss. The partition will remain in quorum loss for quorumLossDuration.

This API should only be called with a stateful service as the target.

Calling this API with a system service as the target is not advised.

The FaultAnalysisService must be enabled to use this API.

Applies to