Skip to content

Fix FATAL: query context is not detached from thread group - #51540

Merged
devcrafter merged 3 commits into
many-fixes-2from
fix_hash_dict_detach_thread
Jun 29, 2023
Merged

devcrafter merged 3 commits into
many-fixes-2from
fix_hash_dict_detach_thread

Conversation

@devcrafter

@devcrafter devcrafter commented Jun 28, 2023 •

Copy link
Copy Markdown
Member

Fix assert: query context should be detached from thread group on ~ThreadStatus
HashDictionary related query SYSTEM RELOAD DICTIONARY dict

https://s3.amazonaws.com/clickhouse-test-reports/0/95d569e5633ac993a9ca8c0d1f70d1c914d3dbf9/stress_test__debug_.html

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Fixes #50475
Fixes #49621

@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jun 28, 2023
@robot-ch-test-poll2

robot-ch-test-poll2 commented Jun 28, 2023 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit a8aa6b5 with description of existing statuses. It's updated for the latest CI running
The full report is available here
The overall status of the commit is 🟡 pending

Check nameDescriptionStatus
CI runningA meta-check that indicates the running CI. Normally, it's in success or pending state. The failed status indicates some problems with the PR🟡 pending
Mergeable CheckChecks if all other necessary checks are successful🟢 success

@tavplubix tavplubix self-assigned this Jun 28, 2023
@tavplubix

Copy link
Copy Markdown
Member

What about another place?

pool.trySchedule([&container, thread_group = CurrentThread::getGroup()]
{
/// Do not account memory that was occupied by the dictionaries for the query/user context.
MemoryTrackerBlockerInThread memory_blocker;
if (thread_group)
CurrentThread::attachToGroupIfDetached(thread_group);
setThreadName("HashedDictDtor");
clearContainer(container);
});

@devcrafter
devcrafter changed the base branch from master to many-fixes-2 June 29, 2023 07:58
@devcrafter
devcrafter changed the base branch from many-fixes-2 to master June 29, 2023 08:35
@devcrafter
devcrafter changed the base branch from master to many-fixes-2 June 29, 2023 08:35
@devcrafter
devcrafter merged commit 18cb040 into many-fixes-2 Jun 29, 2023
@devcrafter
devcrafter deleted the fix_hash_dict_detach_thread branch June 29, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

3 participants