Skip to content

Commit

Permalink
Pre-emptively add Search+Document services to GrpcServiceRegistry.
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Nov 15, 2024
1 parent 06d1aa2 commit e985043
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/main/java/org/opensearch/node/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@
import org.opensearch.gateway.remote.RemoteClusterStateCleanupManager;
import org.opensearch.gateway.remote.RemoteClusterStateService;
import org.opensearch.grpc.GrpcServerTransport;
import org.opensearch.grpc.services.DocumentServiceImpl;
import org.opensearch.grpc.services.GrpcServiceRegistry;
import org.opensearch.grpc.services.NodesInfoServiceImpl;
import org.opensearch.grpc.services.SearchServiceImpl;
import org.opensearch.http.HttpServerTransport;
import org.opensearch.identity.IdentityService;
import org.opensearch.index.IndexModule;
Expand Down Expand Up @@ -1137,8 +1139,9 @@ protected Node(
);

GrpcServiceRegistry grpcReg = new GrpcServiceRegistry(
new SearchServiceImpl(client),
new DocumentServiceImpl(client),
new NodesInfoServiceImpl(client)
// TODO: Other service stubs here
);

final NetworkModule networkModule = new NetworkModule(
Expand Down

0 comments on commit e985043

Please sign in to comment.