diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c8dfc6e3a..67249c581b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ Changelog for NeoFS Node - `--timeout` flag in `neofs-cli` subcommands (#1837) - `container nodes` command to output list of nodes for container, grouped by replica (#1704) - Configuration flag to ignore shard in `neofs-node` (#1840) +- Add new RPC `TreeService.Healthcheck` ### Changed - Allow to evacuate shard data with `EvacuateShard` control RPC (#1800) diff --git a/pkg/services/tree/service.go b/pkg/services/tree/service.go index a7b87ee09d..aca6b96179 100644 --- a/pkg/services/tree/service.go +++ b/pkg/services/tree/service.go @@ -558,3 +558,7 @@ func (s *Service) getContainerInfo(cid cidSDK.ID, pub []byte) ([]netmapSDK.NodeI } return cntNodes, -1, len(cntNodes), nil } + +func (s *Service) Healthcheck(context.Context, *HealthcheckRequest) (*HealthcheckResponse, error) { + return new(HealthcheckResponse), nil +} diff --git a/pkg/services/tree/service.pb.go b/pkg/services/tree/service.pb.go index 2d30dce79d..e87642e757 100644 Binary files a/pkg/services/tree/service.pb.go and b/pkg/services/tree/service.pb.go differ diff --git a/pkg/services/tree/service.proto b/pkg/services/tree/service.proto index e1f8d678c4..9bcefbf956 100644 --- a/pkg/services/tree/service.proto +++ b/pkg/services/tree/service.proto @@ -47,6 +47,8 @@ service TreeService { rpc Apply (ApplyRequest) returns (ApplyResponse); // GetOpLog returns a stream of logged operations starting from some height. rpc GetOpLog(GetOpLogRequest) returns (stream GetOpLogResponse); + // Healthcheck is a dummy rpc to check service availability + rpc Healthcheck(HealthcheckRequest) returns (HealthcheckResponse); } message AddRequest { @@ -328,3 +330,23 @@ message GetOpLogResponse { // Response signature. Signature signature = 2; }; + +message HealthcheckResponse { + message Body { + } + + // Response body. + Body body = 1; + // Response signature. + Signature signature = 2; +}; + +message HealthcheckRequest { + message Body { + } + + // Request body. + Body body = 1; + // Request signature. + Signature signature = 2; +} diff --git a/pkg/services/tree/service_grpc.pb.go b/pkg/services/tree/service_grpc.pb.go index fba0bfc0c3..590f11071c 100644 Binary files a/pkg/services/tree/service_grpc.pb.go and b/pkg/services/tree/service_grpc.pb.go differ diff --git a/pkg/services/tree/service_neofs.pb.go b/pkg/services/tree/service_neofs.pb.go index 0eea38fe01..44ddb19858 100644 Binary files a/pkg/services/tree/service_neofs.pb.go and b/pkg/services/tree/service_neofs.pb.go differ diff --git a/pkg/services/tree/types.pb.go b/pkg/services/tree/types.pb.go index 75c56a189f..29be48744d 100644 Binary files a/pkg/services/tree/types.pb.go and b/pkg/services/tree/types.pb.go differ