FIXED exiting queue thread and wait remain finish & auto create cgrou… #131
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Why are the changes needed?
When i login user in tenant, the ObClient is hanging at
Welcome to oceanbase...
, it's because the ObTenant will not create the ngroup ctrl files whenObTenant::init
. so change ObCgroupCtrl::write_string_to_file_ to allow auto create cgroup control file.使用root登录租户时一直卡在
Welcome to Oceanbase XXX
,发现MySQL请求全部堆积未处理。租户的请求按设计应从ResourceGroup的请求队列出队,而请求实际入队的却是ObTenant的队列(参照:ObTenant::recv_request/ObTenant::get_new_request)。由于cgroup下租户的配置文件不会自动创建(查看:ObCgroupCtrl::write_string_to_file_),导致Tenant未正确初始化group_map_(参照:ObTenant::init),从而消息放入错误的队列,永远不会被消费。Will break the compatibility? How if so?
NO
Does this PR introduce any user-facing change?
no need to manually create cgroup control files.
How was this patch tested?
login root@tenant after tenant created without manualy create cgroup files, the MySQL client should work.
Checklist