Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: don't use chunk rpc protocol for internal session #31723

Merged
merged 13 commits into from
Jan 18, 2022
6 changes: 6 additions & 0 deletions session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,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
}
}
Expand All @@ -1154,6 +1157,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
}
}
Expand Down