diff --git a/distsql/request_builder.go b/distsql/request_builder.go index 70cfb8672dfc4..5cc2059ece6c5 100644 --- a/distsql/request_builder.go +++ b/distsql/request_builder.go @@ -163,7 +163,7 @@ func (builder *RequestBuilder) SetAnalyzeRequest(ana *tipb.AnalyzeReq) *RequestB builder.Request.Tp = kv.ReqTypeAnalyze builder.Request.Data, builder.err = ana.Marshal() builder.Request.NotFillCache = true - builder.Request.IsolationLevel = kv.RC + builder.Request.IsolationLevel = kv.SI builder.Request.Priority = kv.PriorityLow } diff --git a/distsql/request_builder_test.go b/distsql/request_builder_test.go index b0ffca3562dc2..946899a66b62a 100644 --- a/distsql/request_builder_test.go +++ b/distsql/request_builder_test.go @@ -494,7 +494,7 @@ func TestRequestBuilder5(t *testing.T) { KeepOrder: true, Desc: false, Concurrency: 15, - IsolationLevel: kv.RC, + IsolationLevel: kv.SI, Priority: 1, NotFillCache: true, ReadReplicaScope: kv.GlobalReplicaScope,