Skip to content

Commit

Permalink
Remove the fatal log
Browse files Browse the repository at this point in the history
Signed-off-by: JmPotato <[email protected]>
  • Loading branch information
JmPotato committed Apr 17, 2023
1 parent da8529c commit d6bce4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/tso/keyspace_group_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,9 @@ func (kgm *KeyspaceGroupManager) updateKeyspaceGroup(group *endpoint.KeyspaceGro
splitSourceAM, _ := kgm.getKeyspaceGroupMeta(splitSource)
if splitSourceAM == nil {
// TODO: guarantee that the split source keyspace group is initialized before.
log.Fatal("the split source keyspace group is not initialized",
log.Error("the split source keyspace group is not initialized",
zap.Uint32("source", splitSource))
return
}
participant.SetPreCampaignChecker(func(leadership *election.Leadership) bool {
return splitSourceAM.getMember().IsLeader()
Expand Down

0 comments on commit d6bce4c

Please sign in to comment.