TestabilityExtensions.InvokeQuorumLossAsync Method (FabricClient.ServiceManagementClient, PartitionSelector, QuorumLossMode, TimeSpan, TimeSpan, CancellationToken)
Puts a given stateful service partition in to quorum loss.
Namespace: System.Fabric.Testability
Assembly: System.Fabric.Testability (in System.Fabric.Testability.dll)
Syntax
public static Task<InvokeQuorumLossResult> InvokeQuorumLossAsync(
this FabricClient.ServiceManagementClient serviceManagementClient,
PartitionSelector partitionSelector,
QuorumLossMode quorumlossMode,
TimeSpan quorumlossDuration,
TimeSpan operationTimeout,
CancellationToken token
)
Parameters
serviceManagementClient
Type: System.Fabric.FabricClient.ServiceManagementClientThe source service management client object on which the action will be invoked.
partitionSelector
Type: System.Fabric.Testability.PartitionSelectorPartition which the quorum loss will be invoked. PartitionSelector
quorumlossMode
Type: System.Fabric.Testability.QuorumLossModePartialQuorumLoss or FullQuorumLoss.
quorumlossDuration
Type: System.TimeSpanAmount of time for which the partition will be kept in quorum loss.
operationTimeout
Type: System.TimeSpanOverall timeout for the entire operation.
token
Type: System.Threading.CancellationTokenThe cancellation token for the operation.
Return Value
Type: System.Threading.Tasks.Task<InvokeQuorumLossResult>
InvokeQuorumLossResult InvokeQuorumLossResult
Exceptions
| Exception | Condition |
|---|---|
| TimeoutException | Action took more than its allocated time. |
| OperationCanceledException | Async operation is cancelled. |
| InvalidOperationException | Partition specified is not a part of a Stateful Persisted Service. |
Remarks
Depending on the whether a partial or full quorum loss mode is chosen, a number of replicas are taken down to induce a quorum loss on a given partition. The partition will remain in quorum loss for a given duration before it recovers.
Remarks
FullQuorumLoss - All replicas for a partition will be down that will cause a quorum loss. PartialQuorumLoss - Minimum number of replicas for a partition will be down that will cause a quorum loss.
See Also
InvokeQuorumLossAsync Overload
TestabilityExtensions Class
System.Fabric.Testability Namespace
Return to top