Skip to content

Commit

Permalink
Add Revert in DataCoord meta catalog (milvus-io#19313)
Browse files Browse the repository at this point in the history
See also: milvus-io#19072

Signed-off-by: yangxuan <[email protected]>

Signed-off-by: yangxuan <[email protected]>
  • Loading branch information
XuanYang-cn authored Sep 23, 2022
1 parent 432b5dd commit 253fb51
Show file tree
Hide file tree
Showing 5 changed files with 445 additions and 39 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,9 @@ rpm: install
@cp -r configs ~/rpmbuild/BUILD/
@cp -r build/rpm/services ~/rpmbuild/BUILD/
@QA_RPATHS="$$[ 0x001|0x0002|0x0020 ]" rpmbuild -ba ./build/rpm/milvus.spec

mock-datanode:
mockery --name=DataNode --dir=$(PWD)/internal/types --output=$(PWD)/internal/mocks --filename=mock_datanode.go --with-expecter

mock-tnx-kv:
mockery --name=TxnKV --dir=$(PWD)/internal/kv --output=$(PWD)/internal/kv/mocks --filename=TxnKV.go --with-expecter
286 changes: 286 additions & 0 deletions internal/kv/mocks/TxnKV.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions internal/metastore/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ type DataCoordCatalog interface {
MarkChannelDeleted(ctx context.Context, channel string) error
IsChannelDropped(ctx context.Context, channel string) bool
DropChannel(ctx context.Context, channel string) error

RevertAlterSegmentsAndAddNewSegment(ctx context.Context, segments []*datapb.SegmentInfo, removalSegment *datapb.SegmentInfo) error
}

type IndexCoordCatalog interface {
Expand Down
Loading

0 comments on commit 253fb51

Please sign in to comment.