未验证 提交 f7bd054a 编写于 作者: C congqixia 提交者: GitHub

Set EnableGarbageCollection to true by default (#18305)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 c9756359
......@@ -206,7 +206,7 @@ dataCoord:
clientMaxRecvSize: 104857600 # 100 MB, 100 * 1024 * 1024
clientMaxSendSize: 104857600 # 100 MB, 100 * 1024 * 1024
enableCompaction: true # Enable data segment compression
enableGarbageCollection: false
enableGarbageCollection: true
segment:
maxSize: 512 # Maximum size of a segment in MB
......
......@@ -211,7 +211,7 @@ dataCoord:
address: localhost
port: 13333
enableCompaction: true # Enable data segment compression
enableGarbageCollection: false
enableGarbageCollection: true
segment:
maxSize: 512 # Maximum size of a segment in MB
......
......@@ -1045,7 +1045,7 @@ func (p *dataCoordConfig) initGlobalCompactionInterval() {
// -- GC --
func (p *dataCoordConfig) initEnableGarbageCollection() {
p.EnableGarbageCollection = p.Base.ParseBool("dataCoord.enableGarbageCollection", false)
p.EnableGarbageCollection = p.Base.ParseBool("dataCoord.enableGarbageCollection", true)
}
func (p *dataCoordConfig) initGCInterval() {
......
......@@ -278,6 +278,8 @@ func TestComponentParam(t *testing.T) {
t.Run("test dataCoordConfig", func(t *testing.T) {
Params := CParams.DataCoordCfg
assert.Equal(t, 24*60*60*time.Second, Params.SegmentMaxLifetime)
assert.True(t, Params.EnableGarbageCollection)
})
t.Run("test dataNodeConfig", func(t *testing.T) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册