question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] <title> org.apache.shenyu.plugin.base.cache.MetaDataCache#CACHE not thread-safe

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

CACHE存储的entry链中存在环,导致CACHE.get()无限循环

Expected Behavior

No response

Steps To Reproduce

No response

Environment

ShenYu version(s): 2.5.0

Debug logs

No response

Anything else?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Shashengzhecommented, Sep 16, 2022

@dragon-zhang I tried, no problem

0reactions
dragon-zhangcommented, Sep 15, 2022

whether use ReentrantLock or synchronized can fix this? @dragon-zhang

Sorry for the late response, the bottom layer directly uses ConcurrentHashMap can get a better performance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Websocket Sync Error #2035 - apache/shenyu - GitHub
I try to sync plugin data,oooo,occur error com.google.gson. ... at org.apache.shenyu.plugin.base.cache. ... Expected Behavior. No response ...
Read more >
Custom Plugin | Apache ShenYu
There are two kinds of plugins in the Apache ShenYu gateway. The first type is a chain with single responsibility, and can not...
Read more >
Bug: EventHandler is not thread safe - Google Groups
Every call EventHandler call method org.osgi.service.event.Event.getProperty() which is not thread safe and can return data from parallel thread.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found