FabricClient.TestManagementClient.InvokeQuorumLossAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
InvokeQuorumLossAsync(PartitionSelector, QuorumLossMode, TimeSpan) |
Obsolete.
Induces quorum loss for a given stateful service partition. |
InvokeQuorumLossAsync(PartitionSelector, QuorumLossMode, TimeSpan, CancellationToken) |
Obsolete.
Induces quorum loss for a given stateful service partition. |
InvokeQuorumLossAsync(PartitionSelector, QuorumLossMode, TimeSpan, TimeSpan) |
Obsolete.
Induces quorum loss for a given stateful service partition. |
InvokeQuorumLossAsync(PartitionSelector, QuorumLossMode, TimeSpan, TimeSpan, CancellationToken) |
Obsolete.
Induces quorum loss for a given stateful service partition. |
InvokeQuorumLossAsync(PartitionSelector, QuorumLossMode, TimeSpan)
Caution
This api is deprecated, use StartPartitionQuorumLossAsync instead. StartPartitionQuorumLossAsync requires the FaultAnalysisService
Induces quorum loss for a given stateful service partition.
[System.Obsolete("This api is deprecated, use StartPartitionQuorumLossAsync instead. StartPartitionQuorumLossAsync requires the FaultAnalysisService")]
public System.Threading.Tasks.Task<System.Fabric.Result.InvokeQuorumLossResult> InvokeQuorumLossAsync (System.Fabric.PartitionSelector partitionSelector, System.Fabric.QuorumLossMode quorumLossMode, TimeSpan quorumLossDuration);
[<System.Obsolete("This api is deprecated, use StartPartitionQuorumLossAsync instead. StartPartitionQuorumLossAsync requires the FaultAnalysisService")>]
member this.InvokeQuorumLossAsync : System.Fabric.PartitionSelector * System.Fabric.QuorumLossMode * TimeSpan -> System.Threading.Tasks.Task<System.Fabric.Result.InvokeQuorumLossResult>
Public Function InvokeQuorumLossAsync (partitionSelector As PartitionSelector, quorumLossMode As QuorumLossMode, quorumLossDuration As TimeSpan) As Task(Of InvokeQuorumLossResult)
Parameters
- 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
InvokeQuorumLossResult InvokeQuorumLossResult
- Attributes
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.
Important note: this API should not be aborted while running. Aborting this API while it is running may leave state behind. If this API is aborted while running, CleanTestStateAsync() should be invoked to remove state that may have been left behind.
Applies to
InvokeQuorumLossAsync(PartitionSelector, QuorumLossMode, TimeSpan, CancellationToken)
Caution
This api is deprecated, use StartPartitionQuorumLossAsync instead. StartPartitionQuorumLossAsync requires the FaultAnalysisService
Induces quorum loss for a given stateful service partition.
[System.Obsolete("This api is deprecated, use StartPartitionQuorumLossAsync instead. StartPartitionQuorumLossAsync requires the FaultAnalysisService")]
public System.Threading.Tasks.Task<System.Fabric.Result.InvokeQuorumLossResult> InvokeQuorumLossAsync (System.Fabric.PartitionSelector partitionSelector, System.Fabric.QuorumLossMode quorumLossMode, TimeSpan quorumLossDuration, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("This api is deprecated, use StartPartitionQuorumLossAsync instead. StartPartitionQuorumLossAsync requires the FaultAnalysisService")>]
member this.InvokeQuorumLossAsync : System.Fabric.PartitionSelector * System.Fabric.QuorumLossMode * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.InvokeQuorumLossResult>
Public Function InvokeQuorumLossAsync (partitionSelector As PartitionSelector, quorumLossMode As QuorumLossMode, quorumLossDuration As TimeSpan, cancellationToken As CancellationToken) As Task(Of InvokeQuorumLossResult)
Parameters
- 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
InvokeQuorumLossResult InvokeQuorumLossResult
- Attributes
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.
Important note: this API should not be aborted while running. Aborting this API while it is running may leave state behind. If this API is aborted while running, CleanTestStateAsync() should be invoked to remove state that may have been left behind.
Applies to
InvokeQuorumLossAsync(PartitionSelector, QuorumLossMode, TimeSpan, TimeSpan)
Caution
This api is deprecated, use StartPartitionQuorumLossAsync instead. StartPartitionQuorumLossAsync requires the FaultAnalysisService
Induces quorum loss for a given stateful service partition.
[System.Obsolete("This api is deprecated, use StartPartitionQuorumLossAsync instead. StartPartitionQuorumLossAsync requires the FaultAnalysisService")]
public System.Threading.Tasks.Task<System.Fabric.Result.InvokeQuorumLossResult> InvokeQuorumLossAsync (System.Fabric.PartitionSelector partitionSelector, System.Fabric.QuorumLossMode quorumLossMode, TimeSpan quorumLossDuration, TimeSpan operationTimeout);
[<System.Obsolete("This api is deprecated, use StartPartitionQuorumLossAsync instead. StartPartitionQuorumLossAsync requires the FaultAnalysisService")>]
member this.InvokeQuorumLossAsync : System.Fabric.PartitionSelector * System.Fabric.QuorumLossMode * TimeSpan * TimeSpan -> System.Threading.Tasks.Task<System.Fabric.Result.InvokeQuorumLossResult>
Public Function InvokeQuorumLossAsync (partitionSelector As PartitionSelector, quorumLossMode As QuorumLossMode, quorumLossDuration As TimeSpan, operationTimeout As TimeSpan) As Task(Of InvokeQuorumLossResult)
Parameters
- 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
InvokeQuorumLossResult InvokeQuorumLossResult
- Attributes
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.
Important note: this API should not be aborted while running. Aborting this API while it is running may leave state behind. If this API is aborted while running, CleanTestStateAsync() should be invoked to remove state that may have been left behind.
Applies to
InvokeQuorumLossAsync(PartitionSelector, QuorumLossMode, TimeSpan, TimeSpan, CancellationToken)
Caution
This api is deprecated, use StartPartitionQuorumLossAsync instead. StartPartitionQuorumLossAsync requires the FaultAnalysisService
Induces quorum loss for a given stateful service partition.
[System.Obsolete("This api is deprecated, use StartPartitionQuorumLossAsync instead. StartPartitionQuorumLossAsync requires the FaultAnalysisService")]
public System.Threading.Tasks.Task<System.Fabric.Result.InvokeQuorumLossResult> InvokeQuorumLossAsync (System.Fabric.PartitionSelector partitionSelector, System.Fabric.QuorumLossMode quorumlossMode, TimeSpan quorumlossDuration, TimeSpan operationTimeout, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("This api is deprecated, use StartPartitionQuorumLossAsync instead. StartPartitionQuorumLossAsync requires the FaultAnalysisService")>]
member this.InvokeQuorumLossAsync : System.Fabric.PartitionSelector * System.Fabric.QuorumLossMode * TimeSpan * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.InvokeQuorumLossResult>
Public Function InvokeQuorumLossAsync (partitionSelector As PartitionSelector, quorumlossMode As QuorumLossMode, quorumlossDuration As TimeSpan, operationTimeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of InvokeQuorumLossResult)
Parameters
- 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
InvokeQuorumLossResult InvokeQuorumLossResult
- Attributes
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.
Important note: this API should not be aborted while running. Aborting this API while it is running may leave state behind. If this API is aborted while running, CleanTestStateAsync() should be invoked to remove state that may have been left behind.
Applies to
Azure SDK for .NET