[fix](ctx) manager the lifecycle of connection context (#29346)
In FrontendService, we may create some connection context and set it as a thread local varaible. These context should be removed from thread local after call. Otherwise, it may be reused by other thread incorrectly.
This commit is contained in:
@ -235,6 +235,8 @@ Status GroupCommitTable::_create_group_commit_load(
|
||||
request.__set_token("group_commit"); // this is a fake, fe not check it now
|
||||
request.__set_max_filter_ratio(1.0);
|
||||
request.__set_strictMode(false);
|
||||
// this is an internal interface, use admin to pass the auth check
|
||||
request.__set_user("admin");
|
||||
if (_exec_env->master_info()->__isset.backend_id) {
|
||||
request.__set_backend_id(_exec_env->master_info()->backend_id);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user