Merge pull request #4500 from dweitzman/fix_multi_split_error

Fix MultiSplitDiff incorrectly logging "have already found differences"
This commit is contained in:
Sugu Sougoumarane 2019-01-06 12:12:04 -08:00 коммит произвёл GitHub
Родитель be4235cf5c 3a04099fe5
Коммит 42f5c760cc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 13 добавлений и 14 удалений

Просмотреть файл

@ -19,26 +19,21 @@ package worker
import (
"fmt"
"html/template"
"sync"
"vitess.io/vitess/go/vt/vterrors"
"golang.org/x/net/context"
"vitess.io/vitess/go/vt/concurrency"
"vitess.io/vitess/go/vt/mysqlctl/tmutils"
"vitess.io/vitess/go/vt/topo"
"vitess.io/vitess/go/vt/wrangler"
"sort"
"sync"
"time"
"golang.org/x/net/context"
"vitess.io/vitess/go/sqltypes"
"vitess.io/vitess/go/vt/binlog/binlogplayer"
"vitess.io/vitess/go/vt/concurrency"
"vitess.io/vitess/go/vt/mysqlctl/tmutils"
tabletmanagerdatapb "vitess.io/vitess/go/vt/proto/tabletmanagerdata"
topodatapb "vitess.io/vitess/go/vt/proto/topodata"
"vitess.io/vitess/go/vt/topo"
"vitess.io/vitess/go/vt/vterrors"
"vitess.io/vitess/go/vt/vtgate/vindexes"
"vitess.io/vitess/go/vt/wrangler"
)
// MultiSplitDiffWorker executes a diff between a destination shard and its
@ -631,7 +626,9 @@ func (msdw *MultiSplitDiffWorker) gatherSchemaInfo(ctx context.Context) ([]*tabl
destinationSchemaDefinition, err := msdw.wr.GetSchema(
shortCtx, destinationAlias, nil /* tables */, msdw.excludeTables, false /* includeViews */)
cancel()
if err != nil {
msdw.markAsWillFail(rec, err)
}
destinationSchemaDefinitions[i] = destinationSchemaDefinition
msdw.wr.Logger().Infof("Got schema from destination %v", destinationAlias)
wg.Done()
@ -644,7 +641,9 @@ func (msdw *MultiSplitDiffWorker) gatherSchemaInfo(ctx context.Context) ([]*tabl
sourceSchemaDefinition, err = msdw.wr.GetSchema(
shortCtx, msdw.sourceAlias, nil /* tables */, msdw.excludeTables, false /* includeViews */)
cancel()
if err != nil {
msdw.markAsWillFail(rec, err)
}
msdw.wr.Logger().Infof("Got schema from source %v", msdw.sourceAlias)
wg.Done()
}()