-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hello, I'm trying to include this library in a suit of grpc benchmarks.
I have an issue with the server, when I send requests from a ghz client it fails with this error:
E0805 16:39:28.639090500 1 byte_buffer.cc:91] Should never reach here.
*** caught segfault ***
address (nil), cause 'unknown'
Traceback:
1: run(server_functions, channel, hooks)
2: start_server(impl, "0.0.0.0:50051")
An irrecoverable exception occurred. R is aborting now ...
It's possible to reproduce this on a linux or macos machine by just cloning this branch: https://github.com/LesnyRumcajs/grpc_bench/tree/r-bench
(the relevant code is inside the r_grpc directory)
Build the docker image with the server
docker build --force-rm -f r_grpc/Dockerfile -t r_grpc_test .
Start the server
docker run --rm -it --network host r_grpc_test
Start the client
docker run --rm --network=host -v "${PWD}"/proto:/proto:ro --entrypoint=ghz infoblox/ghz:0.0.1 --proto=/proto/helloworld/helloworld.proto --call=helloworld.Greeter.SayHello --insecure --connections=5 --duration 5s -d "{\"name\":\"it's not as performant as we expected\"}" 127.0.0.1:50051
output of the client:
Status code distribution:
[OK] 4 responses
[Unavailable] 273676 responses
[Canceled] 41 responses
I may be doing some silly mistake in the server implementation.