milvus-io / milvus

A cloud-native vector database, storage for next generation AI applications
https://milvus.io
Apache License 2.0
31.03k stars 2.95k forks source link

[Bug]: Encountered backlog problems when using preCreatedTopic #36021

Closed xige-16 closed 3 weeks ago

xige-16 commented 2 months ago

Is there an existing issue for this?

Environment

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

Current Behavior

When using preCreatedTopic, each pre-created topic has a pre-created-topic-check-xxx consumer group, but the corresponding consumer never consumes messages. It seems that this subscription is only used to check whether the topic exists, and the subscription is not unsubscribed after the check. This causes the topic to have a backlog.

https://github.com/milvus-io/milvus/blob/15ed76d1d63c7c10e173749cacfd30601916ea49/internal/rootcoord/dml_channels.go#L187-L199

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

xiaofan-luan commented 2 months ago

this is obviously a bug

yanliang567 commented 2 months ago

@xige-16 would you please to fix this issue ?

xige-16 commented 2 months ago

@xige-16 would you please to fix this issue ?

Okey

bigsheeper commented 3 weeks ago

should be fixed