From 4358d3c42321222296f9d834517a90a1d3ad5e7a Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Tue, 30 Jan 2024 17:09:23 +0300 Subject: [PATCH] [#917] controlSvc: Add DetachShards handler Signed-off-by: Dmitrii Stepanov --- pkg/services/control/service.pb.go | Bin 221750 -> 231700 bytes pkg/services/control/service.proto | 21 +++++++++++++++++++++ pkg/services/control/service_frostfs.pb.go | Bin 102396 -> 107641 bytes pkg/services/control/service_grpc.pb.go | Bin 35467 -> 37157 bytes 4 files changed, 21 insertions(+) diff --git a/pkg/services/control/service.pb.go b/pkg/services/control/service.pb.go index e0c6e0622a41e8dfe2520f75aadee8d9b07e45bf..c9645941bfd63bc551c73279be3a9bfd67f8788b 100644 GIT binary patch delta 8859 zcmZ`aH3ezTdAM+5$CpNq9#< z#kmL7xs3%Kfg5*>c5%wK^lMvoR!hUDsI^V?9noXwncX#AR728&u8AqdKE*yhvmP&e z(AayCv2REDft@?j24&pa5wP(>UI)u+c9%L8;4`5jSoP~W6sGm~t7%n15iU&!SZAxt zf1Typ`r9USV41(VS4Ww9>K;*l{q1}Qq^h_?-!=y?Q0F=3hFI@pnHoDFSdH%H)j>-~ z+8~$o*Z~DQLmMUwHKDmc-O$Njbu{>KK(NSEO-cJwIAGU~ib!)G76uGd$ZV3{(g2SW1xwJ~SaYcmiQUjCS+0;q6 zvtO{d#w%mQd9Dr@e)fjWVkL24_jbr3nl5UdtrIte2~W7Kt6J*Z@aeT8msj+Fp&%da z#wGnA!Mm@Rp{5T8{yy^HmJIm3W>^64j)m#Qeh`{BRD`L;nL5Z0&~TwnAMVdFF~WzN zcOeSX(}Q*D@wa3IRvL`-TZYYThV!wQ`KRy`;Y=RJeG6h7`nx z&N62bgr}4?OkFxIRNuusi%4XTGPFa`9P!IQC}EfoCb8V@P-2wA%QK*L_N2~SngTvr z_Wm}Jt?<6#8bu&y57h0Vqzp|mCQ62Zdd3DUAes)KuxInyr9HRKi2obIau;xKOwPv;lSKJK;m5&h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zXNi-vDhGy#&p`VeNy4Y+)=Ulm2`ZbeF{@3v3lDo@p73L|ahCXvdd>u~e72~g`LDoeatew`e&X3-)tk}8e54RB#0D9R6SRE} zq(Qq$zs?o8@^Lqiju*fOW4Z_eYc+1Ng4NouMqma}*{Ja#j t;vy81=W+nV%JH^VDM1e?!i}Upwc%CGl?*FTTz{?-w^)Mx(rXxO{{`i;P&NPn diff --git a/pkg/services/control/service.proto b/pkg/services/control/service.proto index dc63a7188..4cb1dee33 100644 --- a/pkg/services/control/service.proto +++ b/pkg/services/control/service.proto @@ -62,6 +62,9 @@ service ControlService { // Flush objects from write-cache and move it to degraded read only mode. rpc SealWriteCache(SealWriteCacheRequest) returns (SealWriteCacheResponse); + + // DetachShards detaches and closes shards. + rpc DetachShards(DetachShardsRequest) returns (DetachShardsResponse); } // Health check request. @@ -584,3 +587,21 @@ message SealWriteCacheResponse { Signature signature = 2; } + +message DetachShardsRequest { + message Body { + repeated bytes shard_ID = 1; + } + + Body body = 1; + Signature signature = 2; +} + +message DetachShardsResponse { + message Body { + } + + Body body = 1; + + Signature signature = 2; +} diff --git a/pkg/services/control/service_frostfs.pb.go b/pkg/services/control/service_frostfs.pb.go index b72fc0f1285b4aec68a88cf1c4a384abc136d1ee..125a12d00e215708483faa88effe2dcda169988c 100644 GIT binary patch delta 234 zcmew}pY7)fwuUW?fBL6C5M=D+c1bNsOwI_-NGwX394H|=`M{K<%_e;l8Brt*b#F|T zKgd0~<-s&Ih=$E}PL@nCcD2haCKUCGx9>saCV7#s6q-@Nouh|VqS_ua!!6RkXa1YpvT1tQ8`&wR)G!5bd=SCG4o}`HYZCsN={Z# zl81@mQmM*~Wa;FEI>s;!iBV#c_0@bgFEMQ50XfbTNnJ59jstsca-z40EV9m^)WXu# z;u1{-4K1j{L9SJ``zSE^y^|)2V~EizHQC!vJg<%@)TQpD&RqaXx E0Fqd@V*mgE delta 53 zcmV-50LuTRq5_MR0