charlely commented on code in PR #5326:
URL: https://github.com/apache/inlong/pull/5326#discussion_r935495169
##########
inlong-tubemq/tubemq-client-twins/tubemq-client-go/client/heartbeat.go:
##########
@@ -99,36 +99,45 @@ func (h *heartbeatManager) consumerHB2Master() {
}
rsp, err := h.sendHeartbeatC2M(m)
- if err != nil {
- log.Errorf("consumer hb err %s", err.Error())
+ if err != nil || !rsp.GetSuccess() {
+ errMsg := ""
+ if err != nil {
+ if e, ok := err.(*errs.Error); !ok {
+ log.Errorf("consumer hb err %s", err.Error())
+ h.consumer.masterHBRetry++
+ h.resetMasterHeartbeat()
Review Comment:
This Error need recalc heart timer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]