-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathCheckpointInfo.cs
More file actions
55 lines (46 loc) · 1.53 KB
/
CheckpointInfo.cs
File metadata and controls
55 lines (46 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace DurableTask.Netherite.Faster
{
using Newtonsoft.Json;
using System;
[JsonObject]
class CheckpointInfo
{
/// <summary>
/// The FasterKV token for the last index checkpoint taken before this checkpoint.
/// </summary>
[JsonProperty]
public Guid IndexToken { get; set; }
/// <summary>
/// The FasterKV token for this checkpoint.
/// </summary>
[JsonProperty]
public Guid LogToken { get; set; }
/// <summary>
/// The FasterLog position for this checkpoint.
/// </summary>
[JsonProperty]
public long CommitLogPosition { get; set; }
/// <summary>
/// The input queue (event hubs) position for this checkpoint.
/// </summary>
[JsonProperty]
public long InputQueuePosition { get; set; }
/// <summary>
/// If the input queue position is a batch, the position within the batch.
/// </summary>
[JsonProperty]
public int InputQueueBatchPosition { get; set; }
/// <summary>
/// The input queue fingerprint for this checkpoint.
/// </summary>
[JsonProperty]
public string InputQueueFingerprint { get; set; }
/// <summary>
/// The number of recovery attempts that have been made for this checkpoint.
/// </summary>
//[JsonProperty]
public int RecoveryAttempts { get; set; }
}
}