Skip to content

Commit

Permalink
kv (ticdc): fix kv client data race panic (#10719)
Browse files Browse the repository at this point in the history
close #10718
  • Loading branch information
asddongmen authored Mar 6, 2024
1 parent 9b30691 commit e9128ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cdc/kv/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ func (s *eventFeedSession) eventFeed(ctx context.Context) error {
}()

g, ctx := errgroup.WithContext(ctx)
g.SetLimit(scanRegionsConcurrency)

g.Go(func() error { return s.dispatchRequest(ctx) })

Expand All @@ -486,8 +487,6 @@ func (s *eventFeedSession) eventFeed(ctx context.Context) error {
g.Go(func() error { return s.logSlowRegions(ctx) })

g.Go(func() error {
g, ctx := errgroup.WithContext(ctx)
g.SetLimit(scanRegionsConcurrency)
for {
select {
case <-ctx.Done():
Expand Down

0 comments on commit e9128ab

Please sign in to comment.