Disable time-travel by default (#21775)

Signed-off-by: Enwei Jiao <enwei.jiao@zilliz.com>
This commit is contained in:
Enwei Jiao 2023-01-18 13:57:43 +08:00 committed by GitHub
parent 3e21d25de5
commit cecd59d940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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

View File

@ -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())