zrlw edited a comment on issue #9283: URL: https://github.com/apache/dubbo/issues/9283#issuecomment-971427659
#9284 现在采取的方法: 1. RpcContext销毁SERVICE_CONTEXT时,通知InstanceAddressURL采用强引用方式保存RpcServiceContext,以便InstanceAddressURL的相关方法能够在销毁场景下继续访问RpcServiceContext的成员属性; 2. 调整InstanceAddressURL获取RpcServiceContext的方法:如果RpcServiceContext已保存,而且从RpcContext获取的RpcServiceContext的consumerUrl为null,则使用保存的RpcServiceContext,否则使用RpcContext的RpcServiceContext。 单元测试类:SpringXmlConfigTest -- 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]
