Skip to content

Commit 51463ff

Browse files
ImeevMAlocker
authored andcommitted
proto: introduce error injections
This patch introduces error injections to internal API. Needed for tarantool/aeon#502
1 parent f805e6b commit 51463ff

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

aeon_internal.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ service InternalService {
1616
rpc FindRange(FindRangeRequest) returns (FindRangeResponse) {}
1717
// Update space cache.
1818
rpc UpdateCache(UpdateCacheRequest) returns (UpdateCacheResponse) {}
19+
// Set error injection.
20+
rpc SetInjection(SetInjectionRequest) returns (SetInjectionResponse) {}
1921
}
2022

2123
// Description of a range.
@@ -122,3 +124,14 @@ message UpdateCacheResponse {
122124
// Error information. Set only on failure.
123125
Error error = 1;
124126
}
127+
128+
// Set error injection.
129+
130+
message SetInjectionRequest {
131+
// Name of error injection.
132+
string name = 1;
133+
// True if injection is enabled, false otherwise.
134+
bool is_enabled = 2;
135+
}
136+
137+
message SetInjectionResponse {}

0 commit comments

Comments
 (0)