Add datanode ut (#10433)

Signed-off-by: godchen <qingxiang.chen@zilliz.com>
pull/10618/head
godchen 2021-10-25 22:52:27 +08:00 committed by GitHub
parent 73343caaaa
commit 095a2378ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View File

@ -1254,6 +1254,23 @@ func TestGetRecoveryInfo(t *testing.T) {
},
},
},
Field2StatslogPaths: []*datapb.FieldBinlog{
{
FieldID: 1,
Binlogs: []string{
"/stats_log/file1",
"/stats_log/file2",
},
},
},
Deltalogs: []*datapb.DeltaLogInfo{
{
TimestampFrom: 0,
TimestampTo: 1,
DeltaLogPath: "/stats_log/file1",
DeltaLogSize: 1,
},
},
}
segment := createSegment(0, 0, 0, 100, 10, "ch1", commonpb.SegmentState_Flushed)
err := svr.meta.AddSegment(NewSegmentInfo(segment))

View File

@ -91,7 +91,7 @@ func (kv *mockMinioKVStatsError) MultiLoad(keys []string) ([]string, error) {
func getSimpleFieldBinlog() *datapb.FieldBinlog {
return &datapb.FieldBinlog{
FieldID: 100,
FieldID: 106,
Binlogs: []string{"test"},
}
}