mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +08:00
Change retention ticker time to 10 minutes (#9933)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
parent
2a1c679c5c
commit
2cfdf22897
@ -33,15 +33,15 @@ var RocksmqRetentionTimeInMinutes int64
|
||||
// RocksmqRetentionSizeInMB is the size of retention
|
||||
var RocksmqRetentionSizeInMB int64
|
||||
|
||||
// TickerTimeInSeconds is the time of expired check
|
||||
var TickerTimeInSeconds int64 = 6
|
||||
|
||||
// Const value that used to convert unit
|
||||
const (
|
||||
MB = 2 << 20
|
||||
MINUTE = 60
|
||||
)
|
||||
|
||||
// TickerTimeInSeconds is the time of expired check, default 10 minutes
|
||||
var TickerTimeInSeconds int64 = 10 * MINUTE
|
||||
|
||||
type topicPageInfo struct {
|
||||
pageEndID []UniqueID
|
||||
pageMsgSize map[UniqueID]int64
|
||||
|
||||
@ -34,6 +34,7 @@ func TestMain(m *testing.M) {
|
||||
log.Error("MkdirALl error for path", zap.Any("path", retentionPath))
|
||||
return
|
||||
}
|
||||
atomic.StoreInt64(&TickerTimeInSeconds, 6)
|
||||
code := m.Run()
|
||||
os.Exit(code)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user