GithubHelp home page GithubHelp logo

Comments (5)

orangewest avatar orangewest commented on June 18, 2024 3

@oldratlee 大概知道是什么问题了,我用的jdk是openj9,换成openjdk就没问题了,不知道什么原因,ThreadPoolExecutor这个类没有加载,所以没有被增强。
image
但是里面的内部类加载了。
使用arthars jad命令后,才会重新触发增强。

from transmittable-thread-local.

orangewest avatar orangewest commented on June 18, 2024 2

@jakejakeho 使用是agent的方式,是不需要使用TtlRunnable包装的,Completablefuture里面的ForkJoinPool就没有问题。不使用agent直接用ttl包装Executor也没有问题。

from transmittable-thread-local.

jakejakeho avatar jakejakeho commented on June 18, 2024 1

orangewest/ttl-demo#1
image
應該是因為沒有用TtlRunnable.get()
image

from transmittable-thread-local.

oldratlee avatar oldratlee commented on June 18, 2024

@orangewest

上面说明的是 日志/MDC的问题(原因可能是 日志/MDC的使用或实现):

  • 请分离出TTL的问题/Bug的说明
  • TTL的内容(如日志/MDC的问题或使用方式),请尽量不在本库讨论

另外,请提供一个 极简、可运行、复现问题的 代码Demo工程。

推荐提供成一个单独的工程(GitHub repo)。这样可以:

  • 方便大家能排查分析;只提供片段代码、运行问题概述,排查信息不足
  • 方便分离不相关的业务实现内容,以及排除可能的业务使用问题
    如使用配置问题、其它业务代码的意外影响

from transmittable-thread-local.

orangewest avatar orangewest commented on June 18, 2024

@oldratlee
demo地址 https://github.com/orangewest/ttl-demo
启动参数
image
代码
image
image
运行结果
image
image

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.