未验证 提交 095a2378 编写于 作者: G godchen 提交者: GitHub

Add datanode ut (#10433)

Signed-off-by: Ngodchen <qingxiang.chen@zilliz.com>
上级 73343caa
......@@ -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))
......
......@@ -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"},
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册