enhance: compaction use ChannelManager interface (#29530)

Rewrite compaction_test.go

See also: #29447

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
pull/29627/head
XuanYang-cn 2024-01-02 18:08:49 +08:00 committed by GitHub
parent 0db6b26842
commit f1b6ccf305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 244 additions and 772 deletions

View File

@ -111,7 +111,7 @@ type compactionPlanHandler struct {
meta CompactionMeta
allocator allocator
chManager *ChannelManagerImpl
chManager ChannelManager
scheduler Scheduler
sessions SessionManager
@ -120,7 +120,7 @@ type compactionPlanHandler struct {
stopWg sync.WaitGroup
}
func newCompactionPlanHandler(sessions SessionManager, cm *ChannelManagerImpl, meta CompactionMeta, allocator allocator,
func newCompactionPlanHandler(sessions SessionManager, cm ChannelManager, meta CompactionMeta, allocator allocator,
) *compactionPlanHandler {
return &compactionPlanHandler{
plans: make(map[int64]*compactionTask),

File diff suppressed because it is too large Load Diff