zrlw edited a comment on issue #9283: URL: https://github.com/apache/dubbo/issues/9283#issuecomment-971427659
#9284 现在采取的方法: 1. 在RpcContext销毁SERVICE_CONTEXT时,通知InstanceAddressURL采用浅克隆方式保存RpcServiceContext以便继续访问RpcServiceContext的成员属性; 2. 修改InstanceAddressURL获取ServiceContext的相关方法:如果ServiceContext已保存,而且从RpcContext获取的ServiceContext的consumerUrl为null,则使用保存的ServiceContext,否则使用RpcContext的ServiceContext。 代价:每次rpc调用结束销毁SERVICE_CONTEXT时都要做一次浅克隆。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
