-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[bugfix](becore) Fix thread safety issue in BaseTablet destructor #45747
base: master
Are you sure you want to change the base?
Conversation
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
run buildall |
TPC-H: Total hot run time: 40032 ms
|
TPC-DS: Total hot run time: 190298 ms
|
ClickBench: Total hot run time: 32.6 s
|
TeamCity be ut coverage result: |
run p0 |
What problem does this PR solve?
Core Dump
Cause of occurrence
The crash occurred during the processing of _metric_entity at BaseTablet destructor, from memory, the reference count for _metric_entity is already 0, but there is still a weak reference, n a multithreaded environment, a race condition may occur between deregister_entity and reset_metric_entity
GDB