Dela via


PartitionAccessStatus Enum

Definition

Enumerates the access status of the partition.

public enum PartitionAccessStatus
type PartitionAccessStatus = 
Public Enum PartitionAccessStatus
Inheritance
PartitionAccessStatus

Fields

Name Value Description
Invalid 0

Indicates that the read or write operation access status is not valid. This value is not returned to the caller.

Granted 1

Indicates that the read or write operation access is granted and the operation is allowed.

ReconfigurationPending 2

Indicates that the client should try again later, because a reconfiguration is in progress. After the reconfiguration is completed, a new status is returned that gives further instructions. The client should retry the operation at this replica

NotPrimary 3

Indicates that this client request was received by a replica that is not a Primary replica. The read or write operation cannot be performed at this replica. The client should attempt to use the naming service to identify the correct primary replica.

NoWriteQuorum 4

Indicates that no write quorum is available and, therefore, no write operation can be accepted. The client should retry the operation at this replica.

Remarks

PartitionAccessStatus is used to check that a read or write operation is allowed. When service replicas handle a client request, they should verify that the system is in a state that allows processing. By checking the ReadStatus or WriteStatus as appropriate, the replica can be notified of conditions that prevent correct operation. Note that write operations might still see an exception from the replicator for one of these conditions, because the condition might change between the WriteStatus check and the call to ReplicateAsync(OperationData, CancellationToken, Int64).

Applies to