lib/{mergeset,storage}: reduce the number of IFNO log messages like merged ... items across ... blocks in ... seconds

Log these messages if the merge takes more than 30 seconds instead of 10 seconds.
This commit is contained in:
Aliaksandr Valialkin 2021-05-23 14:02:29 +03:00
parent beee24ecee
commit 0fc857d363
2 changed files with 2 additions and 2 deletions

View file

@ -965,7 +965,7 @@ func (tb *Table) mergeParts(pws []*partWrapper, stopCh <-chan struct{}, isOuterP
} }
d := time.Since(startTime) d := time.Since(startTime)
if d > 10*time.Second { if d > 30*time.Second {
logger.Infof("merged %d items across %d blocks in %.3f seconds at %d items/sec to %q; sizeBytes: %d", logger.Infof("merged %d items across %d blocks in %.3f seconds at %d items/sec to %q; sizeBytes: %d",
outItemsCount, outBlocksCount, d.Seconds(), int(float64(outItemsCount)/d.Seconds()), dstPartPath, newPSize) outItemsCount, outBlocksCount, d.Seconds(), int(float64(outItemsCount)/d.Seconds()), dstPartPath, newPSize)
} }

View file

@ -1255,7 +1255,7 @@ func (pt *partition) mergeParts(pws []*partWrapper, stopCh <-chan struct{}) erro
} }
d := time.Since(startTime) d := time.Since(startTime)
if d > 10*time.Second { if d > 30*time.Second {
logger.Infof("merged %d rows across %d blocks in %.3f seconds at %d rows/sec to %q; sizeBytes: %d", logger.Infof("merged %d rows across %d blocks in %.3f seconds at %d rows/sec to %q; sizeBytes: %d",
outRowsCount, outBlocksCount, d.Seconds(), int(float64(outRowsCount)/d.Seconds()), dstPartPath, newPSize) outRowsCount, outBlocksCount, d.Seconds(), int(float64(outRowsCount)/d.Seconds()), dstPartPath, newPSize)
} }