Skip to content

Commit

Permalink
store/tikv: log more information when other err occurs (#7948) (#8006)
Browse files Browse the repository at this point in the history
  • Loading branch information
winoros authored and zz-jason committed Oct 23, 2018
1 parent b47f6a0 commit 59d6a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/tikv/coprocessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ func (worker *copIteratorWorker) handleCopResponse(bo *Backoffer, resp *copRespo
}
if otherErr := resp.pbResp.GetOtherError(); otherErr != "" {
err := errors.Errorf("other error: %s", otherErr)
log.Warnf("coprocessor err: %v", err)
log.Warnf("txn_start_ts:%d region_id:%d store_addr:%s, coprocessor err: %v", worker.req.StartTs, task.region.id, task.storeAddr, err)
return nil, errors.Trace(err)
}
// When the request is using streaming API, the `Range` is not nil.
Expand Down

0 comments on commit 59d6a93

Please sign in to comment.