Skip to content

[fix](cache) fix that ShardedLRUCache may coredump when destructor was called - #10995

Merged
yiguolei merged 1 commit into
apache:masterfrom
liaoxin01:fix_lru
Jul 20, 2022
Merged

[fix](cache) fix that ShardedLRUCache may coredump when destructor was called#10995
yiguolei merged 1 commit into
apache:masterfrom
liaoxin01:fix_lru

Conversation

@liaoxin01

@liaoxin01 liaoxin01 commented Jul 19, 2022

Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close #10991

Problem Summary:

delete _shards in ~ShardedLRUCache has a competition with MetricRegistry::trigger_all_hooks.

Checklist(Required)

  1. Does it affect the original behavior: (No)
  2. Has unit tests been added: (No)
  3. Has document been added or modified: (No)
  4. Does it need to update dependencies: (No)
  5. Are there any changes that cannot be rolled back: (No)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@compiletheworld

Copy link
Copy Markdown
Contributor

Nice catch!
LGTM.

kpfly
kpfly previously approved these changes Jul 19, 2022

@kpfly kpfly left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

zhannngchen
zhannngchen previously approved these changes Jul 19, 2022

@zhannngchen zhannngchen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@yiguolei yiguolei left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yiguolei
yiguolei merged commit c037066 into apache:master Jul 20, 2022
miswujian pushed a commit to miswujian/doris that referenced this pull request Jul 28, 2022
whutpencil pushed a commit to whutpencil/incubator-doris that referenced this pull request Jul 29, 2022
eldenmoon pushed a commit to eldenmoon/incubator-doris that referenced this pull request Aug 1, 2022
@liaoxin01
liaoxin01 deleted the fix_lru branch February 6, 2024 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] ShardedLRUCache may coredump when destructor was called

5 participants