You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
也就是说这个isAsyncFuture的判断是没有意义的。而且根据相关逻辑和DubboInvoker第100行的注释,
register resultCallback, sometimes we need the async result being processed by the filter chain.
第101行,即
result = new AsyncRpcResult(futureAdapter, futureAdapter.getResultFuture(), false);
应该为
result = new AsyncRpcResult(futureAdapter, futureAdapter.getResultFuture(), true);
The text was updated successfully, but these errors were encountered:
在dubbo 2.7.0版本中DubboInvoker.doInvoke方法第99行到104行,根据isAsyncFuture是否为true,决定调用的是AsyncRpcResult的构造方法还是SimpleAsyncRpcResult的构造方法。且调用参数完全一致。而SimpleAsyncRpcResult继承自AsyncRpcResult,其构造方法调用父类的构造方法。
也就是说这个isAsyncFuture的判断是没有意义的。而且根据相关逻辑和DubboInvoker第100行的注释,
register resultCallback, sometimes we need the async result being processed by the filter chain.
第101行,即
result = new AsyncRpcResult(futureAdapter, futureAdapter.getResultFuture(), false);
应该为
result = new AsyncRpcResult(futureAdapter, futureAdapter.getResultFuture(), true);
The text was updated successfully, but these errors were encountered: