You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/11/19 03:05:13 UTC

[GitHub] [dubbo] zrlw edited a comment on pull request #9284: [3.0] retain strong reference of RpcServiceContext which is being removed from RpcContext to avoid NPE

zrlw edited a comment on pull request #9284:
URL: https://github.com/apache/dubbo/pull/9284#issuecomment-972916704


   换了一种方式:
   1. RpcContext销毁SERVICE_CONTEXT时,通知InstanceAddressURL采用强引用方式保存RpcServiceContext;
   2. 修改InstanceAddressURL获取ServiceContext的相关方法:如果ServiceContext已保存,而且从RpcContext获取的ServiceContext的consumerUrl为null,则使用保存的ServiceContext,否则使用RpcContext的ServiceContext。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org