Skip to content

Commit

Permalink
mcs: add log for finishing split (#6656)
Browse files Browse the repository at this point in the history
ref #5895

Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
rleungx and ti-chi-bot[bot] committed Jun 21, 2023
1 parent 3431779 commit e5ca91e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/tso_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (c *tsoClient) updateTSOLocalServAddrs(allocatorMap map[string]string) erro
return err
}
c.tsoAllocators.Store(dcLocation, addr)
log.Info("[tso] switch dc tso allocator serving address",
log.Info("[tso] switch dc tso local allocator serving address",
zap.String("dc-location", dcLocation),
zap.String("new-address", addr),
zap.String("old-address", oldAddr))
Expand All @@ -227,7 +227,7 @@ func (c *tsoClient) updateTSOLocalServAddrs(allocatorMap map[string]string) erro

func (c *tsoClient) updateTSOGlobalServAddr(addr string) error {
c.tsoAllocators.Store(globalDCLocation, addr)
log.Info("[tso] switch dc tso allocator serving address",
log.Info("[tso] switch dc tso global allocator serving address",
zap.String("dc-location", globalDCLocation),
zap.String("new-address", addr))
c.scheduleCheckTSODispatcher()
Expand Down
1 change: 1 addition & 0 deletions pkg/keyspace/tso_keyspace_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ func (m *GroupManager) FinishSplitKeyspaceByID(splitTargetID uint32) error {
// Update the keyspace group cache.
m.groups[endpoint.StringUserKind(splitTargetKg.UserKind)].Put(splitTargetKg)
m.groups[endpoint.StringUserKind(splitSourceKg.UserKind)].Put(splitSourceKg)
log.Info("finish split keyspace group", zap.Uint32("split-source-id", splitSourceKg.ID), zap.Uint32("split-target-id", splitTargetID))
return nil
}

Expand Down

0 comments on commit e5ca91e

Please sign in to comment.