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

Fix/error response on future #513

Merged
merged 4 commits into from
Oct 5, 2020
Merged

Conversation

fengjiachun
Copy link
Contributor

Motivation:

forget to parse error_response and set to future when use grpc

Modification:

Result:

@sofastack-bot sofastack-bot bot added bug Something isn't working cla:yes size/M labels Sep 24, 2020
done.run(status);
} catch (final Throwable t) {
LOG.error("Fail to run RpcResponseClosure, the request is {}.", request, t);
}
}
if (!future.isDone()) {
future.setResult((Message) result);
future.setResult(msg);
Copy link
Contributor

Choose a reason for hiding this comment

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

这里有个疑问,如果 status 不是 ok 的话,并且没有 response, future 会设置一个 result 吗?

Copy link
Contributor

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

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

误解了,没有问题

@killme2008 killme2008 merged commit c0daf8d into master Oct 5, 2020
@killme2008 killme2008 deleted the fix/error_response_on_future branch October 5, 2020 12:28
@fengjiachun fengjiachun mentioned this pull request Nov 25, 2020
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla:yes size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants