Skip to content
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

When requesting dubbo asynchronously, an ErrorEntryFreeException occurs under high concurrency #1602

Closed
tanjialuo opened this issue Jul 14, 2020 · 3 comments
Labels
area/integrations Issues or PRs related to integrations with open-source components kind/question Category issues related to questions or problems

Comments

@tanjialuo
Copy link

Issue Description

Type: bug report or feature request

Describe what happened (or what feature you want)

provider returns CompletableFuture, consumer has multiple concurrent requests,
org.apache.dubbo.remoting.RemotingException: java.util.concurrent.CompletionException: com.alibaba.csp.sentinel.ErrorEntryFreeException: The order of entry exit can't be paired with the order of entry, current entry in context:

Tell us your environment

sentinel-apache-dubbo-adapter-1.7.1.jar
dubbo 2.7.3

Anything else we need to know?

After 1.7.1 version upgrade, add listener. The old version exit directly in the same thread:
finally {
if (methodEntry != null) {
methodEntry.exit(1, invocation.getArguments());
}
if (interfaceEntry != null) {
interfaceEntry.exit();
}
ContextUtil.exit();
}
The 1.7.1 version adds SentinelDubboListener, by callback in different Thread,cause ErrorEntryFreeException

@cdfive cdfive added the area/integrations Issues or PRs related to integrations with open-source components label Jul 14, 2020
@cdfive
Copy link
Collaborator

cdfive commented Jul 14, 2020

May refer to #1431, which fix FullGC problem and enhance async invoke,
and would you like to help testing and validating with this PR? maybe in test environment.
cc @sczyh30 @linlinisme @jasonjoo2010

@sczyh30
Copy link
Member

sczyh30 commented Jul 17, 2020

@tanjialuo Any feedback?

@tanjialuo
Copy link
Author

@sczyh30 I pull the code of master and test it, The problem has been fixed,thanks

@sczyh30 sczyh30 added the kind/question Category issues related to questions or problems label Jul 18, 2020
@sczyh30 sczyh30 closed this as completed Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/integrations Issues or PRs related to integrations with open-source components kind/question Category issues related to questions or problems
Projects
None yet
Development

No branches or pull requests

3 participants