diff --git a/session/session.go b/session/session.go index 28fd30c914342..21cb98370abe6 100644 --- a/session/session.go +++ b/session/session.go @@ -1016,6 +1016,9 @@ func createSessionFunc(store kv.Storage) pools.Factory { } se.sessionVars.CommonGlobalLoaded = true se.sessionVars.InRestrictedSQL = true + // TODO: Remove this line after fixing https://github.com/pingcap/tidb/issues/30880 + // Chunk RPC protocol may have memory leak issue not solved. + se.sessionVars.EnableChunkRPC = false return se, nil } } @@ -1036,6 +1039,9 @@ func createSessionWithDomainFunc(store kv.Storage) func(*domain.Domain) (pools.R } se.sessionVars.CommonGlobalLoaded = true se.sessionVars.InRestrictedSQL = true + // TODO: Remove this line after fixing https://github.com/pingcap/tidb/issues/30880 + // Chunk RPC protocol may have memory leak issue not solved. + se.sessionVars.EnableChunkRPC = false return se, nil } }