From 0954014c6dbfebdcf8c32c8ca2b67560f3af96c8 Mon Sep 17 00:00:00 2001 From: jaime Date: Thu, 15 Dec 2022 18:31:23 +0800 Subject: [PATCH] [skip e2e] Fix broken default parameters for seal segment policy (#21207) Signed-off-by: yun.zhang Signed-off-by: yun.zhang --- internal/datacoord/segment_manager.go | 3 ++- internal/util/paramtable/component_param.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/datacoord/segment_manager.go b/internal/datacoord/segment_manager.go index 45165441bb..fc705892a8 100644 --- a/internal/datacoord/segment_manager.go +++ b/internal/datacoord/segment_manager.go @@ -24,12 +24,13 @@ import ( "time" "github.com/milvus-io/milvus-proto/go-api/commonpb" + "go.uber.org/zap" + "github.com/milvus-io/milvus/internal/log" "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/types" "github.com/milvus-io/milvus/internal/util/trace" "github.com/milvus-io/milvus/internal/util/tsoutil" - "go.uber.org/zap" ) var ( diff --git a/internal/util/paramtable/component_param.go b/internal/util/paramtable/component_param.go index a157a9ec70..563bf723e6 100644 --- a/internal/util/paramtable/component_param.go +++ b/internal/util/paramtable/component_param.go @@ -1302,7 +1302,7 @@ func (p *dataCoordConfig) init(base *BaseTable) { p.SegmentSealProportion = ParamItem{ Key: "dataCoord.segment.sealProportion", Version: "2.0.0", - DefaultValue: "0", + DefaultValue: "0.25", } p.SegmentSealProportion.Init(base.mgr) @@ -1316,7 +1316,7 @@ func (p *dataCoordConfig) init(base *BaseTable) { p.SegmentMaxLifetime = ParamItem{ Key: "dataCoord.segment.maxLife", Version: "2.0.0", - DefaultValue: "24", + DefaultValue: "86400", } p.SegmentMaxLifetime.Init(base.mgr)