Skip to content
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]: A new thread is created but not released each time the connections.connect() is failed #2646

Closed
1 task done
yhmo opened this issue Feb 17, 2025 · 1 comment
Closed
1 task done
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@yhmo
Copy link
Contributor

yhmo commented Feb 17, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Stop milvus server, and use this snippet to reproduce:

while True:
    try:
        print("thread count:", threading.active_count())

        connections.connect(host='127.0.0.1', port='19530')
        break
    except MilvusException as ex:
        print(ex)

The thread count will continue to increase. Reproducible on all versions of pymilvus.

milvus-io/milvus#39913

Expected Behavior

No response

Steps/Code To Reproduce behavior

Environment details

- Hardware/Softward conditions (OS, CPU, GPU, Memory):
- Method of installation (Docker, or from source):
- Milvus version (v0.3.1, or v0.4.0):
- Milvus configuration (Settings you made in `server_config.yaml`):

Anything else?

No response

@XuanYang-cn
Copy link
Contributor

/assign @yhmo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants