You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "liufeiyu1002 (via GitHub)" <gi...@apache.org> on 2023/06/12 07:40:49 UTC

[GitHub] [dubbo] liufeiyu1002 commented on issue #12493: 未及时释放FutureContext造成频繁GC问题

liufeiyu1002 commented on issue #12493:
URL: https://github.com/apache/dubbo/issues/12493#issuecomment-1586759904

   在同步调用时。在消费端  `FutureContext.getContext()`  是作用在业务线程上的。整个消费调用都是用业务线程上执行的。所以 `FutureContext.getContext()` 不会被清除,除非手动清除掉 或者业务线程下次调用会覆盖掉旧值。 还有就是在每次调用以后 就 执行 `FutureContext.getContext().setCompatibleFuture(appResponseFuture)`  注释`// save for 2.6.x compatibility, for example, TraceFilter in Zipkin uses com.alibaba.xxx.FutureAdapter
   ` 写的是 为了适配 2.6.x,现在 到了3.x 了是不可以考虑移除这段代码了? 


-- 
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