When requesting dubbo asynchronously, an ErrorEntryFreeException occurs under high concurrency #1602
Labels
area/integrations
Issues or PRs related to integrations with open-source components
kind/question
Category issues related to questions or problems
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
The text was updated successfully, but these errors were encountered: