E5C6 #720 Memory leak in PushService by huangyunbin · Pull Request #749 · alibaba/nacos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

#720 Memory leak in PushService #749

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

Merged
merged 1 commit into from
Feb 15, 2019
Merged

Conversation

huangyunbin
Copy link
Contributor

fix Memory leak

@@ -540,6 +541,7 @@ public void refresh() {
Loggers.PUSH.error("[NACOS-PUSH] failed to push data: {} to client: {}, error: {}",
ackEntry.data, ackEntry.origin.getAddress().getHostAddress(), e);
ackMap.remove(ackEntry.key);
udpSendTimeMap.remove(ackEntry.key);
Copy link
Collaborator

Choose a reason for hiding this comment

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

The Java doc says that there is no guarantee that the exception will be thrown if the remote port is unreachable. So the remove key action here may not be executed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, when remote port is unreachable ,544 line remove operate will not execute。
but it will retry until max retry times, at last, 519 line remove operate will execute.
so it is no problem。

Copy link
Collaborator
@nkorange nkorange Feb 15, 2019

Choose a reason for hiding this comment

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

Great, you are right. Please point your target branch to alibaba:develop next time.

@nkorange nkorange changed the base branch from master to develop February 15, 2019 08:55
@nkorange nkorange merged commit 5c0ee84 into alibaba:develop Feb 15, 2019
KiteSoar pushed a commit to KiteSoar/nacos that referenced this pull request Mar 1, 2025
Co-authored-by: heimanba <371510756@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0