Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Nov 21, 2024
1 parent 0a1eda9 commit bc978eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions pkg/syncer/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,17 +217,7 @@ func (s *RegionSyncer) StartSyncWithLeader(addr string) {
log.Debug("region is stale", zap.Stringer("origin", origin.GetMeta()), errs.ZapError(err))
continue
}
<<<<<<< HEAD
saveKV, _, _ := regionGuide(region, origin)
=======
cctx := &core.MetaProcessContext{
Context: ctx,
TaskRunner: ratelimit.NewSyncRunner(),
Tracer: core.NewNoopHeartbeatProcessTracer(),
// no limit for followers.
}
saveKV, _, _, _ := regionGuide(cctx, region, origin)
>>>>>>> 41ec8dced (syncer: exit watch leader immediately (#8824))
overlaps := bc.PutRegion(region)

if hasBuckets {
Expand Down
2 changes: 1 addition & 1 deletion tests/integrations/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ func TestLeaderTransferAndMoveCluster(t *testing.T) {
oldServers := cluster.GetServers()
oldLeaderName := cluster.WaitLeader()
for i := 0; i < 3; i++ {
time.Sleep(5 * time.Second)
newPD, err := cluster.Join(ctx)
re.NoError(err)
re.NoError(newPD.Run())
oldLeaderName = cluster.WaitLeader()
time.Sleep(5 * time.Second)
}

// ABCDEF->DEF
Expand Down

0 comments on commit bc978eb

Please sign in to comment.