Skip to content

Commit

Permalink
moar debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
driv3r committed Oct 12, 2023
1 parent 122b61c commit 24b20c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ferry.go
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@ func (f *Ferry) WaitUntilBinlogStreamerCatchesUp() {
// You will know that the BinlogStreamer finished when .Run() returns.
func (f *Ferry) FlushBinlogAndStopStreaming() {
if f.WaitUntilReplicaIsCaughtUpToMaster != nil {
f.logger.Info("flush binlog and stop streaming: wait until replica is caught up to master")
isReplica, err := CheckDbIsAReplica(f.WaitUntilReplicaIsCaughtUpToMaster.MasterDB)
if err != nil {
f.ErrorHandler.Fatal("wait_replica", err)
Expand Down
3 changes: 3 additions & 0 deletions test/lib/go/integrationferry/ferry.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,14 @@ func (f *IntegrationFerry) Main() error {
return err
}

f.logger.Debug("flush binlog and stop streaming")

Check failure on line 151 in test/lib/go/integrationferry/ferry.go

View workflow job for this annotation

GitHub Actions / ruby-test

f.logger undefined (type *IntegrationFerry has no field or method logger)

Check failure on line 151 in test/lib/go/integrationferry/ferry.go

View workflow job for this annotation

GitHub Actions / ruby-test

f.logger undefined (type *IntegrationFerry has no field or method logger)
// TODO: this method should return errors rather than calling
// the error handler to panic directly.
f.FlushBinlogAndStopStreaming()
f.logger.Debug("wait for Ferry to exit")

Check failure on line 155 in test/lib/go/integrationferry/ferry.go

View workflow job for this annotation

GitHub Actions / ruby-test

f.logger undefined (type *IntegrationFerry has no field or method logger)

Check failure on line 155 in test/lib/go/integrationferry/ferry.go

View workflow job for this annotation

GitHub Actions / ruby-test

f.logger undefined (type *IntegrationFerry has no field or method logger)
wg.Wait()

f.logger.Debug("finished waiting")

Check failure on line 158 in test/lib/go/integrationferry/ferry.go

View workflow job for this annotation

GitHub Actions / ruby-test

f.logger undefined (type *IntegrationFerry has no field or method logger)

Check failure on line 158 in test/lib/go/integrationferry/ferry.go

View workflow job for this annotation

GitHub Actions / ruby-test

f.logger undefined (type *IntegrationFerry has no field or method logger)
if f.Verifier != nil {
err := f.SendStatusAndWaitUntilContinue(StatusVerifyDuringCutover)
if err != nil {
Expand Down

0 comments on commit 24b20c1

Please sign in to comment.