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

Hessian support attachments and add log4j2 support. #899

Closed
wants to merge 4 commits into from

Conversation

sc834466168
Copy link

1、修复hessian 重载方法时报错问题
http://blog.csdn.net/sanfye/article/details/49390493

2、添加log4j2的支持
与原log2j配置一致
添加配置dubbo.log4j.console, 是否添加输出至控制台

3、修复hessian 隐形参数失效问题
RpcContext中的getAttachments无法获取到消费者端传来的参数
a) 未设置attachments参数
b)debug过程中发现被InvokerInvocationHandler类重置

暂时想到的办法是在httpclient中添加header进行传输, 由于上述b重试了 RpcInvocation类, ContextFilter无法获取到attachments, 临时解决方案是HessianProtocol类中设置ThreadLocal保证线程安全, 在使用HessianFilter进行参数设置

2、添加log4j2的支持
3、修复hessian attachment 隐形参数失效问题
@CLAassistant
Copy link

CLAassistant commented Nov 22, 2017

CLA assistant check
All committers have signed the CLA.

2、添加log4j2的支持
3、修复hessian attachment 隐形参数失效问题
2、添加log4j2的支持
3、修复hessian attachment 隐形参数失效问题
2、添加log4j2的支持
3、修复hessian attachment 隐形参数失效问题
@chickenlj
Copy link
Contributor

Would you please separate this two features? We prefer to have each PR focus on solution for a single
problem.

@chickenlj chickenlj changed the title 修复了一些hessian的问题和添加log4j2的支持 Hessian support attachments and add log4j2 support. Feb 9, 2018
@ralf0131
Copy link
Contributor

Would you please separate this two features? We prefer to have each PR focus on solution for a single problem.

+1 It is too complicated to review this pull request, please keep it simple.

@diecui1202
Copy link

I am considering about this. #1801

On the provider side, a HessianFilter is not a good way. I will try to restore context in HessianHandler.

@diecui1202
Copy link

@sc834466168 IMO, you could submit a new PR for supporting log4j2.

@chickenlj
Copy link
Contributor

Hessian attachments has been supported with #1801.
Would you please file a new PR for log4j2 support? I will close this one anyway.

@chickenlj chickenlj closed this Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/waiting-for-feedback Need reporters to triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants