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.
Represents the current version of the partition in Service Fabric.
public struct Epoch : IComparable<System.Fabric.Epoch>, IEquatable<System.Fabric.Epoch>
type Epoch = struct
Public Structure Epoch Implements IComparable(Of Epoch), IEquatable(Of Epoch)
An Epoch is a configuration number for the partition as a whole. When the configuration of the replica set changes, for example when the Primary replica changes, the operations that are replicated from the new Primary replica are said to be a new Epoch from the ones which were sent by the old Primary replica. The fact that the Primary has changed is not directly visible to Secondary replicas, which are usually unaffected by the failure that affected the original Primary replica. To track that the Primary replica has changed has to be communicated to the Secondary replica. This communication occurs via the UpdateEpochAsync(Epoch, Int64, CancellationToken) method. Most services can ignore the details of the inner fields of the Epoch as it is usually sufficient to know that the Epoch has changed and to compare Epochs to determine relative ordering of operations and events in the system. Comparison operations are provided for this purpose.
Initializes a new instance of the Epoch class with the specified data loss number and configuration number.
Gets or sets the current configuration number property in this Epoch.
Gets the current data loss number in this Epoch.
Determines whether the specified object is equal to the current object.
Serves as a hash function for the Epoch type.
Determines whether two specified Epoch objects have the same value.
Determines whether two specified Epoch objects have different values.