Skip to content

Commit

Permalink
Fix log level (#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviszhen authored Mar 8, 2022
1 parent b074b33 commit f4f8a5f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pkg/frontend/epochgc.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,7 @@ func (pci *PDCallbackImpl) PersistentWorkerRoutine(msgChan chan *ChanMessage, kv
}
err := kv.PutCustomData(CLUSTER_EPOCH_KEY, msg.body)
if err != nil {
//panic(err)
logutil.Fatal(err.Error())
logutil.Errorf(err.Error())
}

case MSG_TYPE_SERVER_INFO:
Expand All @@ -487,8 +486,7 @@ func (pci *PDCallbackImpl) PersistentWorkerRoutine(msgChan chan *ChanMessage, kv
//save kv<server,maximumRemovableEpoch>
err := kv.BatchPutCustomData(msg.body2, msg.body3)
if err != nil {
//panic(err)
logutil.Fatal(err.Error())
logutil.Errorf(err.Error())
}
case MSG_TYPE_MINI_REM_EPOCH:
if pci.enableLog {
Expand All @@ -497,8 +495,7 @@ func (pci *PDCallbackImpl) PersistentWorkerRoutine(msgChan chan *ChanMessage, kv
//save minimumRemovableEpoch
err := kv.PutCustomData(MINI_REM_EPOCH_KEY, msg.body)
if err != nil {
//panic(err)
logutil.Fatal(err.Error())
logutil.Errorf(err.Error())
}
}
}
Expand Down Expand Up @@ -609,7 +606,8 @@ func (sci *PDCallbackImpl) HandleHeartbeatRsp(data []byte) error {
for _, ep := range eps {
v := sci.epoch_info[ep]
if v != 0 {
panic(fmt.Errorf("query_cnt is not zero in removableEpoch. epoch %d epoch_info %v", ep, sci.epoch_info))
logutil.Errorf("query_cnt is not zero in removableEpoch. epoch %d epoch_info %v", ep, sci.epoch_info)
break
}

sci.removeEpochInfoUnsafe(ep)
Expand Down

0 comments on commit f4f8a5f

Please sign in to comment.