Fix segments not removed from flushingCache (#10738)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2021-10-27 16:06:24 +08:00 committed by GitHub
parent a22964423f
commit 169af67eb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -481,7 +481,6 @@ func TestAvgAssignRegisterPolicy(t *testing.T) {
memkv.NewMemoryKV(),
map[int64]*NodeChannelInfo{
1: {1, []*channel{{"ch1", 1}, {"ch2", 1}}},
2: {2, []*channel{{"ch3", 1}, {"ch4", 1}}},
},
},
3,

View File

@ -212,8 +212,8 @@ func (dsService *dataSyncService) initNodes(vchanInfo *datapb.VchannelInfo) erro
if rsp.ErrorCode != commonpb.ErrorCode_Success {
return fmt.Errorf("data service save bin log path failed, reason = %s", rsp.Reason)
}
dsService.flushingSegCache.Remove(req.GetSegmentID())
return nil
})
c := &nodeConfig{