Code Monkey home page Code Monkey logo

Comments (11)

smellthemoon avatar smellthemoon commented on September 27, 2024

/assign

from milvus.

yanliang567 avatar yanliang567 commented on September 27, 2024

/unassign

from milvus.

xiaofan-luan avatar xiaofan-luan commented on September 27, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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

image image DropDatabase has already passed the dbID, remove with prefix in snapshot may remove another db which has the same prefix. In the case that it is not easy to have the same prefix (such as collectionID), load will also have better performance.

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

is there a spliter for the key?
for example, we can remove db/ instead db.
if we concat the key with some delimiter, this is the fast way to fix

from milvus.

smellthemoon avatar smellthemoon commented on September 27, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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

image image DropDatabase has already passed the dbID, remove with prefix in snapshot may remove another db which has the same prefix. In the case that it is not easy to have the same prefix (such as collectionID), load will also have better performance.

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

is there a spliter for the key? for example, we can remove db/ instead db. if we concat the key with some delimiter, this is the fast way to fix

But in fact, the key removed here is the key itself, not the prefix of the key. For example, when creating database, the key root-coord/database/db-info/dbid will be saved. When dropping database, pass in root-coord/database/db-info/dbid as the prefix. If has the same prefixes, will cause other db to be removed too.
multiSaveAndRmove seems more appropriate.

from milvus.

xiaofan-luan avatar xiaofan-luan commented on September 27, 2024

can you give an example?

from milvus.

xiaofan-luan avatar xiaofan-luan commented on September 27, 2024

don't quite understand about this part

from milvus.

smellthemoon avatar smellthemoon commented on September 27, 2024

don't quite understand about this part

For example, you create 11 databases. The id of databases is 0-10. RootCoord will save the key "root-coord/database/db-info/dbID" in snapshot.
if you want to drop database(id =1), RootCoord will remove it by writing tombstone. the prefix here is "root-coord/database/db-info/1". snapshot will list all the keys with the prefix, and then save it. So in this case, dbID 10 will be listed for having the same prefix and will be written tombstone.

from milvus.

xiaofan-luan avatar xiaofan-luan commented on September 27, 2024

the easiest fix is to always drop root-coord/database/db-info/1/ ?

from milvus.

smellthemoon avatar smellthemoon commented on September 27, 2024

the easiest fix is to always drop root-coord/database/db-info/1/ ?

The keys now do not contain delimiters at the end, may bring some compatibility issues.

from milvus.

xiaofan-luan avatar xiaofan-luan commented on September 27, 2024

so we just want to delete 1 key?

from milvus.

smellthemoon avatar smellthemoon commented on September 27, 2024

so we just want to delete 1 key?

yes, from the code, it actually just want to delete 1 key, I have added the MultiSaveAndRemove in the snapshot interface.

from milvus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.