jackychee commented on issue #985: grpc-1.x-plugin throw ClassCastException in 
gRPC-java v1.10.0
URL: 
https://github.com/apache/incubator-skywalking/issues/985#issuecomment-375864560
 
 
   aha, i found it solved.  I have another solution that use ThreadLocal to 
keep ClientCallImpl instance temporarily in interceptor of  ClientCallImpl's 
constructor, so we can get it in ManagedChannelInterceptor's afterMethod, to 
avoid memory leak risk, we should use SoftReference to wrap ClientClallImpl 
instance before put it in ThreadLocal.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to