Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
vmogilev committed Jan 11, 2024
1 parent bbbf3c2 commit 8de01ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions go/vt/vttablet/tabletmanager/replmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ limitations under the License.
package tabletmanager

import (
"context"
"os"
"path"
"sync"
"time"

"context"

"github.com/davecgh/go-spew/spew"
"vitess.io/vitess/go/mysql"
"vitess.io/vitess/go/timer"
"vitess.io/vitess/go/vt/log"
Expand Down Expand Up @@ -104,6 +104,7 @@ func (rm *replManager) check() {

func (rm *replManager) checkActionLocked() {
status, err := rm.tm.MysqlDaemon.ReplicationStatus()
log.Infof("vm-debug: %s", spew.Sdump(status))
if err != nil {
if err != mysql.ErrNotReplica {
return
Expand All @@ -112,6 +113,8 @@ func (rm *replManager) checkActionLocked() {
// If only one of the threads is stopped, it's probably
// intentional. So, we don't repair replication.
if status.SQLHealthy() || status.IOHealthy() {
log.Infof("vm-debug: status.SQLHealthy:%v status.IOHealthy:%v", status.SQLHealthy(), status.IOHealthy())

return
}
}
Expand Down

0 comments on commit 8de01ee

Please sign in to comment.