mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/{storage,mergeset}: log the duration for flushing in-memory parts on graceful shutdown
This commit is contained in:
parent
eed32b368c
commit
d99d222f0a
2 changed files with 2 additions and 4 deletions
|
@ -374,9 +374,8 @@ func (tb *Table) MustClose() {
|
|||
|
||||
logger.Infof("flushing inmemory parts to files on %q...", tb.path)
|
||||
startTime = time.Now()
|
||||
|
||||
// Flush inmemory items the last time before exit.
|
||||
tb.flushInmemoryItems()
|
||||
logger.Infof("inmemory parts have been successfully flushed to files in %.3f seconds at %q", time.Since(startTime).Seconds(), tb.path)
|
||||
|
||||
logger.Infof("waiting for flush callback worker to stop on %q...", tb.path)
|
||||
startTime = time.Now()
|
||||
|
|
|
@ -722,9 +722,8 @@ func (pt *partition) MustClose() {
|
|||
|
||||
logger.Infof("flushing inmemory parts to files on %q...", pt.smallPartsPath)
|
||||
startTime = time.Now()
|
||||
|
||||
// Flush inmemory rows the last time before exit.
|
||||
pt.flushInmemoryRows()
|
||||
logger.Infof("inmemory parts have been flushed to files in %.3f seconds on %q", time.Since(startTime).Seconds(), pt.smallPartsPath)
|
||||
|
||||
// Remove references from inmemoryParts, smallParts and bigParts, so they may be eventually closed
|
||||
// after all the searches are done.
|
||||
|
|
Loading…
Reference in a new issue