未验证 提交 cae6d48f 编写于 作者: E Enwei Jiao 提交者: GitHub

Disable time-travel by default (#21788)

Signed-off-by: NEnwei Jiao <enwei.jiao@zilliz.com>
上级 0ebe4c95
......@@ -380,7 +380,7 @@ common:
defaultPartitionName: "_default" # default partition name for a collection
defaultIndexName: "_default_idx" # default index name
retentionDuration: 86400 # time travel reserved time, insert/delete will not be cleaned in this period. 1 days in seconds
retentionDuration: 0 # time travel reserved time, insert/delete will not be cleaned in this period. disable it by default
entityExpiration: -1 # Entity expiration in seconds, CAUTION make sure entityExpiration >= retentionDuration and -1 means never expire
gracefulTime: 5000 # milliseconds. it represents the interval (in ms) by which the request arrival time needs to be subtracted in the case of Bounded Consistency.
......
......@@ -28,7 +28,7 @@ import (
const (
// DefaultRetentionDuration defines the default duration for retention which is 1 days in seconds.
DefaultRetentionDuration = 3600 * 24
DefaultRetentionDuration = 0
// DefaultIndexSliceSize defines the default slice size of index file when serializing.
DefaultIndexSliceSize = 16
......
......@@ -57,7 +57,7 @@ func TestComponentParam(t *testing.T) {
// test the case coommo
Params.Base.Save("common.entityExpiration", "50")
Params.initEntityExpiration()
assert.Equal(t, int64(Params.EntityExpirationTTL.Seconds()), int64(DefaultRetentionDuration))
assert.Equal(t, int64(Params.EntityExpirationTTL.Seconds()), int64(50))
assert.NotEqual(t, Params.SimdType, "")
t.Logf("knowhere simd type = %s", Params.SimdType)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册