Skip to content

Commit

Permalink
add some logs to help debug
Browse files Browse the repository at this point in the history
Signed-off-by: yibin87 <[email protected]>
  • Loading branch information
yibin87 committed Jan 13, 2025
1 parent 717da62 commit 94d41eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/executor/internal/mpp/local_mpp_coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ func (c *localMppCoordinator) fillSameZoneFlagForExchange(exec *tipb.Executor, t
receiverZone, receiverExist := zoneMap[taskMeta.GetAddress()]
sameZoneFlags = append(sameZoneFlags, !receiverExist || taskZoneLabel == receiverZone)
}
logutil.BgLogger().Warn(fmt.Sprintf("unknown new tipb protocol %v %v", exec.ExecutorId, sameZoneFlags))
exec.ExchangeSender.SameZoneFlag = sameZoneFlags
case tipb.ExecType_TypeExchangeReceiver:
sameZoneFlags := make([]bool, 0, len(exec.ExchangeReceiver.EncodedTaskMeta))
Expand All @@ -418,6 +419,7 @@ func (c *localMppCoordinator) fillSameZoneFlagForExchange(exec *tipb.Executor, t
senderZone, senderExist := zoneMap[taskMeta.GetAddress()]
sameZoneFlags = append(sameZoneFlags, !senderExist || taskZoneLabel == senderZone)
}
logutil.BgLogger().Warn(fmt.Sprintf("unknown new tipb protocol %v %v", exec.ExecutorId, sameZoneFlags))
exec.ExchangeReceiver.SameZoneFlag = sameZoneFlags
case tipb.ExecType_TypeJoin:
children = append(children, exec.Join.Children...)
Expand Down

0 comments on commit 94d41eb

Please sign in to comment.