mirror of https://github.com/milvus-io/milvus.git
[skip e2e] Add note for design doc (#13589)
Signed-off-by: yhmo <yihua.mo@zilliz.com>pull/13601/head
parent
cc04834b81
commit
9d65ba3393
|
@ -26,23 +26,23 @@ DataNode ignites Flush&Drop
|
||||||
|
|
||||||
**Plan 1: Picked**
|
**Plan 1: Picked**
|
||||||
|
|
||||||
Add a `dropped` flag in `SaveBinlogPathRequest` proto
|
Add a `dropped` flag in `SaveBinlogPathRequest` proto.
|
||||||
|
|
||||||
DataNode
|
DataNode
|
||||||
- Flush all segments in this vChannel, When Flush&Drop, set the `dropped` flag true.
|
- Flush all segments in this vChannel, When Flush&Drop, set the `dropped` flag true.
|
||||||
- If fails, retry at most 10 times and restart
|
- If fails, retry at most 10 times and restart.
|
||||||
|
|
||||||
DataCoord
|
DataCoord
|
||||||
- DataCoord marks segmentInfo as `dropped`, doesn't remove segmentInfos from etcd
|
- DataCoord marks segmentInfo as `dropped`, doesn't remove segmentInfos from etcd.
|
||||||
- When recovery, check if the segments in the vchannel are all dropped
|
- When recovery, check if the segments in the vchannel are all dropped.
|
||||||
- if not, recover before the drop
|
- if not, recover before the drop.
|
||||||
- if so, no need to recover the vchannel
|
- if so, no need to recover the vchannel.
|
||||||
|
|
||||||
Pros:
|
Pros:
|
||||||
1. The easiest approach in both DataNode and DataCoord
|
1. The easiest approach in both DataNode and DataCoord.
|
||||||
2. DN can reuse the current flush manager procedure
|
2. DN can reuse the current flush manager procedure.
|
||||||
Cons:
|
Cons:
|
||||||
1. The No. rpc call is equal to the No. segments in a collection, expensive
|
1. The No. rpc call is equal to the No. segments in a collection, expensive.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue