Skip to content

Commit

Permalink
Handle feedback.
Browse files Browse the repository at this point in the history
Signed-off-by: Bin Shi <binshi.bing@gmail.com>
  • Loading branch information
binshi-bing committed Jun 25, 2023
1 parent 09e6e45 commit 6eee516
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/tso/keyspace_group_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,10 @@ func (kgm *KeyspaceGroupManager) primaryPriorityCheckLoop() {
case <-ctx.Done():
default:
member.ResetLeader()
log.Info("reset primary", zap.Uint32("keyspace-group-id", kg.ID))
log.Info("reset primary",
zap.String("local-address", kgm.tsoServiceID.ServiceAddr),
zap.Uint32("keyspace-group-id", kg.ID),
zap.Int("local-priority", localPriority))
}
} else {
log.Warn("no need to reset primary as the replicas with higher priority are offline",
Expand Down

0 comments on commit 6eee516

Please sign in to comment.