Share via


FabricClient.FaultManagementClient.MoveSecondaryAsync Method

Definition

Overloads

MoveSecondaryAsync(String, PartitionSelector, Boolean, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(String, String, PartitionSelector, Boolean, TimeSpan, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(String, String, PartitionSelector, TimeSpan, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(String, String, PartitionSelector, Boolean, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(String, PartitionSelector, Boolean, TimeSpan, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(String, String, PartitionSelector, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(String, String, PartitionSelector, Boolean)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(String, PartitionSelector, TimeSpan, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(PartitionSelector, Boolean, TimeSpan, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(String, PartitionSelector)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(String, PartitionSelector, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(String, PartitionSelector, Boolean)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(PartitionSelector, TimeSpan, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(PartitionSelector, Boolean, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(String, String, PartitionSelector)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(PartitionSelector, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(PartitionSelector, Boolean)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(PartitionSelector)

Moves selected secondary replica from current node to new node in the cluster.

MoveSecondaryAsync(String, PartitionSelector, Boolean, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (string currentNodeName, System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints, System.Threading.CancellationToken token);
member this.MoveSecondaryAsync : string * System.Fabric.PartitionSelector * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (currentNodeName As String, partitionSelector As PartitionSelector, ignoreConstraints As Boolean, token As CancellationToken) As Task(Of MoveSecondaryResult)

Parameters

currentNodeName
String

node name where selected replica for move is currently present

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

token
CancellationToken

The cancellation token

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected secondary replica inside partition selector structure specified by currentNodeName. This API overload randomly selects new secondary node for replica movement This selected replica will be moved to new node location from current node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(String, String, PartitionSelector, Boolean, TimeSpan, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (string currentNodeName, string newNodeName, System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.MoveSecondaryAsync : string * string * System.Fabric.PartitionSelector * bool * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (currentNodeName As String, newNodeName As String, partitionSelector As PartitionSelector, ignoreConstraints As Boolean, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of MoveSecondaryResult)

Parameters

currentNodeName
String

node name where selected replica for move is currently present

newNodeName
String

node name where selected replica to be moved

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

operationTimeout
TimeSpan

The timeout for this API call.

token
CancellationToken

The cancellation token

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - Active secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary

Remarks

API uses the selected secondary replica inside partition selector structure specified by currentNodeName location. This selected replica will be moved to newNodeName location from current node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(String, String, PartitionSelector, TimeSpan, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (string currentNodeName, string newNodeName, System.Fabric.PartitionSelector partitionSelector, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.MoveSecondaryAsync : string * string * System.Fabric.PartitionSelector * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (currentNodeName As String, newNodeName As String, partitionSelector As PartitionSelector, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of MoveSecondaryResult)

Parameters

currentNodeName
String

node name where selected replica for move is currently present

newNodeName
String

node name where selected replica to be moved

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

operationTimeout
TimeSpan

The timeout for this API call.

token
CancellationToken

The cancellation token

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - Active secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary

Remarks

API uses the selected secondary replica inside partition selector structure specified by currentNodeName location. This selected replica will be moved to newNodeName location from current node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(String, String, PartitionSelector, Boolean, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (string currentNodeName, string newNodeName, System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints, System.Threading.CancellationToken token);
member this.MoveSecondaryAsync : string * string * System.Fabric.PartitionSelector * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (currentNodeName As String, newNodeName As String, partitionSelector As PartitionSelector, ignoreConstraints As Boolean, token As CancellationToken) As Task(Of MoveSecondaryResult)

Parameters

currentNodeName
String

node name where selected replica for move is currently present

newNodeName
String

node name where selected replica to be moved

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

token
CancellationToken

The cancellation token

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected secondary replica specified by currentNodeName and moves it to new node location specified by newNodeName. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(String, PartitionSelector, Boolean, TimeSpan, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (string currentNodeName, System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.MoveSecondaryAsync : string * System.Fabric.PartitionSelector * bool * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (currentNodeName As String, partitionSelector As PartitionSelector, ignoreConstraints As Boolean, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of MoveSecondaryResult)

Parameters

currentNodeName
String

node name where selected replica for move is currently present

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

operationTimeout
TimeSpan

The timeout for this API call.

token
CancellationToken

The cancellation token

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected secondary replica specified by currentNodeName. This selected replica will be moved to the randomly selected new node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(String, String, PartitionSelector, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (string currentNodeName, string newNodeName, System.Fabric.PartitionSelector partitionSelector, System.Threading.CancellationToken token);
member this.MoveSecondaryAsync : string * string * System.Fabric.PartitionSelector * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (currentNodeName As String, newNodeName As String, partitionSelector As PartitionSelector, token As CancellationToken) As Task(Of MoveSecondaryResult)

Parameters

currentNodeName
String

node name where selected replica for move is currently present

newNodeName
String

node name where selected replica to be moved

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

token
CancellationToken

The cancellation token

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected secondary replica specified by currentNodeName and moves it to new node location specified by newNodeName. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(String, String, PartitionSelector, Boolean)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (string currentNodeName, string newNodeName, System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints);
member this.MoveSecondaryAsync : string * string * System.Fabric.PartitionSelector * bool -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (currentNodeName As String, newNodeName As String, partitionSelector As PartitionSelector, ignoreConstraints As Boolean) As Task(Of MoveSecondaryResult)

Parameters

currentNodeName
String

node name where selected replica for move is currently present

newNodeName
String

node name where selected replica to be moved

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected secondary replica specified by currentNodeName and moves it to new node location specified by newNodeName. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(String, PartitionSelector, TimeSpan, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (string currentNodeName, System.Fabric.PartitionSelector partitionSelector, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.MoveSecondaryAsync : string * System.Fabric.PartitionSelector * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (currentNodeName As String, partitionSelector As PartitionSelector, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of MoveSecondaryResult)

Parameters

currentNodeName
String

node name where selected replica for move is currently present

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

operationTimeout
TimeSpan

The timeout for this API call.

token
CancellationToken

The cancellation token

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected secondary replica specified by currentNodeName. This selected replica will be moved to the randomly selected new node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(PartitionSelector, Boolean, TimeSpan, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.MoveSecondaryAsync : System.Fabric.PartitionSelector * bool * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (partitionSelector As PartitionSelector, ignoreConstraints As Boolean, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of MoveSecondaryResult)

Parameters

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

operationTimeout
TimeSpan

The timeout for this API call.

token
CancellationToken

The cancellation token

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - Active secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary

Remarks

API uses the randomly selected secondary replica for specified partition selector. This API overload randomly selects new secondary node location for replica movement This selected replica will be moved to new node location from current node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(String, PartitionSelector)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (string currentNodeName, System.Fabric.PartitionSelector partitionSelector);
member this.MoveSecondaryAsync : string * System.Fabric.PartitionSelector -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (currentNodeName As String, partitionSelector As PartitionSelector) As Task(Of MoveSecondaryResult)

Parameters

currentNodeName
String

node name where selected replica for move is currently present

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected secondary replica inside partition selector structure specified by currentNodeName. This API overload randomly selects new secondary node for replica movement This selected replica will be moved to new node location from current node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(String, PartitionSelector, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (string currentNodeName, System.Fabric.PartitionSelector partitionSelector, System.Threading.CancellationToken token);
member this.MoveSecondaryAsync : string * System.Fabric.PartitionSelector * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (currentNodeName As String, partitionSelector As PartitionSelector, token As CancellationToken) As Task(Of MoveSecondaryResult)

Parameters

currentNodeName
String

node name where selected replica for move is currently present

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

token
CancellationToken

The cancellation token

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected secondary replica inside partition selector structure specified by currentNodeName. This API overload randomly selects new secondary node for replica movement This selected replica will be moved to new node location from current node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(String, PartitionSelector, Boolean)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (string currentNodeName, System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints);
member this.MoveSecondaryAsync : string * System.Fabric.PartitionSelector * bool -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (currentNodeName As String, partitionSelector As PartitionSelector, ignoreConstraints As Boolean) As Task(Of MoveSecondaryResult)

Parameters

currentNodeName
String

node name where selected replica for move is currently present

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the replica being moved is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected secondary replica inside partition selector structure specified by currentNodeName. This API overload randomly selects new secondary node for replica movement This selected replica will be moved to new node location from current node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(PartitionSelector, TimeSpan, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (System.Fabric.PartitionSelector partitionSelector, TimeSpan operationTimeout, System.Threading.CancellationToken token);
member this.MoveSecondaryAsync : System.Fabric.PartitionSelector * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (partitionSelector As PartitionSelector, operationTimeout As TimeSpan, token As CancellationToken) As Task(Of MoveSecondaryResult)

Parameters

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

operationTimeout
TimeSpan

The timeout for this API call.

token
CancellationToken

The cancellation token

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - Active secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary

Remarks

API uses the randomly selected secondary replica for specified partition selector. This API overload randomly selects new secondary node location for replica movement This selected replica will be moved to new node location from current node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(PartitionSelector, Boolean, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints, System.Threading.CancellationToken token);
member this.MoveSecondaryAsync : System.Fabric.PartitionSelector * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (partitionSelector As PartitionSelector, ignoreConstraints As Boolean, token As CancellationToken) As Task(Of MoveSecondaryResult)

Parameters

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

token
CancellationToken

The cancellation token

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the replica being moved is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

This API overload randomly selects current secondary node for random secondary replica of the selected partition and new secondary node for replica movement This selected replica will be moved to new node location from current node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(String, String, PartitionSelector)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (string currentNodeName, string newNodeName, System.Fabric.PartitionSelector partitionSelector);
member this.MoveSecondaryAsync : string * string * System.Fabric.PartitionSelector -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (currentNodeName As String, newNodeName As String, partitionSelector As PartitionSelector) As Task(Of MoveSecondaryResult)

Parameters

currentNodeName
String

node name where selected replica for move is currently present

newNodeName
String

node name where selected replica to be moved

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected secondary replica specified by currentNodeName and moves it to new node location specified by newNodeName. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(PartitionSelector, CancellationToken)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (System.Fabric.PartitionSelector partitionSelector, System.Threading.CancellationToken token);
member this.MoveSecondaryAsync : System.Fabric.PartitionSelector * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (partitionSelector As PartitionSelector, token As CancellationToken) As Task(Of MoveSecondaryResult)

Parameters

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

token
CancellationToken

The cancellation token

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the replica being moved is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

This API overload randomly selects current secondary node for random secondary replica of the selected partition and new secondary node for replica movement This selected replica will be moved to new node location from current node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(PartitionSelector, Boolean)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (System.Fabric.PartitionSelector partitionSelector, bool ignoreConstraints);
member this.MoveSecondaryAsync : System.Fabric.PartitionSelector * bool -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (partitionSelector As PartitionSelector, ignoreConstraints As Boolean) As Task(Of MoveSecondaryResult)

Parameters

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

ignoreConstraints
Boolean

Whether or not to ignore constraints when attempting to execute the move.

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected secondary replica inside partition selector structure specified by current secondary node. This API overload randomly selects current secondary node for random secondary replica of the selected partition and new secondary node for replica movement This selected replica will be moved to new node location from current node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to

MoveSecondaryAsync(PartitionSelector)

Moves selected secondary replica from current node to new node in the cluster.

public System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult> MoveSecondaryAsync (System.Fabric.PartitionSelector partitionSelector);
member this.MoveSecondaryAsync : System.Fabric.PartitionSelector -> System.Threading.Tasks.Task<System.Fabric.Result.MoveSecondaryResult>
Public Function MoveSecondaryAsync (partitionSelector As PartitionSelector) As Task(Of MoveSecondaryResult)

Parameters

partitionSelector
PartitionSelector

Move Secondary will be called on this Selected Partition.

Returns

A task with move secondary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless service. - If no active secondary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exist on new node FabricErrorCode.AlreadySecondaryReplica - If active Secondary replica for selected partition already exist on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not a secondary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected secondary replica inside partition selector structure specified by current secondary node. This API overload randomly selects current secondary node for random secondary replica of the selected partition and new secondary node for replica movement This selected replica will be moved to new node location from current node location. This API is safe i.e. it will not cause quorum or data loss by itself unless additional faults or failures happen at the same time.

Applies to