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]: If a collection is dropped, its aliases cannot be displayed by list_aliases() #40236

Closed
1 task done
yhmo opened this issue Feb 27, 2025 · 4 comments
Closed
1 task done
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

@yhmo
Copy link
Contributor

yhmo commented Feb 27, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version: v2.5.4
- 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

If a collection is dropped, its aliases cannot be displayed by list_aliaes()

Expected Behavior

list_aliaes() should display its aliases even if a collection is dropped.

Steps To Reproduce

1. create a collection
2. assign an alias to the collection
3. drop the collection
4. call list_aliaes(), the alias is not displayed

Milvus Log

No response

Anything else?

No response

@yhmo yhmo 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 Feb 27, 2025
@yhmo yhmo changed the title [Bug]: if a collection is dropped, its aliases cannot be displayed by list_aliases() [Bug]: If a collection is dropped, its aliases cannot be displayed by list_aliases() Feb 27, 2025
Copy link

dosubot bot commented Feb 27, 2025

Hey @yhmo 👋, I'm here to help you with any bugs, questions, or contributions you have regarding Milvus. Let's work together to resolve your issue.

In Milvus v2.5.4, the behavior you're observing is actually the intended behavior. When a collection is dropped, any aliases associated with that collection are also dropped. This is confirmed by the test case test_alias_reuse_alias_name_from_dropped_collection, which shows that after dropping a collection, the list_aliases() function returns an empty list, indicating that the alias has been removed along with the collection [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@yanliang567
Copy link
Contributor

it is forbidden to drop a collection that has any aliases linked since milvus 2.5.5. @yhmo is it fixing this issue?

/assign @yhmo
/unassign

@sre-ci-robot sre-ci-robot assigned yhmo and unassigned yanliang567 Feb 28, 2025
@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 Feb 28, 2025
@yanliang567 yanliang567 modified the milestones: 2.5.5, 2.5.6 Feb 28, 2025
@xiaofan-luan
Copy link
Collaborator

@yanliang567
this should already be fixed on latest master, please verify on it

@yanliang567
Copy link
Contributor

yes, verified on v2.5.5.

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