Skip to content

Commit

Permalink
region_requst: add req info in flashback region error
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Mo <mohangjie1995@gmail.com>
  • Loading branch information
Defined2014 committed Jun 29, 2023
1 parent 04dc78e commit 7e60dd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/locate/region_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -1752,6 +1752,9 @@ func (s *RegionRequestSender) onRegionError(
return true, nil
}
}
logutil.BgLogger().Error("Region is in flashback progress",
zap.Stringer("req", req),
zap.Stringer("ctx", ctx))
return false, errors.Errorf(
"region %d is in flashback progress, FlashbackStartTS is %d",
flashbackInProgress.GetRegionId(), flashbackInProgress.GetFlashbackStartTs(),
Expand Down

0 comments on commit 7e60dd2

Please sign in to comment.