Skip to content

Commit

Permalink
Add FAILED_PRECONDITION as error for StreamSnapshot
Browse files Browse the repository at this point in the history
Rationale is that we might return it if Concord Client cannot verify the
state from the replicas (i.e. the signatures don't match). It can be
used in different scenarios too.
  • Loading branch information
dartdart26 committed Nov 16, 2021
1 parent eb0e803 commit 8dc13f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/proto/state_snapshot/v1/state_snapshot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ service StateSnapshot {
// INVALID_ARGUMENT: if resuming a stream using `from_key` and that key is not part of the
// state snapshot.
// UNAVAILABLE: if Concord Client is not ready yet to process requests.
// FAILED_PRECONDITION: if a precondition in Concord Client is not satisfied. For example,
// the state might be corrupted or invalid and, in that case, there
// would be no point in proceeding with streaming.
// UNKNOWN: exact cause is unknown.
rpc StreamSnapshot(StreamSnapshotRequest) returns (stream StreamSnapshotResponse);

Expand Down

0 comments on commit 8dc13f1

Please sign in to comment.