Coder Social home page Coder Social logo

“业务项目”在通过bytebuddy增强后,TTL+CompletableFuture无法再正常地进行上下文传递。 about transmittable-thread-local HOT 1 CLOSED

Nietzschecat avatar Nietzschecat commented on July 26, 2024
“业务项目”在通过bytebuddy增强后,TTL+CompletableFuture无法再正常地进行上下文传递。

from transmittable-thread-local.

Comments (1)

oldratlee avatar oldratlee commented on July 26, 2024

在开发「流量回放工具」时,「流量回放工具」内部通过使用bytebuddy,在不侵入“业务项目”的情况下,对“业务项目”的各种外部调用进行数据Mock

你提到的「流量回放工具」也是基于Java Agent实现,应用中有2个Agent吧?

如果是,下面是 继续的内容。

在“业务项目”中通过Maven引入「流量回放工具」的jar包,且在“业务项目”启动时对特定的类做字节码增强(未增强CompletableFuture等并发类)后,TTL+CompletableFuture无法再正常进行上下文数据传递。

「流量回放工具」与 TTL 2个Java Agent之间的影响,
要具体了解2者代码实现与设计才能确定;
仅通过上面的运行结果无法排查。 @Nietzschecat

TTL是开源的,有完整的排查信息(如源码);
可以让「流量回放工具」的实现同学排查一下。

from transmittable-thread-local.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.