diff --git a/configs/milvus.yaml b/configs/milvus.yaml index 5a6392e007..f7fe10f438 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -381,7 +381,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. diff --git a/internal/util/paramtable/component_param.go b/internal/util/paramtable/component_param.go index bf82df04f6..2eaacdda68 100644 --- a/internal/util/paramtable/component_param.go +++ b/internal/util/paramtable/component_param.go @@ -27,7 +27,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 diff --git a/internal/util/paramtable/component_param_test.go b/internal/util/paramtable/component_param_test.go index 70777ebbc7..0bdccffa8a 100644 --- a/internal/util/paramtable/component_param_test.go +++ b/internal/util/paramtable/component_param_test.go @@ -56,7 +56,7 @@ func TestComponentParam(t *testing.T) { // test the case coommo params.Save("common.entityExpiration", "50") - assert.Equal(t, Params.EntityExpirationTTL.GetAsInt64(), int64(DefaultRetentionDuration)) + assert.Equal(t, Params.EntityExpirationTTL.GetAsInt(), 50) assert.NotEqual(t, Params.SimdType.GetValue(), "") t.Logf("knowhere simd type = %s", Params.SimdType.GetValue())