Skip to content

Commit 14a3392

Browse files
authored
Merge pull request #297 from jdef/list_consistency
spec: ListVolumes, ListSnapshots consistency.
2 parents bc6c1b1 + 50a792a commit 14a3392

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,8 @@ The CO MUST implement the specified error recovery behavior when it encounters t
12511251

12521252
A Controller Plugin MUST implement this RPC call if it has `LIST_VOLUMES` capability.
12531253
The Plugin SHALL return the information about all the volumes that it knows about.
1254+
If volumes are created and/or deleted while the CO is concurrently paging through `ListVolumes` results then it is possible that the CO MAY either witness duplicate volumes in the list, not witness existing volumes, or both.
1255+
The CO SHALL NOT expect a consistent "view" of all volumes when paging through the volume list via multiple calls to `ListVolumes`.
12541256

12551257
```protobuf
12561258
message ListVolumesRequest {
@@ -1562,6 +1564,8 @@ The CO MUST implement the specified error recovery behavior when it encounters t
15621564
A Controller Plugin MUST implement this RPC call if it has `LIST_SNAPSHOTS` capability.
15631565
The Plugin SHALL return the information about all snapshots on the storage system within the given parameters regardless of how they were created.
15641566
`ListSnapshots` SHALL NOT list a snapshot that is being created but has not been cut successfully yet.
1567+
If snapshots are created and/or deleted while the CO is concurrently paging through `ListSnapshots` results then it is possible that the CO MAY either witness duplicate snapshots in the list, not witness existing snapshots, or both.
1568+
The CO SHALL NOT expect a consistent "view" of all snapshots when paging through the snapshot list via multiple calls to `ListSnapshots`.
15651569

15661570
```protobuf
15671571
// List all snapshots on the storage system regardless of how they were

0 commit comments

Comments
 (0)