English 中文(简体)
GRPC 健康检查未执行
原标题:Health Check gRPC failed to implement

i m 看着加特林- grpc, 在我的本地机器上运行 Phisgr 示例不会有任何问题, 但当我在 GitLab 上运行 GrpcExample 时,

07:53:03.046 [DEBUG] c.g.p.g.g.p.GrpcProtocol$ - Couldn t execute warm up request
io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found: grpc.health.v1.Health/Check
    at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:271)
    at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:252)
    at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:131)
    at com.github.phisgr.gatling.grpc.protocol.GrpcProtocol$GrpcComponent.$anonfun$new$2(grpcProtocol.scala:77)
    at com.github.phisgr.gatling.grpc.protocol.GrpcProtocol$GrpcComponent.$anonfun$new$2$adapted(grpcProtocol.scala:69)
    at scala.Option.foreach(Option.scala:437)
    at com.github.phisgr.gatling.grpc.protocol.GrpcProtocol$GrpcComponent.<init>(grpcProtocol.scala:69)
    at com.github.phisgr.gatling.grpc.protocol.StaticGrpcProtocol.createComponents(grpcProtocol.scala:173)
    at com.github.phisgr.gatling.grpc.protocol.StaticGrpcProtocol$$anon$2.$anonfun$newComponents$2(grpcProtocol.scala:186)
    at io.gatling.core.protocol.ProtocolComponentsRegistry.comps$1(Protocol.scala:67)
    at io.gatling.core.protocol.ProtocolComponentsRegistry.$anonfun$components$4(Protocol.scala:69)
    at scala.collection.mutable.HashMap.getOrElseUpdate(HashMap.scala:469)
    at io.gatling.core.protocol.ProtocolComponentsRegistry.components(Protocol.scala:69)
    at com.github.phisgr.gatling.grpc.request.Call.<init>(Call.scala:19)
    at com.github.phisgr.gatling.grpc.request.UnaryResponse.<init>(UnaryResponse.scala:16)
    at com.github.phisgr.gatling.grpc.request.UnaryResponse.<init>(UnaryResponse.scala:27)
    at com.github.phisgr.gatling.grpc.action.GrpcCallAction.<init>(GrpcCallAction.scala:26)
    at com.github.phisgr.gatling.grpc.action.GrpcCallActionBuilder.build(GrpcCallActionBuilder.scala:19)
    at io.gatling.core.structure.BuildAction.$anonfun$build$1(BuildAction.scala:28)
    at scala.collection.LinearSeqOps.foldLeft(LinearSeq.scala:183)
    at scala.collection.LinearSeqOps.foldLeft$(LinearSeq.scala:179)
    at scala.collection.immutable.List.foldLeft(List.scala:79)
    at io.gatling.core.structure.BuildAction.build(BuildAction.scala:27)
    at io.gatling.core.structure.BuildAction.build$(BuildAction.scala:26)
    at io.gatling.core.structure.ScenarioBuilder.build(StructureBuilder.scala:57)
    at io.gatling.core.structure.PopulationBuilder.build(PopulationBuilder.scala:93)
    at io.gatling.core.scenario.SimulationParams.buildScenario(Simulation.scala:195)
    at io.gatling.core.scenario.SimulationParams.$anonfun$scenarioFlows$1(Simulation.scala:199)
    at scala.collection.immutable.List.map(List.scala:246)
    at io.gatling.core.scenario.SimulationParams.scenarioFlows(Simulation.scala:199)
    at io.gatling.app.Runner.load(Runner.scala:89)
    at io.gatling.app.Runner.run(Runner.scala:57)
    at io.gatling.app.Gatling$.start(Gatling.scala:89)
    at io.gatling.app.Gatling$.fromArgs(Gatling.scala:51)
    at io.gatling.app.Gatling$.fromSbtTestFramework(Gatling.scala:47)
    at io.gatling.sbt.GatlingTask.liftedTree1$1(GatlingTask.scala:51)
    at io.gatling.sbt.GatlingTask.execute(GatlingTask.scala:50)
    at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:413)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
07:53:03.049 [DEBUG] c.g.p.g.g.p.StaticGrpcProtocol$$anon$2 - Creating a new non-default GrpcComponent with ID b1b9f268-a752-4365-be19-746d8ccbd0c9
07:53:03.049 [DEBUG] c.g.p.g.g.p.GrpcProtocol$ - Making warm up call with method grpc.health.v1.Health/Check
07:53:03.060 [DEBUG] c.g.p.g.g.p.GrpcProtocol$ - Couldn t execute warm up request
io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found: grpc.health.v1.Health/Check
    at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:271)
    at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:252)
    at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:131)
    at com.github.phisgr.gatling.grpc.protocol.GrpcProtocol$GrpcComponent.$anonfun$new$2(grpcProtocol.scala:77)
    at com.github.phisgr.gatling.grpc.protocol.GrpcProtocol$GrpcComponent.$anonfun$new$2$adapted(grpcProtocol.scala:69)
    at scala.Option.foreach(Option.scala:437)
    at com.github.phisgr.gatling.grpc.protocol.GrpcProtocol$GrpcComponent.<init>(grpcProtocol.scala:69)
    at com.github.phisgr.gatling.grpc.protocol.StaticGrpcProtocol.createComponents(grpcProtocol.scala:173)
    at com.github.phisgr.gatling.grpc.protocol.StaticGrpcProtocol$$anon$2.$anonfun$newComponents$2(grpcProtocol.scala:186)
    at io.gatling.core.protocol.ProtocolComponentsRegistry.comps$1(Protocol.scala:67)
    at io.gatling.core.protocol.ProtocolComponentsRegistry.$anonfun$components$4(Protocol.scala:69)
    at scala.collection.mutable.HashMap.getOrElseUpdate(HashMap.scala:469)
    at io.gatling.core.protocol.ProtocolComponentsRegistry.components(Protocol.scala:69)
    at com.github.phisgr.gatling.grpc.request.Call.<init>(Call.scala:19)
    at com.github.phisgr.gatling.grpc.request.UnaryResponse.<init>(UnaryResponse.scala:16)
    at com.github.phisgr.gatling.grpc.request.UnaryResponse.<init>(UnaryResponse.scala:27)
    at com.github.phisgr.gatling.grpc.action.GrpcCallAction.<init>(GrpcCallAction.scala:26)
    at com.github.phisgr.gatling.grpc.action.GrpcCallActionBuilder.build(GrpcCallActionBuilder.scala:19)
    at io.gatling.core.structure.BuildAction.$anonfun$build$1(BuildAction.scala:28)
    at scala.collection.LinearSeqOps.foldLeft(LinearSeq.scala:183)
    at scala.collection.LinearSeqOps.foldLeft$(LinearSeq.scala:179)
    at scala.collection.immutable.List.foldLeft(List.scala:79)
    at io.gatling.core.structure.BuildAction.build(BuildAction.scala:27)
    at io.gatling.core.structure.BuildAction.build$(BuildAction.scala:26)
    at io.gatling.core.structure.ScenarioBuilder.build(StructureBuilder.scala:57)
    at io.gatling.core.structure.PopulationBuilder.build(PopulationBuilder.scala:93)
    at io.gatling.core.scenario.SimulationParams.buildScenario(Simulation.scala:195)
    at io.gatling.core.scenario.SimulationParams.$anonfun$scenarioFlows$1(Simulation.scala:199)
    at scala.collection.immutable.List.map(List.scala:246)
    at io.gatling.core.scenario.SimulationParams.scenarioFlows(Simulation.scala:199)
    at io.gatling.app.Runner.load(Runner.scala:89)
    at io.gatling.app.Runner.run(Runner.scala:57)
    at io.gatling.app.Gatling$.start(Gatling.scala:89)
    at io.gatling.app.Gatling$.fromArgs(Gatling.scala:51)
    at io.gatling.app.Gatling$.fromSbtTestFramework(Gatling.scala:47)
    at io.gatling.sbt.GatlingTask.liftedTree1$1(GatlingTask.scala:51)
    at io.gatling.sbt.GatlingTask.execute(GatlingTask.scala:50)
    at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:413)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
Simulation com.github.phisgr.example.DynamicExample started...

As the log suggests, it could be a problem that a network port got blocked. But i m not really sure on this issue. Can someone have a look and suggest the solution? Thank you.

问题回答

日志的严谨度为 DEBUG ,您可以从中推断出该例外没有问题。





相关问题
How to flatten a List of different types in Scala?

I have 4 elements:List[List[Object]] (Objects are different in each element) that I want to zip so that I can have a List[List[obj1],List[obj2],List[obj3],List[obj4]] I tried to zip them and I ...

To use or not to use Scala for new Java projects? [closed]

I m impressed with Twitter and investigating to use Scala for a new large scale web project with Hibernate and Wicket. What do you think about Scala, and should I use it instead of Java? EDIT: And, ...

Why does Scala create a ~/tmp directory when I run a script?

When I execute a Scala script from the command line, a directory named "tmp" is created in my home directory. It is always empty, so I simply deleted it without any apparent problem. Of course, when I ...

Include jar file in Scala interpreter

Is it possible to include a jar file run running the Scala interpreter? My code is working when I compile from scalac: scalac script.scala -classpath *.jar But I would like to be able to include a ...

Scala and tail recursion

There are various answers on Stack Overflow which explain the conditions under which tail recursion is possible in Scala. I understand the limitations and how and where I can take advantage of tail ...

热门标签