From 9e59f0d214bd8e010cb5d0ff858b38bfb93fdada Mon Sep 17 00:00:00 2001 From: tiancaiamao Date: Fri, 24 Jun 2022 11:34:37 +0800 Subject: [PATCH] store/copr: fix tiflash integration test by disable paging on tiflash (#35674) close pingcap/tidb#35673 --- store/copr/coprocessor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/store/copr/coprocessor.go b/store/copr/coprocessor.go index 2832abe60ecb1..0b217583bb9b3 100644 --- a/store/copr/coprocessor.go +++ b/store/copr/coprocessor.go @@ -860,7 +860,9 @@ func (worker *copIteratorWorker) handleCopPagingResult(bo *Backoffer, rpcCtx *ti pagingRange := resp.pbResp.Range // only paging requests need to calculate the next ranges if pagingRange == nil { - return nil, errors.New("lastRange in paging should not be nil") + // If the storage engine doesn't support paging protocol, it should have return all the region data. + // So we finish here. + return nil, nil } // calculate next ranges and grow the paging size task.ranges = worker.calculateRemain(task.ranges, pagingRange, worker.req.Desc)