mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
Disable time-travel by default (#21775)
Signed-off-by: Enwei Jiao <enwei.jiao@zilliz.com>
This commit is contained in:
parent
3e21d25de5
commit
cecd59d940
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user