From 8d9a299e39e7797712f5cf56c7f3857860823a42 Mon Sep 17 00:00:00 2001 From: Mergen Imeev Date: Wed, 24 Sep 2025 17:44:40 +0300 Subject: [PATCH] proto: introduce error injections This patch introduces error injections to internal API. Needed for tarantool/aeon#502 --- aeon_internal.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/aeon_internal.proto b/aeon_internal.proto index 352d8ab..e9ac49f 100644 --- a/aeon_internal.proto +++ b/aeon_internal.proto @@ -16,6 +16,8 @@ service InternalService { rpc FindRange(FindRangeRequest) returns (FindRangeResponse) {} // Update space cache. rpc UpdateCache(UpdateCacheRequest) returns (UpdateCacheResponse) {} + // Set error injection. + rpc SetInjection(SetInjectionRequest) returns (SetInjectionResponse) {} } // Description of a range. @@ -122,3 +124,14 @@ message UpdateCacheResponse { // Error information. Set only on failure. Error error = 1; } + +// Set error injection. + +message SetInjectionRequest { + // Name of error injection. + string name = 1; + // True if injection is enabled, false otherwise. + bool is_enabled = 2; +} + +message SetInjectionResponse {}