enhance: Add more info in logs (#36731)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
XuanYang-cn 2024-10-10 17:51:25 +08:00 committed by GitHub
parent a5f98e4cb3
commit 290ceb4e84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -90,7 +90,7 @@ func NewChannelManager(pipelineParams *util.PipelineParams, fgManager pipeline.F
func (m *ChannelManagerImpl) Submit(info *datapb.ChannelWatchInfo) error {
channel := info.GetVchan().GetChannelName()
// skip enqueue datacoord re-submit the same operations
// skip enqueue the same operation resubmmited by datacoord
if runner, ok := m.opRunners.Get(channel); ok {
if _, exists := runner.Exist(info.GetOpID()); exists {
log.Warn("op already exist, skip", zap.Int64("opID", info.GetOpID()), zap.String("channel", channel))
@ -400,7 +400,7 @@ func (r *opRunner) watchWithTimer(info *datapb.ChannelWatchInfo) *opState {
return
case <-tickler.GetProgressSig():
log.Info("Reset timer for tickler updated")
log.Info("Reset timer for tickler updated", zap.Int32("current progress", tickler.Progress()))
timer.Reset(watchTimeout)
case <-successSig:

View File

@ -115,9 +115,10 @@ func (t *mixCompactionTask) preCompact() error {
outputSegmentCount := int64(math.Ceil(float64(currSize) / float64(t.targetSize)))
log.Info("preCompaction analyze",
zap.Int64("planID", t.GetPlanID()),
zap.Int64("currSize", currSize),
zap.Int64("inputSize", currSize),
zap.Int64("targetSize", t.targetSize),
zap.Int64("estimatedSegmentCount", outputSegmentCount),
zap.Int("inputSegmentCount", len(t.plan.GetSegmentBinlogs())),
zap.Int64("estimatedOutputSegmentCount", outputSegmentCount),
)
return nil