-
Notifications
You must be signed in to change notification settings - Fork 11.1k
bug(python): Possible regression in grpcio==1.59.0 related to grpc thread pool hanging #34672
Copy link
Copy link
Closed
Description
What version of gRPC and what language are you using?
grpcio==1.59.0
python
What operating system (Linux, Windows,...) and version?
Linux (ubuntu, rodete)
What runtime / compiler are you using (e.g. python version or version of gcc)
Python 3.9.16
gcc version 13.2.0 (Debian 13.2.0-4)
What did you do?
I ran the sample code in googleapis/python-aiplatform#2805 (comment) provided by a user of google-cloud-aiplatform
- Install
google-cloud-aiplatform
pip install google-cloud-aiplatform
- Run this code
from google.cloud import aiplatform_v1
from concurrent.futures import ThreadPoolExecutor
def init_model_gardern_service_client(_):
# Create a client
client = aiplatform_v1.ModelGardenServiceClient()
def parallel_execution():
with ThreadPoolExecutor() as executor:
results = list(executor.map(init_model_gardern_service_client, [None]*2))
if __name__ == "__main__":
parallel_execution()
The code hangs with grpcio==1.59.0 but not grpcio==1.54.0, grpcio==1.56.0, grpcio==1.58.0 as an example
What did you expect to see?
I expected the code to run successfully.
What did you see instead?
Threads were hanging as reported in #31885
Anything else we should know about your project / environment?
I'm not able to reproduce the issue with other versions of grpc such as grpcio==1.54.0, grpcio==1.56.0, grpcio==1.58.0 so it's possible that there is a regression in grpcio==1.59.0
Reactions are currently unavailable