dfdfqwqw commented on issue #4410:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4410#issuecomment-2222133925

   > > 能具体描述下业务场景吗,看看是不是一定需要并发访问?对应一个invocation,理论上不应该存在并发的情况。 
如果不是必须,建议考虑下其他的实现方案,避免并发。
   > > 另外, `框架中多处使用invocation.getHandlerContext().get(),当取出来为null时就会导致空指针` 
是指问题不是业务场景导致的吗?能否提供一个重现问题的例子。
   > 
   > 当前 有使用 探针或者调用链产品时,针对servicecomb埋点时会使用上下文进行并发的修改,例如当前使用华为云的APM探针就会有这个问题 
另外定位问题时,日志中打印 invocation.getHandlerContext().tostring 
有概率会报ConcurrentModificationException 错误,说明是存在并发操作的
   
   另外这个上下文获取是public的,就没法避免外部的多种使用场景,建议加强框架可靠性


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

Reply via email to