We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Java SDK (apache/dubbo)
Dubbo 3.2.5 Jdk 1.8 Linux
Without any abnormal conditions, the CPU usage will not reach 100%.
The reason is likely that the following code has entered an infinite loop.
// org.apache.dubbo.registry.client.AbstractServiceDiscovery while (metadataInfos.size() > metadataInfoCacheSize) { AtomicReference<String> oldestRevision = new AtomicReference<>(); AtomicReference<MetadataInfoStat> oldestStat = new AtomicReference<>(); metadataInfos.forEach((k, v) -> { if (System.currentTimeMillis() - v.getUpdateTime() > metadataInfoCacheExpireTime && (oldestStat.get() == null || oldestStat.get().getUpdateTime() > v.getUpdateTime())) { oldestRevision.set(k); oldestStat.set(v); } }); if (oldestStat.get() != null) { metadataInfos.remove(oldestRevision.get(), oldestStat.get()); } }
The text was updated successfully, but these errors were encountered:
@funky-eyes PTAL
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Pre-check
Search before asking
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo 3.2.5
Jdk 1.8
Linux
Steps to reproduce this issue
What you expected to happen
Without any abnormal conditions, the CPU usage will not reach 100%.
Anything else
The reason is likely that the following code has entered an infinite loop.
Are you willing to submit a pull request to fix on your own?
Code of Conduct
The text was updated successfully, but these errors were encountered: