-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: The Milvus Java SDK occasionally returns a null object when calling MilvusClientV2Pool.getClient("MME"), even if there are many available connections in the pool, the NullPointerException will still happen. #37188
Comments
/assign @yhmo |
I don't think it make sense to return null to user. when get connect and no available connections, we should just block and wait for a valid connection. Anyone interested in this? |
@xiaojunxiang2023 The similar root cause of this issue: #37613 (comment) The root cause: It has been fixed in v2.4.6: Behavior change of MilvusClientPool.getClient(): So, you can upgrade the sdk to the latest version. If you get an exception from getClient(), you can call it again. BTW: For Java sdk related issues, you can put them into the java sdk repo: https://github.com/milvus-io/milvus-sdk-java/issues |
Thanks for your help! |
Is there an existing issue for this?
Environment
Current Behavior
The Milvus Java SDK occasionally returns a null object when calling MilvusClientV2Pool.getClient("MME"), even if there are many available connections in the pool, the NullPointerException will still happen.
Client Code:
1. PoolConfig( ):
2. getClient( ):
1. ActiveClient is 6, IdleClient is 0, less than the TotalPerKey(50)
2. When request 1 is stuck during client.createCollection, and request 2 comes in and executes MilvusClientV2Pool.getClient("MME"), it receives a null object.
Expected Behavior
In situations where the connection pool is not full, it should not return a null object.
Steps To Reproduce
No response
Milvus Log
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: