[Draft] Python repro example for ping timeout issue#39359
Draft
sreenithi wants to merge 1 commit intogrpc:masterfrom
Draft
[Draft] Python repro example for ping timeout issue#39359sreenithi wants to merge 1 commit intogrpc:masterfrom
sreenithi wants to merge 1 commit intogrpc:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR includes the Python server and client code to reproduce the ping timeout issue that was recently reported by Dataflow as well as in issue #38282. This PR is only meant for reference and doesn't require to be merged to the repo.
Steps to reproduce the ping timeout via Bazel in Python:
export GRPC_TRACE=tcp,http,http2_keepalive,http2_ping,polling,polling_apiexport GRPC_VERBOSITY=debugbazel run //examples/python/ping_timeout_repro:greeter_server_py --copt=-DGRPC_DO_NOT_INSTANTIATE_POSIX_POLLERto start the Python serverbazel run //examples/python/ping_timeout_repro:repro_greeter_client_py --copt=-DGRPC_DO_NOT_INSTANTIATE_POSIX_POLLERto start the Python clientSteps to reproduce the ping timeout directly using Python without Bazel:
export GRPC_TRACE=tcp,http,http2_keepalive,http2_ping,polling,polling_apiexport GRPC_VERBOSITY=debugpython examples/python/ping_timeout_repro/greeter_server.pyto start the Python serverexamples/python/ping_timeout_repro/repro_greeter_client.pyto start the Python clientNOTE: The issue can only be reproduced via Bazel when including the
--coptflag via command line, however if running directly via Python it doesn't require the command-line flag. Running the example as described above with the specific debug trace logs should show log lines such as: