...
- Insert channel, handle following msg types:
- DDL msg (CreateCollection/DropCollection/CreatePartition/DropPartition)
- InsertMsg
- DeleteMsg
- Search Query channel, handle following msg types:
- SearchMsg
- RetrieveMsg
...
QueryNode consumes messages from both Insert channel and Search Query channel.
To support delete, we will send DeleteMsg into Insert channel also.
...
Since Milvus's storage is an append-only, `delete` function is implemented using soft delete, setting a flag on entity to indicate this entity has been deleted.
...
- Proxy receives a delete request,
- parse `expr` to get primary keys, then split DeleteMsg into insert channels by primary keys (done)
- DataNode receives a delete request from the insert channel, save it in buffer, and write it into the delta channelwatches insert channel
- receive DeleteMsg and persist delete data
- when DataNode start up
- load , load all segments info from Minio into memory (done)
- update datanode flowgraph
- when DDNode receive DeleteMsg, save it into FlowGraphMsg structure, and send FlowGraphMsg to next node InsertBufferNode (done)
- when InsertBufferNode receive FlowGraphMsg, process InsertMsg in it, then wrapper DeleteMsg into another FlowGraphMsg and sent it to next node DeleteNode (done)
- when DeleteNode receive FlowGraphMsg, process DeleteMsg in it, save deleted ids and timestamps into delBuf (done)
- update DeleteNode to handle flushMsg
- add another flushChan for DeleteNode (done)
- when DeleteNode
- receives flushMsg, save all data in delBuf into
- MinIO
- deleted ids and timestamps are saved into two separated Minio file with name "/by-dev/deltalog/collectionID/partitionID/segmentID/xxx" (done)
- receive DeleteMsg and persist delete data
3. DataNode notifies IndexNode to building indexes
...
- DataNode forwards ttMsg and DeleteMsg to delta channel (doing)
Proposal delete operation serving search(sealed+growing)
...