FabricClient.FaultManagementClient.MoveAuxiliaryAsync Method

Definition

Overloads

MoveAuxiliaryAsync(PartitionSelector)

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

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

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

MoveAuxiliaryAsync(String, String, PartitionSelector, TimeSpan, CancellationToken)

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

MoveAuxiliaryAsync(String, String, PartitionSelector, Boolean, CancellationToken)

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

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

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

MoveAuxiliaryAsync(String, String, PartitionSelector, CancellationToken)

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

MoveAuxiliaryAsync(String, PartitionSelector, TimeSpan, CancellationToken)

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

MoveAuxiliaryAsync(String, PartitionSelector, Boolean, CancellationToken)

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

MoveAuxiliaryAsync(PartitionSelector, Boolean, TimeSpan, CancellationToken)

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

MoveAuxiliaryAsync(String, String, PartitionSelector, Boolean)

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

MoveAuxiliaryAsync(String, PartitionSelector, CancellationToken)

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

MoveAuxiliaryAsync(String, PartitionSelector, Boolean)

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

MoveAuxiliaryAsync(PartitionSelector, TimeSpan, CancellationToken)

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

MoveAuxiliaryAsync(PartitionSelector, Boolean, CancellationToken)

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

MoveAuxiliaryAsync(String, PartitionSelector)

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

MoveAuxiliaryAsync(PartitionSelector, CancellationToken)

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

MoveAuxiliaryAsync(PartitionSelector, Boolean)

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

MoveAuxiliaryAsync(String, String, PartitionSelector)

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

MoveAuxiliaryAsync(PartitionSelector)

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

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

Parameters

partitionSelector
PartitionSelector

Move Auxiliary will be called on this Selected Partition.

Returns

A task with move auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected auxiliary replica inside partition selector structure specified by current auxiliary node. This API overload randomly selects current auxiliary node for random auxiliary replica of the selected partition and new auxiliary 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

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

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

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

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 Auxiliary 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 auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary

Remarks

API uses the selected auxiliary 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

MoveAuxiliaryAsync(String, String, PartitionSelector, TimeSpan, CancellationToken)

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

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

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 Auxiliary 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 auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary

Remarks

API uses the selected auxiliary 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

MoveAuxiliaryAsync(String, String, PartitionSelector, Boolean, CancellationToken)

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

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

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 Auxiliary 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 auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected auxiliary 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

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

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

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

Parameters

currentNodeName
String

node name where selected replica for move is currently present

partitionSelector
PartitionSelector

Move Auxiliary 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 auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected auxiliary 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

MoveAuxiliaryAsync(String, String, PartitionSelector, CancellationToken)

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

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

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 Auxiliary will be called on this Selected Partition.

token
CancellationToken

The cancellation token

Returns

A task with move auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected auxiliary 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

MoveAuxiliaryAsync(String, PartitionSelector, TimeSpan, CancellationToken)

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

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

Parameters

currentNodeName
String

node name where selected replica for move is currently present

partitionSelector
PartitionSelector

Move Auxiliary 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 auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected auxiliary 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

MoveAuxiliaryAsync(String, PartitionSelector, Boolean, CancellationToken)

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

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

Parameters

currentNodeName
String

node name where selected replica for move is currently present

partitionSelector
PartitionSelector

Move Auxiliary 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 auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected auxiliary replica inside partition selector structure specified by currentNodeName. This API overload randomly selects new auxiliary 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

MoveAuxiliaryAsync(PartitionSelector, Boolean, TimeSpan, CancellationToken)

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

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

Parameters

partitionSelector
PartitionSelector

Move Auxiliary 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 auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary

Remarks

API uses the randomly selected auxiliary replica for specified partition selector. This API overload randomly selects new auxiliary 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

MoveAuxiliaryAsync(String, String, PartitionSelector, Boolean)

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

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

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 Auxiliary 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 auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected auxiliary 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

MoveAuxiliaryAsync(String, PartitionSelector, CancellationToken)

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

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

Parameters

currentNodeName
String

node name where selected replica for move is currently present

partitionSelector
PartitionSelector

Move Auxiliary will be called on this Selected Partition.

token
CancellationToken

The cancellation token

Returns

A task with move auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected auxiliary replica inside partition selector structure specified by currentNodeName. This API overload randomly selects new auxiliary 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

MoveAuxiliaryAsync(String, PartitionSelector, Boolean)

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

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

Parameters

currentNodeName
String

node name where selected replica for move is currently present

partitionSelector
PartitionSelector

Move Auxiliary 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 auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the replica being moved is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected auxiliary replica inside partition selector structure specified by currentNodeName. This API overload randomly selects new auxiliary 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

MoveAuxiliaryAsync(PartitionSelector, TimeSpan, CancellationToken)

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

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

Parameters

partitionSelector
PartitionSelector

Move Auxiliary 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 auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary

Remarks

API uses the randomly selected auxiliary replica for specified partition selector. This API overload randomly selects new auxiliary 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

MoveAuxiliaryAsync(PartitionSelector, Boolean, CancellationToken)

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

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

Parameters

partitionSelector
PartitionSelector

Move Auxiliary 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 auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the replica being moved is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

This API overload randomly selects current auxiliary node for random auxiliary replica of the selected partition and new auxiliary 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

MoveAuxiliaryAsync(String, PartitionSelector)

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

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

Parameters

currentNodeName
String

node name where selected replica for move is currently present

partitionSelector
PartitionSelector

Move Auxiliary will be called on this Selected Partition.

Returns

A task with move auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected auxiliary replica inside partition selector structure specified by currentNodeName. This API overload randomly selects new auxiliary 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

MoveAuxiliaryAsync(PartitionSelector, CancellationToken)

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

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

Parameters

partitionSelector
PartitionSelector

Move Auxiliary will be called on this Selected Partition.

token
CancellationToken

The cancellation token

Returns

A task with move auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the replica being moved is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

This API overload randomly selects current auxiliary node for random auxiliary replica of the selected partition and new auxiliary 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

MoveAuxiliaryAsync(PartitionSelector, Boolean)

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

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

Parameters

partitionSelector
PartitionSelector

Move Auxiliary 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 auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected auxiliary replica inside partition selector structure specified by current auxiliary node. This API overload randomly selects current auxiliary node for random auxiliary replica of the selected partition and new auxiliary 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

MoveAuxiliaryAsync(String, String, PartitionSelector)

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

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

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 Auxiliary will be called on this Selected Partition.

Returns

A task with move auxiliary result

Exceptions

Retry is exhausted.

Invalid operation - If action called on stateless or non-persisted service. - If no active auxiliary replica exists - If not enough nodes available for action

FabricErrorCode.AlreadyPrimaryReplica - If Primary replica for selected partition already exists on new node FabricErrorCode.AlreadySecondaryReplica - If Secondary replica for selected partition already exists on new node FabricErrorCode.AlreadyAuxiliaryReplica - If active Auxiliary replica for selected partition already exists on new node FabricErrorCode.InvalidReplicaStateForReplicaOperation - If the target replica is not an auxiliary FabricErrorCode.ConstraintNotSatisfied - If the constraints for the new location of the replica would prohibit the move

Remarks

API uses the selected auxiliary 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