Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

已经加载到jvm的ForkJoinTask如何做ttl增强? #380

Closed
DockerFan opened this issue May 20, 2022 · 2 comments
Closed

已经加载到jvm的ForkJoinTask如何做ttl增强? #380

DockerFan opened this issue May 20, 2022 · 2 comments
Assignees
Labels
duplicate ❓question Further information is requested ttl agent

Comments

@DockerFan
Copy link

DockerFan commented May 20, 2022

目前在基于阿里开源的sandbox-repeater做录制回放,录制的业务本身使用了ForkJoinPool,业务本身使用的时候并没有继承TtlRecursiveTask重写compute方法,没开启ttl。

但是sandbox-repeter需要对这块进行开启跟踪,不然会影响上下文信息的拷贝,
并且sandbox-repeter本身是基于before、return等event事件的又没法通过反射增加新的继承类和重写方法。

这种有什么思路可以解决吗?期待回复。

@oldratlee
Copy link
Member

oldratlee commented May 20, 2022

目前TTL Agent没有支持『对已加载的类做增强』。 @DockerFan

相关Issue


对已加载的类做增强 有:


关于『对已加载的类做增强』 的讨论与实现实验进展 在下面 issue 中了解与跟进

@oldratlee oldratlee added the ❓question Further information is requested label May 20, 2022
@oldratlee oldratlee self-assigned this May 20, 2022
@DockerFan
Copy link
Author

debug看业务代码ForkJoinPool的execute方法里的传参是个runnable类型,那可以把一个ForkJoinTask的任务强转成一个runnable,然后处理成ttlRunnable类型这样来开启ttl吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate ❓question Further information is requested ttl agent
Projects
None yet
Development

No branches or pull requests

2 participants