From 6a906f795459700ef3ea8c1d464b4fe1192e5991 Mon Sep 17 00:00:00 2001 From: ti-srebot <66930949+ti-srebot@users.noreply.github.com> Date: Wed, 21 Sep 2022 12:03:01 +0800 Subject: [PATCH] store: handle nil execption (#37998) (#38016) close pingcap/tidb#37989 --- store/copr/batch_coprocessor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/store/copr/batch_coprocessor.go b/store/copr/batch_coprocessor.go index 5d1ea7e8b8644..cb36f6bc20220 100644 --- a/store/copr/batch_coprocessor.go +++ b/store/copr/batch_coprocessor.go @@ -342,6 +342,8 @@ func balanceBatchCopTask(ctx context.Context, kvStore *kvStore, originalTasks [] // The interval time is so short that may happen in a same query, so we needn't to check again. mu.Unlock() return + } else if !ok { + lastAny = time.Time{} } mu.Unlock()