bug about dolphinscheduler-remote SendAsync (#6972)

* bug about SendAsync
refactor-ui
lyq 2021-11-24 09:53:22 +08:00 committed by GitHub
parent 360464e279
commit c78fd24776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,10 @@ public class ResponseFuture {
return FUTURE_TABLE.get(opaque);
}
public void removeFuture() {
FUTURE_TABLE.remove(opaque);
}
/**
* whether timeout
*

View File

@ -136,6 +136,7 @@ public class NettyClientHandler extends ChannelInboundHandlerAdapter {
future.setResponseCommand(command);
future.release();
if (future.getInvokeCallback() != null) {
future.removeFuture();
this.callbackExecutor.submit(future::executeInvokeCallback);
} else {
future.putResponse(command);