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]: Failed to execute insert task in task scheduler: proxy TaskCondition context Done;message send timeout: TimeoutError #39064

Open
1 task done
TonyAnn opened this issue Jan 8, 2025 · 8 comments
Assignees
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.
Milestone

Comments

@TonyAnn
Copy link

TonyAnn commented Jan 8, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version:2.3.21
- Deployment mode(standalone or cluster):cluster
- MQ type(rocksmq, pulsar or kafka):    pulsar 
- SDK version(e.g. pymilvus v2.0.0rc2):
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

A single table write timeout caused the system to be blocked. The problem was fixed after restarting the abnormal proxy pod. Please help locate the problem.

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

my-release-milvus-proxy-f6c8fd65b-rcgsv.log
my-release-milvus-proxy-f6c8fd65b-tl9h9.log

Anything else?

No response

@TonyAnn TonyAnn added kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 8, 2025
@yanliang567
Copy link
Contributor

@TonyAnn what do you mean "the system to be blocked"?

@TonyAnn
Copy link
Author

TonyAnn commented Jan 8, 2025

@TonyAnn what do you mean "the system to be blocked"?
@yanliang567 Writing and deleting to this table are blocked until the pod is restarted, then normal writing and deleting can be resumed.

@yanliang567
Copy link
Contributor

/assign @weiliu1031
/unassign

@yanliang567 yanliang567 added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 8, 2025
@yanliang567 yanliang567 added this to the 2.4.21 milestone Jan 8, 2025
@weiliu1031
Copy link
Contributor

@TonyAnn When a write operation encounters an exception, it seems that the proxy is in an abnormal state. Was there any operation performed on the proxy prior to this issue?

@TonyAnn
Copy link
Author

TonyAnn commented Jan 8, 2025

image

At that point in time, when performing write and delete operations

@weiliu1031
Copy link
Contributor

@TonyAnn Could you please confirm if a timeout is set for write operations? According to the log details, it appears that a large number of write requests have accumulated on the proxy, and these requests are failing due to timeouts.

@TonyAnn
Copy link
Author

TonyAnn commented Jan 8, 2025

The client does not specify a timeout when writing

@weiliu1031
Copy link
Contributor

weiliu1031 commented Jan 9, 2025

The issue seems to be caused by the context (ctx) used for the insertion request timing out after 10 seconds, leading to the failure of the entire insertion operation. Upon reviewing the logic in Milvus Proxy and pymilvus, it has been confirmed that Milvus does not impose a 10-second timeout internally. Therefore, the potential causes of this issue might include:

  1. A timeout was explicitly set via the timeout parameter when calling pymilvus.
  2. There is a load balancer (LB) between pymilvus and the proxy, and the LB is configured with a connection timeout. We've encountered similar issues in the past.

Please verify these details, as they might help identify and resolve the problem.
/cc @TonyAnn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

3 participants